Commit 9b8b14cd authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Intercambia restricción de nodo por volumen NFS

parent 02329af1
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -6,12 +6,8 @@ include:
stages:
  - deploy

variables:
  PROJECT_PARENT_NAME: metric

.deploy:
  variables:
    STACK: ${PROJECT_PARENT_NAME}
    SERVICES_TO_CHECK: ${PROJECT_PARENT_NAME}_${CI_PROJECT_NAME}
    STACK: metric
  environment:
    url: https://${CI_PROJECT_NAME}.${PUBLIC_HOSTNAME}
+5 −7
Original line number Diff line number Diff line
version: '3.5'

services:
  pushgateway:
    deploy:
      placement:
        constraints:
          - node.hostname == ${PLACEMENT_CONSTRAINTS_NODE_HOSTNAME:-hostname}

volumes:
  data-vol:
    name: ${DATA_VOL_NAME}
    driver: local
    driver_opts:
      type: ${DATA_VOL_TYPE:-nfs4}
      o: addr=${DATA_VOL_ADDR:-127.0.0.1},${DATA_VOL_OPTIONS:-rw,nolock,noatime,tcp,rsize=8192,wsize=8192,timeo=14}
      device: ${DATA_VOL_DEVICE:-:/pushgateway-vol/}