apiVersion: v1 kind: Service metadata: name: pomerium-authorize-service spec: ports: - port: 80 name: grpc selector: app: pomerium-authorize type: ClusterIP --- apiVersion: apps/v1 kind: Deployment metadata: name: pomerium-authorize labels: app: pomerium-authorize spec: replicas: 1 selector: matchLabels: app: pomerium-authorize template: metadata: labels: app: pomerium-authorize spec: containers: - image: pomerium/pomerium:master name: pomerium-authorize args: - --config=/etc/pomerium/config.yaml ports: - containerPort: 80 name: grpc protocol: TCP env: - name: SERVICES value: authorize - name: SHARED_SECRET valueFrom: secretKeyRef: name: shared-secret key: shared-secret readinessProbe: tcpSocket: port: 80 initialDelaySeconds: 5 periodSeconds: 10 livenessProbe: tcpSocket: port: 80 initialDelaySeconds: 15 periodSeconds: 20 volumeMounts: - mountPath: /etc/pomerium/ name: config volumes: - name: config configMap: name: config