apiVersion: v1 kind: Service metadata: name: pomerium-authenticate-service spec: ports: - port: 443 name: https selector: app: pomerium-authenticate type: NodePort --- apiVersion: apps/v1 kind: Deployment metadata: name: pomerium-authenticate labels: app: pomerium-authenticate spec: replicas: 1 selector: matchLabels: app: pomerium-authenticate template: metadata: labels: app: pomerium-authenticate spec: containers: - image: pomerium/pomerium:master name: pomerium-authenticate args: - --config=/etc/pomerium/config.yaml ports: - containerPort: 443 name: https protocol: TCP env: - name: SERVICES value: authenticate - name: SHARED_SECRET valueFrom: secretKeyRef: name: shared-secret key: shared-secret - name: COOKIE_SECRET valueFrom: secretKeyRef: name: cookie-secret key: cookie-secret readinessProbe: httpGet: path: /ping port: 443 scheme: HTTP livenessProbe: httpGet: path: /ping port: 443 scheme: HTTP initialDelaySeconds: 5 timeoutSeconds: 1 volumeMounts: - mountPath: /etc/pomerium/ name: config volumes: - name: config configMap: name: config