github.com/joomcode/cue@v0.4.4-0.20221111115225-539fe3512047/doc/tutorial/kubernetes/original/services/proxy/authproxy/kube.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: authproxy 5 spec: 6 replicas: 1 7 # podTemplate defines the 'cookie cutter' used for creating 8 # new pods when necessary 9 template: 10 metadata: 11 labels: 12 # Important: these labels need to match the selector above 13 # The api server enforces this constraint. 14 app: authproxy 15 domain: prod 16 spec: 17 containers: 18 - image: skippy/oauth2_proxy:2.0.1 19 ports: 20 - containerPort: 4180 21 args: [ 22 "--config=/etc/authproxy/authproxy.cfg", 23 ] 24 name: authproxy 25 volumeMounts: 26 - name: config-volume 27 mountPath: /etc/authproxy 28 volumes: 29 - name: config-volume 30 configMap: 31 name: authproxy