forked from skooner-k8s/skooner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubernetes-k8dash-oidc.yaml
58 lines (57 loc) · 1.13 KB
/
kubernetes-k8dash-oidc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
kind: Deployment
apiVersion: apps/v1beta2
metadata:
name: k8dash
namespace: kube-system
spec:
replicas: 1
selector:
matchLabels:
k8s-app: k8dash
template:
metadata:
labels:
k8s-app: k8dash
spec:
containers:
- name: k8dash
image: herbrandson/k8dash:latest
ports:
- containerPort: 4654
livenessProbe:
httpGet:
scheme: HTTP
path: /
port: 4654
initialDelaySeconds: 30
timeoutSeconds: 30
env:
- name: OIDC_URL
valueFrom:
secretKeyRef:
name: k8dash
key: url
- name: OIDC_CLIENT_ID
valueFrom:
secretKeyRef:
name: k8dash
key: id
- name: OIDC_SECRET
valueFrom:
secretKeyRef:
name: k8dash
key: secret
nodeSelector:
'beta.kubernetes.io/os': linux
---
kind: Service
apiVersion: v1
metadata:
name: k8dash
namespace: kube-system
spec:
ports:
- port: 80
targetPort: 4654
selector:
k8s-app: k8dash