mirror of
https://github.com/jcwimer/kubernetes-ansible
synced 2026-05-15 16:59:39 +00:00
Added nodeport for traefik and added rbac for traefik
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
KUBECONFIG: "{{ ansible_env.HOME }}/admin.conf"
|
||||
ignore_errors: true
|
||||
|
||||
- name: Copy Traefik yml
|
||||
- name: Copy Traefik ds yml
|
||||
template:
|
||||
src: ../templates/traefik-ds.yml.j2
|
||||
dest: "{{ ansible_env.HOME }}/traefik-ds.yml"
|
||||
@@ -57,4 +57,15 @@
|
||||
shell: >
|
||||
kubectl apply -f {{ ansible_env.HOME }}/traefik-ds.yml
|
||||
environment:
|
||||
KUBECONFIG: "{{ ansible_env.HOME }}/admin.conf"
|
||||
KUBECONFIG: "{{ ansible_env.HOME }}/admin.conf"
|
||||
|
||||
- name: Copy Traefik rbac yaml
|
||||
template:
|
||||
src: ../templates/traefik-rbac.yaml.j2
|
||||
dest: "{{ ansible_env.HOME }}/traefik-rbac.yaml"
|
||||
|
||||
- name: Install Traefik RBAC
|
||||
shell: >
|
||||
kubectl apply -f {{ ansible_env.HOME }}/traefik-rbac.yaml
|
||||
environment:
|
||||
KUBECONFIG: "{{ ansible_env.HOME }}/admin.conf"
|
||||
|
||||
Reference in New Issue
Block a user