mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-25 01:10:22 +00:00
Compare commits
3 commits
b2588bdff6
...
52a44a2b01
Author | SHA1 | Date | |
---|---|---|---|
|
52a44a2b01 | ||
|
fc7495bd9a | ||
|
d9c0abb396 |
5 changed files with 13 additions and 20 deletions
|
@ -1,5 +1,5 @@
|
||||||
write-kubeconfig-mode: "0644"
|
write-kubeconfig-mode: "0644"
|
||||||
token: {{ hostvars['server1']['token'] }}
|
token: {{ hostvars[groups['servers'][0]]['token'] }}
|
||||||
server: https://{{ hostvars['server1']['ansible_host'] }}:9345
|
server: https://{{ hostvars[groups['servers'][0]]['ansible_host'] }}:9345
|
||||||
node-label:
|
node-label:
|
||||||
- "agent=true"
|
- "agent=true"
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
write-kubeconfig-mode: "0644"
|
write-kubeconfig-mode: "0644"
|
||||||
token: {{ hostvars['server1']['token'] }}
|
token: {{ hostvars[groups['servers'][0]]['token'] }}
|
||||||
server: https://{{ hostvars['server1']['ansible_host'] }}:9345
|
server: https://{{ hostvars[groups['servers'][0]]['ansible_host'] }}:9345
|
||||||
tls-san:
|
tls-san:
|
||||||
- {{ vip }}
|
- {{ vip }}
|
||||||
- {{ hostvars['server1']['ansible_host'] }}
|
{% for host in groups['servers'] %}
|
||||||
- {{ hostvars['server2']['ansible_host'] }}
|
- {{ hostvars[host]['ansible_host'] }}
|
||||||
- {{ hostvars['server3']['ansible_host'] }}
|
{% endfor %}
|
||||||
node-label:
|
node-label:
|
||||||
- server=true
|
- server=true
|
|
@ -47,7 +47,7 @@
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
when: inventory_hostname in groups['servers'][0]
|
when: inventory_hostname in groups['servers'][0]
|
||||||
|
|
||||||
# wait for node token to be availale so that we can copy it, we need this to join other nodes
|
# wait for node token to be available so that we can copy it, we need this to join other nodes
|
||||||
- name: Wait for node-token
|
- name: Wait for node-token
|
||||||
ansible.builtin.wait_for:
|
ansible.builtin.wait_for:
|
||||||
path: /var/lib/rancher/rke2/server/node-token
|
path: /var/lib/rancher/rke2/server/node-token
|
||||||
|
@ -126,9 +126,9 @@
|
||||||
when: inventory_hostname == groups['servers'][0]
|
when: inventory_hostname == groups['servers'][0]
|
||||||
|
|
||||||
# change IP from local to server 1 IP
|
# change IP from local to server 1 IP
|
||||||
- name: Replace IP address with server1
|
- name: Replace IP address with first server
|
||||||
ansible.builtin.replace:
|
ansible.builtin.replace:
|
||||||
path: /home/{{ ansible_user }}/.kube/config
|
path: /home/{{ ansible_user }}/.kube/config
|
||||||
regexp: '127.0.0.1'
|
regexp: '127.0.0.1'
|
||||||
replace: "{{ hostvars['server1']['ansible_host'] }}"
|
replace: "{{ hostvars[groups['servers'][0]]['ansible_host'] }}"
|
||||||
when: inventory_hostname == groups['servers'][0]
|
when: inventory_hostname == groups['servers'][0]
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
write-kubeconfig-mode: "0644"
|
write-kubeconfig-mode: "0644"
|
||||||
tls-san:
|
tls-san:
|
||||||
- {{ vip }}
|
- {{ vip }}
|
||||||
- {{ hostvars['server1']['ansible_host'] }}
|
{% for host in groups['servers'] %}
|
||||||
- {{ hostvars['server2']['ansible_host'] }}
|
- {{ hostvars[host]['ansible_host'] }}
|
||||||
- {{ hostvars['server3']['ansible_host'] }}
|
{% endfor %}
|
||||||
node-label:
|
node-label:
|
||||||
- server=true
|
- server=true
|
||||||
disable:
|
disable:
|
||||||
|
|
|
@ -27,13 +27,6 @@ spec:
|
||||||
- image: visibilityspots/cloudflared
|
- image: visibilityspots/cloudflared
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
name: cloudflared
|
name: cloudflared
|
||||||
ports:
|
|
||||||
- containerPort: 53
|
|
||||||
name: dns
|
|
||||||
protocol: TCP
|
|
||||||
- containerPort: 67
|
|
||||||
name: dns-udp
|
|
||||||
protocol: UDP
|
|
||||||
env:
|
env:
|
||||||
- name: TUNNEL_METRICS
|
- name: TUNNEL_METRICS
|
||||||
value: 127.0.0.1:3000
|
value: 127.0.0.1:3000
|
||||||
|
|
Loading…
Reference in a new issue