-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(kubernetes-dashboard): move override to separate values.yaml…
… file (#179) * refactor: use multiple source for kubernetes-dashboard argo application - store override in a separate values.yaml file - upgrade to version 7.9.0 * misc: add description * fix: yaml linting
- Loading branch information
1 parent
77e6825
commit 546c236
Showing
6 changed files
with
49 additions
and
61 deletions.
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
14 changes: 7 additions & 7 deletions
14
...bernetes-dashboard/clusterolebinding.yaml → ...board/dependencies/clusterolebinding.yaml
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: k8s-dashboard-clusterrole | ||
name: dashboard-user | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "0" | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: cluster-admin | ||
subjects: | ||
- kind: ServiceAccount | ||
name: <CLUSTER_NAME>-kubernetes-dashboard | ||
name: dashboard-user | ||
namespace: kubernetes-dashboard | ||
roleRef: | ||
kind: ClusterRole | ||
name: admin | ||
apiGroup: rbac.authorization.k8s.io |
8 changes: 8 additions & 0 deletions
8
kubernetes-dashboard/components/kubernetes-dashboard/dependencies/service-account.yaml
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,8 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: dashboard-user | ||
|
||
# to get your bearer token for auth, connect to your cluster, then run command: | ||
# kubectl -n kubernetes-dashboard create token dashboard-user |
27 changes: 0 additions & 27 deletions
27
kubernetes-dashboard/components/kubernetes-dashboard/ingress.yaml
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
kubernetes-dashboard/components/kubernetes-dashboard/service-account-token.yaml
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
kubernetes-dashboard/components/kubernetes-dashboard/values.yaml
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,21 @@ | ||
--- | ||
app: | ||
ingress: | ||
enabled: true | ||
hosts: | ||
- kubernetes-dashboard.<CLUSTER_NAME>.<DOMAIN_NAME> | ||
ingressClassName: nginx | ||
tls: | ||
enabled: true | ||
secretName: "kubernetes-dashboard-tls" | ||
# Adds following annotation cert-manager.io/cluster-issuer: letsencrypt-prod | ||
issuer: | ||
scope: cluster | ||
name: "letsencrypt-prod" | ||
# This will append our Ingress with annotations required by our default configuration. | ||
# nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" | ||
# nginx.ingress.kubernetes.io/ssl-passthrough: "true" | ||
# nginx.ingress.kubernetes.io/ssl-redirect: "true" | ||
useDefaultAnnotations: true | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "2" |