apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    type: app
  name: app
spec:
  replicas: 1
  selector:
    matchLabels:
      type: app
  template:
    metadata:
      labels:
        type: app
    spec:
      containers:
        - image: saltaaron/crud-app:k8s
          imagePullPolicy: Always
          name: crud-app
          ports:
            - containerPort: 3000

        - env:
          - name: SALT_TOKEN
            value: NjBmMDdhMmYyNjAwMDAzYWI5MDFiODRmOnhpbndlNHZpaTZyNHh1ZGhzdnRpMDE1dHYwdnhuMW01dDVscjJ2d2JrdGhrYnZ3dnpvODQzZHMzZ3dtdzR1bjI=
          - name: SALT_BACKEND_HOST
            value: traffic-receiver.hybrid.svc.cluster.local
          - name: SALT_HYBRID_MODE
            value: "true"
#          - name: SALT_FIXED_PORTS
#            value: "80,3000"
          - name: SALT_BACKEND_PORT
            value: "443"
          - name: SALT_WS_PORT
            value: "444"
          - name: SALT_SERVICES_PORTS
            value: 3831,3832,3833,3834,3835,3836
          - name: SALT_SERVICES_HOST
            value: services-proxy.hybrid.svc.cluster.local
          - name: SALT_LOGS_URL
            value: services-proxy.hybrid.svc.cluster.local:3831
          image: saltsecurity/sensor:8.0.8
          name: salt-sensor
          securityContext:
            capabilities:
              add:
              - NET_RAW
              - NET_ADMIN
