| apiVersion: extensions/v1beta1 |
| kind: Deployment |
| metadata: |
| name: authproxy |
| spec: |
| replicas: 1 |
| # podTemplate defines the 'cookie cutter' used for creating |
| # new pods when necessary |
| template: |
| metadata: |
| labels: |
| # Important: these labels need to match the selector above |
| # The api server enforces this constraint. |
| app: authproxy |
| domain: prod |
| spec: |
| containers: |
| - name: authproxy |
| image: skippy/oauth2_proxy:2.0.1 |
| ports: |
| - containerPort: 4180 |
| args: [ |
| "--config=/etc/authproxy/authproxy.cfg", |
| ] |
| volumeMounts: |
| - name: config-volume |
| mountPath: /etc/authproxy |
| volumes: |
| - name: config-volume |
| configMap: |
| name: authproxy |