2017-04-14 17:39:40 +08:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: kubernetes-dashboard
|
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
k8s-app: kubernetes-dashboard
|
|
|
|
kubernetes.io/cluster-service: "true"
|
|
|
|
addonmanager.kubernetes.io/mode: Reconcile
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
k8s-app: kubernetes-dashboard
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
k8s-app: kubernetes-dashboard
|
|
|
|
annotations:
|
|
|
|
scheduler.alpha.kubernetes.io/critical-pod: ''
|
|
|
|
spec:
|
|
|
|
serviceAccountName: dashboard
|
|
|
|
containers:
|
|
|
|
- name: kubernetes-dashboard
|
2017-10-10 16:01:33 +08:00
|
|
|
image: sz-pg-oam-docker-hub-001.tendcloud.com/library/kubernetes-dashboard-amd64:v1.6.3
|
2017-04-14 17:39:40 +08:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 50Mi
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 50Mi
|
|
|
|
ports:
|
|
|
|
- containerPort: 9090
|
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /
|
|
|
|
port: 9090
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
timeoutSeconds: 30
|
|
|
|
tolerations:
|
|
|
|
- key: "CriticalAddonsOnly"
|
|
|
|
operator: "Exists"
|