Update to lastest version 2.1.0
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
97510ad0f1
commit
ddb03c153e
4 changed files with 36 additions and 18 deletions
|
|
@ -1,5 +1,20 @@
|
|||
- name: Dashboard setup
|
||||
block:
|
||||
- name: Include file list
|
||||
include_vars: "dashboard-files.yaml"
|
||||
|
||||
- name: namespace
|
||||
k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
definition:
|
||||
api_version: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: kubernetes-dashboard
|
||||
labels:
|
||||
namespace: 'kubernetes-dashboard'
|
||||
- name: dashboard install
|
||||
k8s:
|
||||
state: present
|
||||
|
|
@ -7,25 +22,11 @@
|
|||
merge_type: merge
|
||||
resource_definition: "{{ lookup('file', item) | from_yaml }}"
|
||||
with_items:
|
||||
- "kubernetes-dashboard-Namespace.yaml"
|
||||
- NetworkPolicies/default-deny-ingress.yaml
|
||||
- NetworkPolicies/allow-from-namespace.yaml
|
||||
- "kubernetes-dashboard-ServiceAccount.yaml"
|
||||
- "kubernetes-dashboard-Service.yaml"
|
||||
- "kubernetes-dashboard-certs-Secret.yaml"
|
||||
- "kubernetes-dashboard-csrf-Secret.yaml"
|
||||
- "kubernetes-dashboard-key-holder-Secret.yaml"
|
||||
- "kubernetes-dashboard-settings-ConfigMap.yaml"
|
||||
- "kubernetes-dashboard-Role.yaml"
|
||||
- "kubernetes-dashboard-ClusterRole.yaml"
|
||||
- "kubernetes-dashboard-RoleBinding.yaml"
|
||||
- "kubernetes-dashboard-ClusterRoleBinding.yaml"
|
||||
- "kubernetes-dashboard-Deployment.yaml"
|
||||
- "dashboard-metrics-scraper-Service.yaml"
|
||||
- "dashboard-metrics-scraper-Deployment.yaml"
|
||||
- traefik/dashboard-traefik-auth-sa.yaml
|
||||
- traefik/dashboard-traefik-auth-crb.yaml
|
||||
|
||||
- "{{ dashboard_files_list }}"
|
||||
- name: get the dashboard-token secret name
|
||||
command: kubectl --context {{ my_context }} get sa kubernetes-dashboard-traefik -n kubernetes-dashboard -o jsonpath='{.secrets[0].name}'
|
||||
register: secret_name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue