kubernetes-dashboard.yaml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. ---
  2. # Source: kubernetes-dashboard/templates/serviceaccount.yaml
  3. # Copyright 2017 The Kubernetes Authors.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. apiVersion: v1
  17. kind: ServiceAccount
  18. metadata:
  19. labels:
  20. app.kubernetes.io/name: kubernetes-dashboard
  21. helm.sh/chart: kubernetes-dashboard-6.0.8
  22. app.kubernetes.io/instance: kubernetes-dashboard
  23. app.kubernetes.io/version: "v2.7.0"
  24. app.kubernetes.io/managed-by: Helm
  25. annotations:
  26. name: kubernetes-dashboard
  27. ---
  28. # Source: kubernetes-dashboard/templates/secret.yaml
  29. # Copyright 2017 The Kubernetes Authors.
  30. #
  31. # Licensed under the Apache License, Version 2.0 (the "License");
  32. # you may not use this file except in compliance with the License.
  33. # You may obtain a copy of the License at
  34. #
  35. # http://www.apache.org/licenses/LICENSE-2.0
  36. #
  37. # Unless required by applicable law or agreed to in writing, software
  38. # distributed under the License is distributed on an "AS IS" BASIS,
  39. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  40. # See the License for the specific language governing permissions and
  41. # limitations under the License.
  42. # kubernetes-dashboard-certs
  43. apiVersion: v1
  44. kind: Secret
  45. metadata:
  46. labels:
  47. app.kubernetes.io/name: kubernetes-dashboard
  48. helm.sh/chart: kubernetes-dashboard-6.0.8
  49. app.kubernetes.io/instance: kubernetes-dashboard
  50. app.kubernetes.io/version: "v2.7.0"
  51. app.kubernetes.io/managed-by: Helm
  52. annotations:
  53. name: kubernetes-dashboard-certs
  54. type: Opaque
  55. ---
  56. # Source: kubernetes-dashboard/templates/secret.yaml
  57. # kubernetes-dashboard-csrf
  58. apiVersion: v1
  59. kind: Secret
  60. metadata:
  61. labels:
  62. app.kubernetes.io/name: kubernetes-dashboard
  63. helm.sh/chart: kubernetes-dashboard-6.0.8
  64. app.kubernetes.io/instance: kubernetes-dashboard
  65. app.kubernetes.io/version: "v2.7.0"
  66. app.kubernetes.io/managed-by: Helm
  67. name: kubernetes-dashboard-csrf
  68. type: Opaque
  69. ---
  70. # Source: kubernetes-dashboard/templates/secret.yaml
  71. # kubernetes-dashboard-key-holder
  72. apiVersion: v1
  73. kind: Secret
  74. metadata:
  75. labels:
  76. app.kubernetes.io/name: kubernetes-dashboard
  77. helm.sh/chart: kubernetes-dashboard-6.0.8
  78. app.kubernetes.io/instance: kubernetes-dashboard
  79. app.kubernetes.io/version: "v2.7.0"
  80. app.kubernetes.io/managed-by: Helm
  81. name: kubernetes-dashboard-key-holder
  82. type: Opaque
  83. ---
  84. # Source: kubernetes-dashboard/templates/configmap.yaml
  85. # Copyright 2017 The Kubernetes Authors.
  86. #
  87. # Licensed under the Apache License, Version 2.0 (the "License");
  88. # you may not use this file except in compliance with the License.
  89. # You may obtain a copy of the License at
  90. #
  91. # http://www.apache.org/licenses/LICENSE-2.0
  92. #
  93. # Unless required by applicable law or agreed to in writing, software
  94. # distributed under the License is distributed on an "AS IS" BASIS,
  95. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  96. # See the License for the specific language governing permissions and
  97. # limitations under the License.
  98. apiVersion: v1
  99. kind: ConfigMap
  100. metadata:
  101. labels:
  102. app.kubernetes.io/name: kubernetes-dashboard
  103. helm.sh/chart: kubernetes-dashboard-6.0.8
  104. app.kubernetes.io/instance: kubernetes-dashboard
  105. app.kubernetes.io/version: "v2.7.0"
  106. app.kubernetes.io/managed-by: Helm
  107. annotations:
  108. name: kubernetes-dashboard-settings
  109. data:
  110. ---
  111. # Source: kubernetes-dashboard/templates/clusterrole-metrics.yaml
  112. # Copyright 2017 The Kubernetes Authors.
  113. #
  114. # Licensed under the Apache License, Version 2.0 (the "License");
  115. # you may not use this file except in compliance with the License.
  116. # You may obtain a copy of the License at
  117. #
  118. # http://www.apache.org/licenses/LICENSE-2.0
  119. #
  120. # Unless required by applicable law or agreed to in writing, software
  121. # distributed under the License is distributed on an "AS IS" BASIS,
  122. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  123. # See the License for the specific language governing permissions and
  124. # limitations under the License.
  125. kind: ClusterRole
  126. apiVersion: rbac.authorization.k8s.io/v1
  127. metadata:
  128. name: "kubernetes-dashboard-metrics"
  129. labels:
  130. app.kubernetes.io/name: kubernetes-dashboard
  131. helm.sh/chart: kubernetes-dashboard-6.0.8
  132. app.kubernetes.io/instance: kubernetes-dashboard
  133. app.kubernetes.io/version: "v2.7.0"
  134. app.kubernetes.io/managed-by: Helm
  135. annotations:
  136. rules:
  137. # Allow Metrics Scraper to get metrics from the Metrics server
  138. - apiGroups: ["metrics.k8s.io"]
  139. resources: ["pods", "nodes"]
  140. verbs: ["get", "list", "watch"]
  141. ---
  142. # Source: kubernetes-dashboard/templates/clusterrolebinding-metrics.yaml
  143. # Copyright 2017 The Kubernetes Authors.
  144. #
  145. # Licensed under the Apache License, Version 2.0 (the "License");
  146. # you may not use this file except in compliance with the License.
  147. # You may obtain a copy of the License at
  148. #
  149. # http://www.apache.org/licenses/LICENSE-2.0
  150. #
  151. # Unless required by applicable law or agreed to in writing, software
  152. # distributed under the License is distributed on an "AS IS" BASIS,
  153. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  154. # See the License for the specific language governing permissions and
  155. # limitations under the License.
  156. apiVersion: rbac.authorization.k8s.io/v1
  157. kind: ClusterRoleBinding
  158. metadata:
  159. name: "kubernetes-dashboard-metrics"
  160. labels:
  161. app.kubernetes.io/name: kubernetes-dashboard
  162. helm.sh/chart: kubernetes-dashboard-6.0.8
  163. app.kubernetes.io/instance: kubernetes-dashboard
  164. app.kubernetes.io/version: "v2.7.0"
  165. app.kubernetes.io/managed-by: Helm
  166. annotations:
  167. roleRef:
  168. apiGroup: rbac.authorization.k8s.io
  169. kind: ClusterRole
  170. name: kubernetes-dashboard-metrics
  171. subjects:
  172. - kind: ServiceAccount
  173. name: kubernetes-dashboard
  174. namespace: default
  175. ---
  176. # Source: kubernetes-dashboard/templates/role.yaml
  177. # Copyright 2017 The Kubernetes Authors.
  178. #
  179. # Licensed under the Apache License, Version 2.0 (the "License");
  180. # you may not use this file except in compliance with the License.
  181. # You may obtain a copy of the License at
  182. #
  183. # http://www.apache.org/licenses/LICENSE-2.0
  184. #
  185. # Unless required by applicable law or agreed to in writing, software
  186. # distributed under the License is distributed on an "AS IS" BASIS,
  187. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  188. # See the License for the specific language governing permissions and
  189. # limitations under the License.
  190. apiVersion: rbac.authorization.k8s.io/v1
  191. kind: Role
  192. metadata:
  193. name: kubernetes-dashboard
  194. labels:
  195. app.kubernetes.io/name: kubernetes-dashboard
  196. helm.sh/chart: kubernetes-dashboard-6.0.8
  197. app.kubernetes.io/instance: kubernetes-dashboard
  198. app.kubernetes.io/version: "v2.7.0"
  199. app.kubernetes.io/managed-by: Helm
  200. annotations:
  201. rules:
  202. # Allow Dashboard to get, update and delete Dashboard exclusive secrets.
  203. - apiGroups: [""]
  204. resources: ["secrets"]
  205. resourceNames: ["kubernetes-dashboard-key-holder", "kubernetes-dashboard-certs", "kubernetes-dashboard-csrf"]
  206. verbs: ["get", "update", "delete"]
  207. # Allow Dashboard to get and update 'kubernetes-dashboard-settings' config map.
  208. - apiGroups: [""]
  209. resources: ["configmaps"]
  210. resourceNames: ["kubernetes-dashboard-settings"]
  211. verbs: ["get", "update"]
  212. # Allow Dashboard to get metrics.
  213. - apiGroups: [""]
  214. resources: ["services"]
  215. resourceNames: ["heapster", "dashboard-metrics-scraper"]
  216. verbs: ["proxy"]
  217. - apiGroups: [""]
  218. resources: ["services/proxy"]
  219. resourceNames: ["heapster", "http:heapster:", "https:heapster:", "dashboard-metrics-scraper", "http:dashboard-metrics-scraper"]
  220. verbs: ["get"]
  221. ---
  222. # Source: kubernetes-dashboard/templates/rolebinding.yaml
  223. # Copyright 2017 The Kubernetes Authors.
  224. #
  225. # Licensed under the Apache License, Version 2.0 (the "License");
  226. # you may not use this file except in compliance with the License.
  227. # You may obtain a copy of the License at
  228. #
  229. # http://www.apache.org/licenses/LICENSE-2.0
  230. #
  231. # Unless required by applicable law or agreed to in writing, software
  232. # distributed under the License is distributed on an "AS IS" BASIS,
  233. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  234. # See the License for the specific language governing permissions and
  235. # limitations under the License.
  236. apiVersion: rbac.authorization.k8s.io/v1
  237. kind: RoleBinding
  238. metadata:
  239. name: kubernetes-dashboard
  240. labels:
  241. app.kubernetes.io/name: kubernetes-dashboard
  242. helm.sh/chart: kubernetes-dashboard-6.0.8
  243. app.kubernetes.io/instance: kubernetes-dashboard
  244. app.kubernetes.io/version: "v2.7.0"
  245. app.kubernetes.io/managed-by: Helm
  246. annotations:
  247. roleRef:
  248. apiGroup: rbac.authorization.k8s.io
  249. kind: Role
  250. name: kubernetes-dashboard
  251. subjects:
  252. - kind: ServiceAccount
  253. name: kubernetes-dashboard
  254. namespace: default
  255. ---
  256. # Source: kubernetes-dashboard/templates/service.yaml
  257. # Copyright 2017 The Kubernetes Authors.
  258. #
  259. # Licensed under the Apache License, Version 2.0 (the "License");
  260. # you may not use this file except in compliance with the License.
  261. # You may obtain a copy of the License at
  262. #
  263. # http://www.apache.org/licenses/LICENSE-2.0
  264. #
  265. # Unless required by applicable law or agreed to in writing, software
  266. # distributed under the License is distributed on an "AS IS" BASIS,
  267. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  268. # See the License for the specific language governing permissions and
  269. # limitations under the License.
  270. apiVersion: v1
  271. kind: Service
  272. metadata:
  273. name: kubernetes-dashboard
  274. labels:
  275. app.kubernetes.io/name: kubernetes-dashboard
  276. helm.sh/chart: kubernetes-dashboard-6.0.8
  277. app.kubernetes.io/instance: kubernetes-dashboard
  278. app.kubernetes.io/version: "v2.7.0"
  279. app.kubernetes.io/managed-by: Helm
  280. app.kubernetes.io/component: kubernetes-dashboard
  281. kubernetes.io/cluster-service: "true"
  282. annotations:
  283. spec:
  284. type: ClusterIP
  285. ports:
  286. - port: 443
  287. targetPort: https
  288. name: https
  289. selector:
  290. app.kubernetes.io/name: kubernetes-dashboard
  291. app.kubernetes.io/instance: kubernetes-dashboard
  292. app.kubernetes.io/component: kubernetes-dashboard
  293. ---
  294. # Source: kubernetes-dashboard/templates/deployment.yaml
  295. # Copyright 2017 The Kubernetes Authors.
  296. #
  297. # Licensed under the Apache License, Version 2.0 (the "License");
  298. # you may not use this file except in compliance with the License.
  299. # You may obtain a copy of the License at
  300. #
  301. # http://www.apache.org/licenses/LICENSE-2.0
  302. #
  303. # Unless required by applicable law or agreed to in writing, software
  304. # distributed under the License is distributed on an "AS IS" BASIS,
  305. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  306. # See the License for the specific language governing permissions and
  307. # limitations under the License.
  308. apiVersion: apps/v1
  309. kind: Deployment
  310. metadata:
  311. name: kubernetes-dashboard
  312. annotations:
  313. labels:
  314. app.kubernetes.io/name: kubernetes-dashboard
  315. helm.sh/chart: kubernetes-dashboard-6.0.8
  316. app.kubernetes.io/instance: kubernetes-dashboard
  317. app.kubernetes.io/version: "v2.7.0"
  318. app.kubernetes.io/managed-by: Helm
  319. app.kubernetes.io/component: kubernetes-dashboard
  320. spec:
  321. replicas: 1
  322. strategy:
  323. rollingUpdate:
  324. maxSurge: 0
  325. maxUnavailable: 1
  326. type: RollingUpdate
  327. selector:
  328. matchLabels:
  329. app.kubernetes.io/name: kubernetes-dashboard
  330. app.kubernetes.io/instance: kubernetes-dashboard
  331. app.kubernetes.io/component: kubernetes-dashboard
  332. template:
  333. metadata:
  334. annotations:
  335. labels:
  336. app.kubernetes.io/name: kubernetes-dashboard
  337. helm.sh/chart: kubernetes-dashboard-6.0.8
  338. app.kubernetes.io/instance: kubernetes-dashboard
  339. app.kubernetes.io/version: "v2.7.0"
  340. app.kubernetes.io/managed-by: Helm
  341. app.kubernetes.io/component: kubernetes-dashboard
  342. spec:
  343. securityContext:
  344. runAsNonRoot: true
  345. seccompProfile:
  346. type: RuntimeDefault
  347. serviceAccountName: kubernetes-dashboard
  348. containers:
  349. - name: kubernetes-dashboard
  350. image: "kubernetesui/dashboard:v2.7.0"
  351. imagePullPolicy: IfNotPresent
  352. args:
  353. - --namespace=default
  354. - --auto-generate-certificates
  355. - --metrics-provider=none
  356. ports:
  357. - name: https
  358. containerPort: 8443
  359. protocol: TCP
  360. volumeMounts:
  361. - name: kubernetes-dashboard-certs
  362. mountPath: /certs
  363. # Create on-disk volume to store exec logs
  364. - mountPath: /tmp
  365. name: tmp-volume
  366. livenessProbe:
  367. httpGet:
  368. scheme: HTTPS
  369. path: /
  370. port: 8443
  371. initialDelaySeconds: 30
  372. timeoutSeconds: 30
  373. resources:
  374. limits:
  375. cpu: 2
  376. memory: 200Mi
  377. requests:
  378. cpu: 100m
  379. memory: 200Mi
  380. securityContext:
  381. allowPrivilegeEscalation: false
  382. capabilities:
  383. drop:
  384. - ALL
  385. readOnlyRootFilesystem: true
  386. runAsGroup: 2001
  387. runAsUser: 1001
  388. volumes:
  389. - name: kubernetes-dashboard-certs
  390. secret:
  391. secretName: kubernetes-dashboard-certs
  392. - name: tmp-volume
  393. emptyDir: {}
  394. ---
  395. # Source: kubernetes-dashboard/templates/clusterrole-readonly.yaml
  396. # Copyright 2017 The Kubernetes Authors.
  397. #
  398. # Licensed under the Apache License, Version 2.0 (the "License");
  399. # you may not use this file except in compliance with the License.
  400. # You may obtain a copy of the License at
  401. #
  402. # http://www.apache.org/licenses/LICENSE-2.0
  403. #
  404. # Unless required by applicable law or agreed to in writing, software
  405. # distributed under the License is distributed on an "AS IS" BASIS,
  406. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  407. # See the License for the specific language governing permissions and
  408. # limitations under the License.
  409. ---
  410. # Source: kubernetes-dashboard/templates/clusterrolebinding-readonly.yaml
  411. # Copyright 2017 The Kubernetes Authors.
  412. #
  413. # Licensed under the Apache License, Version 2.0 (the "License");
  414. # you may not use this file except in compliance with the License.
  415. # You may obtain a copy of the License at
  416. #
  417. # http://www.apache.org/licenses/LICENSE-2.0
  418. #
  419. # Unless required by applicable law or agreed to in writing, software
  420. # distributed under the License is distributed on an "AS IS" BASIS,
  421. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  422. # See the License for the specific language governing permissions and
  423. # limitations under the License.
  424. ---
  425. # Source: kubernetes-dashboard/templates/extra-manifests.yaml
  426. # Copyright 2017 The Kubernetes Authors.
  427. #
  428. # Licensed under the Apache License, Version 2.0 (the "License");
  429. # you may not use this file except in compliance with the License.
  430. # You may obtain a copy of the License at
  431. #
  432. # http://www.apache.org/licenses/LICENSE-2.0
  433. #
  434. # Unless required by applicable law or agreed to in writing, software
  435. # distributed under the License is distributed on an "AS IS" BASIS,
  436. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  437. # See the License for the specific language governing permissions and
  438. # limitations under the License.
  439. #
  440. ---
  441. # Source: kubernetes-dashboard/templates/ingress.yaml
  442. # Copyright 2017 The Kubernetes Authors.
  443. #
  444. # Licensed under the Apache License, Version 2.0 (the "License");
  445. # you may not use this file except in compliance with the License.
  446. # You may obtain a copy of the License at
  447. #
  448. # http://www.apache.org/licenses/LICENSE-2.0
  449. #
  450. # Unless required by applicable law or agreed to in writing, software
  451. # distributed under the License is distributed on an "AS IS" BASIS,
  452. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  453. # See the License for the specific language governing permissions and
  454. # limitations under the License.
  455. ---
  456. # Source: kubernetes-dashboard/templates/networkpolicy.yaml
  457. # Copyright 2017 The Kubernetes Authors.
  458. #
  459. # Licensed under the Apache License, Version 2.0 (the "License");
  460. # you may not use this file except in compliance with the License.
  461. # You may obtain a copy of the License at
  462. #
  463. # http://www.apache.org/licenses/LICENSE-2.0
  464. #
  465. # Unless required by applicable law or agreed to in writing, software
  466. # distributed under the License is distributed on an "AS IS" BASIS,
  467. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  468. # See the License for the specific language governing permissions and
  469. # limitations under the License.
  470. ---
  471. # Source: kubernetes-dashboard/templates/pdb.yaml
  472. # Copyright 2017 The Kubernetes Authors.
  473. #
  474. # Licensed under the Apache License, Version 2.0 (the "License");
  475. # you may not use this file except in compliance with the License.
  476. # You may obtain a copy of the License at
  477. #
  478. # http://www.apache.org/licenses/LICENSE-2.0
  479. #
  480. # Unless required by applicable law or agreed to in writing, software
  481. # distributed under the License is distributed on an "AS IS" BASIS,
  482. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  483. # See the License for the specific language governing permissions and
  484. # limitations under the License.
  485. ---
  486. # Source: kubernetes-dashboard/templates/psp.yaml
  487. # Copyright 2017 The Kubernetes Authors.
  488. #
  489. # Licensed under the Apache License, Version 2.0 (the "License");
  490. # you may not use this file except in compliance with the License.
  491. # You may obtain a copy of the License at
  492. #
  493. # http://www.apache.org/licenses/LICENSE-2.0
  494. #
  495. # Unless required by applicable law or agreed to in writing, software
  496. # distributed under the License is distributed on an "AS IS" BASIS,
  497. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  498. # See the License for the specific language governing permissions and
  499. # limitations under the License.
  500. ---
  501. # Source: kubernetes-dashboard/templates/servicemonitor.yaml
  502. # Copyright 2017 The Kubernetes Authors.
  503. #
  504. # Licensed under the Apache License, Version 2.0 (the "License");
  505. # you may not use this file except in compliance with the License.
  506. # You may obtain a copy of the License at
  507. #
  508. # http://www.apache.org/licenses/LICENSE-2.0
  509. #
  510. # Unless required by applicable law or agreed to in writing, software
  511. # distributed under the License is distributed on an "AS IS" BASIS,
  512. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  513. # See the License for the specific language governing permissions and
  514. # limitations under the License.