---
apiVersion: v1
kind: Service
metadata:
  labels:
    app: orgsync
  name: orgsync
  namespace: edoc2
spec:
  ports:
  - name: orgsync
    port: 8989
    targetPort: 8989
    protocol: TCP
  selector:
    app: orgsync
  type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: orgsync
  namespace: edoc2
  labels:
    app: orgsync
    k8s-app: orgsync
spec:
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: orgsync
  template:
    metadata:
      labels:
        app: orgsync
    spec:
      hostname: orgsync
      terminationGracePeriodSeconds: 60
      containers:
      - name: orgsync-container
        image: registry.edoc2.com:5000/edoc2v5/orgsync:edrms-v6.2.1.0-arm
        imagePullPolicy: IfNotPresent
        envFrom:
        - configMapRef:
            name: mid-envfile
        - configMapRef:
            name: ecm-envfile
        securityContext:
          capabilities:
            add: ["SYS_PTRACE"]
        ports:
        - name: orgsync
          containerPort: 8989
        resources:
          requests:
            cpu: 800m
            memory: 1.5Gi
          limits:
            cpu: 900m
            memory: 1.6Gi
      restartPolicy: Always
      nodeSelector:
        node.drive.nodelabels: InDrive
