2015-09-09 03:23:53 +05:30
|
|
|
apiVersion: v1
|
2015-08-18 05:57:27 +05:30
|
|
|
kind: ReplicationController
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: dex
|
|
|
|
role: overlord
|
|
|
|
name: dex-overlord
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
app: dex
|
|
|
|
role: overlord
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: dex
|
|
|
|
role: overlord
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- image: quay.io/coreos/dex
|
|
|
|
name: dex-overlord
|
2015-09-10 02:59:41 +05:30
|
|
|
env:
|
|
|
|
- name: DEX_OVERLORD_DB_URL
|
|
|
|
value: postgres://postgres@dex-postgres.default:5432/postgres?sslmode=disable
|
|
|
|
- name: DEX_OVERLORD_ADMIN_LISTEN
|
|
|
|
value: http://0.0.0.0:5557
|
|
|
|
command:
|
|
|
|
- "sh"
|
|
|
|
- "-c"
|
|
|
|
- "/opt/dex/bin/dex-overlord --key-secrets=$(cat /etc/dex/key-secrets)"
|
2015-08-18 05:57:27 +05:30
|
|
|
ports:
|
|
|
|
- containerPort: 5557
|
|
|
|
name: overlord-port
|
2015-09-09 03:23:53 +05:30
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /health
|
|
|
|
port: 5557
|
|
|
|
initialDelaySeconds: 15
|
|
|
|
timeoutSeconds: 1
|
2015-09-10 02:59:41 +05:30
|
|
|
volumeMounts:
|
|
|
|
- name: dex
|
|
|
|
mountPath: "/etc/dex"
|
|
|
|
readOnly: true
|
|
|
|
volumes:
|
|
|
|
- name: dex
|
|
|
|
secret:
|
|
|
|
secretName: "dex"
|