github.com/kubernetes-incubator/kube-aws@v0.16.4/contrib/dex/dex.de.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: dex 5 namespace: kube-system 6 labels: 7 app: dex 8 component: identity 9 annotations: 10 scheduler.alpha.kubernetes.io/critical-pod: "" 11 spec: 12 replicas: 1 13 minReadySeconds: 30 14 strategy: 15 rollingUpdate: 16 maxUnavailable: 0 17 selector: 18 matchLabels: 19 app: dex 20 component: identity 21 template: 22 metadata: 23 name: dex 24 labels: 25 app: dex 26 component: identity 27 spec: 28 volumes: 29 - name: config 30 configMap: 31 name: dex 32 items: 33 - key: config.yaml 34 path: config.yaml 35 containers: 36 - name: dex 37 imagePullPolicy: IfNotPresent 38 image: quay.io/coreos/dex:v2.5.0 39 command: ["/usr/local/bin/dex", "serve", "/etc/dex/config.yaml"] 40 volumeMounts: 41 - name: config 42 mountPath: /etc/dex 43 ports: 44 - containerPort: 5556 45 protocol: TCP 46 livenessProbe: 47 httpGet: 48 path: /healthz 49 port: 5556 50 initialDelaySeconds: 5 51 timeoutSeconds: 1 52 env: 53 - name: GITHUB_CLIENT_ID 54 valueFrom: 55 secretKeyRef: 56 name: dex 57 key: client-id 58 - name: GITHUB_CLIENT_SECRET 59 valueFrom: 60 secretKeyRef: 61 name: dex 62 key: client-secret 63 resources: 64 requests: 65 cpu: 100m 66 memory: 50Mi 67 limits: 68 cpu: 100m 69 memory: 50Mi