-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
Copy pathkubernetes-dashboard-canary.yaml
executable file
·54 lines (54 loc) · 1.44 KB
/
kubernetes-dashboard-canary.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
kind: List
apiVersion: v1
items:
- kind: ReplicationController
apiVersion: v1
metadata:
labels:
app: kubernetes-dashboard-canary
version: canary
name: kubernetes-dashboard-canary
namespace: kube-system
spec:
replicas: 1
selector:
app: kubernetes-dashboard-canary
version: canary
template:
metadata:
labels:
app: kubernetes-dashboard-canary
version: canary
spec:
containers:
- name: kubernetes-dashboard-canary
image: gcr.io/google_containers/kubernetes-dashboard-amd64:canary
imagePullPolicy: Always
ports:
- containerPort: 9090
protocol: TCP
args:
# Uncomment the following line to manually specify Kubernetes API server Host
# If not specified, Dashboard will attempt to auto discover the API server and connect
# to it. Uncomment only if the default does not work.
# - --apiserver-host=http://my-address:port
livenessProbe:
httpGet:
path: /
port: 9090
initialDelaySeconds: 30
timeoutSeconds: 30
- kind: Service
apiVersion: v1
metadata:
labels:
app: kubernetes-dashboard-canary
name: dashboard-canary
namespace: kube-system
spec:
type: NodePort
ports:
- port: 80
targetPort: 9090
selector:
app: kubernetes-dashboard-canary