2016-08-11 06:20:55 +05:30
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: dex
|
|
|
|
name: dex
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: dex
|
|
|
|
spec:
|
|
|
|
containers:
|
2016-08-11 11:01:42 +05:30
|
|
|
- image: quay.io/ericchiang/dex
|
2016-08-11 06:20:55 +05:30
|
|
|
name: dex
|
|
|
|
command:
|
2016-08-11 11:01:42 +05:30
|
|
|
- "/dex"
|
2016-08-11 06:20:55 +05:30
|
|
|
- "serve"
|
|
|
|
- "/dex/config.yaml"
|
|
|
|
env:
|
|
|
|
# A value required for dex's Kubernetes client.
|
|
|
|
- name: KUBERNETES_POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
|
|
|
|
ports:
|
|
|
|
- containerPort: 5556
|
|
|
|
name: worker-port
|
|
|
|
|
|
|
|
volumeMounts:
|
|
|
|
- name: config-volume
|
|
|
|
mountPath: /dex
|
|
|
|
volumes:
|
|
|
|
- name: config-volume
|
|
|
|
configMap:
|
|
|
|
name: dex-config
|