-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add serviceaccount for kubernetes-dashboard and wrote docs related to rbac
- Loading branch information
Showing
4 changed files
with
103 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## Addons | ||
|
||
Read on [addons](../docs/addons.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
k8s-app: kubernetes-dashboard | ||
k8s-addon: kubernetes-dashboard.addons.k8s.io | ||
k8s-app: kubernetes-dashboard | ||
name: kubernetes-dashboard | ||
namespace: kube-system | ||
--- | ||
kind: Deployment | ||
apiVersion: extensions/v1beta1 | ||
metadata: | ||
name: kubernetes-dashboard | ||
namespace: kube-system | ||
labels: | ||
k8s-addon: kubernetes-dashboard.addons.k8s.io | ||
k8s-app: kubernetes-dashboard | ||
version: v1.6.1 | ||
kubernetes.io/cluster-service: "true" | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
k8s-app: kubernetes-dashboard | ||
template: | ||
metadata: | ||
labels: | ||
k8s-addon: kubernetes-dashboard.addons.k8s.io | ||
k8s-app: kubernetes-dashboard | ||
version: v1.6.1 | ||
kubernetes.io/cluster-service: "true" | ||
annotations: | ||
scheduler.alpha.kubernetes.io/critical-pod: '' | ||
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]' | ||
spec: | ||
containers: | ||
- name: kubernetes-dashboard | ||
image: gcr.io/google_containers/kubernetes-dashboard-amd64:v1.6.1 | ||
resources: | ||
# keep request = limit to keep this container in guaranteed class | ||
limits: | ||
cpu: 100m | ||
memory: 50Mi | ||
requests: | ||
cpu: 100m | ||
memory: 50Mi | ||
ports: | ||
- containerPort: 9090 | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: 9090 | ||
initialDelaySeconds: 30 | ||
timeoutSeconds: 30 | ||
serviceAccountName: kubernetes-dashboard | ||
--- | ||
|
||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: kubernetes-dashboard | ||
namespace: kube-system | ||
labels: | ||
k8s-addon: kubernetes-dashboard.addons.k8s.io | ||
k8s-app: kubernetes-dashboard | ||
kubernetes.io/cluster-service: "true" | ||
spec: | ||
selector: | ||
k8s-app: kubernetes-dashboard | ||
ports: | ||
- port: 80 | ||
targetPort: 9090 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters