diff --git a/parts/k8s/addons/1.9/kubernetesmasteraddons-kubernetes-dashboard-deployment.yaml b/parts/k8s/addons/1.9/kubernetesmasteraddons-kubernetes-dashboard-deployment.yaml new file mode 100644 index 0000000000..e16837f8bb --- /dev/null +++ b/parts/k8s/addons/1.9/kubernetesmasteraddons-kubernetes-dashboard-deployment.yaml @@ -0,0 +1,95 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + labels: + k8s-app: kubernetes-dashboard + kubernetes.io/cluster-service: "true" + addonmanager.kubernetes.io/mode: Reconcile + name: kubernetes-dashboard + namespace: kube-system +--- +apiVersion: rbac.authorization.k8s.io/v1beta1 +kind: ClusterRoleBinding +metadata: + name: kubernetes-dashboard + labels: + k8s-app: kubernetes-dashboard + kubernetes.io/cluster-service: "true" + addonmanager.kubernetes.io/mode: Reconcile +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: cluster-admin +subjects: +- kind: ServiceAccount + name: kubernetes-dashboard + namespace: kube-system +--- +apiVersion: v1 +kind: Service +metadata: + labels: + kubernetes.io/cluster-service: "true" + k8s-app: kubernetes-dashboard + name: kubernetes-dashboard + namespace: kube-system +spec: + ports: + - port: 443 + targetPort: 8443 + selector: + k8s-app: kubernetes-dashboard + type: NodePort +--- +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + labels: + kubernetes.io/cluster-service: "true" + addonmanager.kubernetes.io/mode: Reconcile + k8s-app: kubernetes-dashboard + name: kubernetes-dashboard + namespace: kube-system +spec: + replicas: 1 + selector: + matchLabels: + k8s-app: kubernetes-dashboard + template: + metadata: + labels: + k8s-app: kubernetes-dashboard + spec: + containers: + - args: + - --auto-generate-certificates + - --heapster-host=http://heapster.kube-system:80 + image: + imagePullPolicy: Always + livenessProbe: + httpGet: + path: "/" + port: 8443 + scheme: HTTPS + initialDelaySeconds: 30 + timeoutSeconds: 30 + name: kubernetes-dashboard + ports: + - containerPort: 8443 + protocol: TCP + resources: + requests: + cpu: + memory: + limits: + cpu: + memory: + volumeMounts: + - name: kubernetes-dashboard-certs + mountPath: /certs + volumes: + - name: kubernetes-dashboard-certs + emptyDir: {} + serviceAccountName: kubernetes-dashboard + nodeSelector: + beta.kubernetes.io/os: linux