Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix inconsistent selection of master #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions inventory/group_vars/all/k8s.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
k8s_advertise_address_int: "{{ rpi_wired_int }}"

k8s_master_group: rpi_k8s_master

k8s_cluster_group: rpi_k8s

k8s_cluster_init_skip_ca_verification: true
Expand Down
2 changes: 1 addition & 1 deletion playbooks/deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- hosts: rpi_k8s
vars:
k8s_admin_config: /etc/kubernetes/admin.conf
k8s_master: "{{ groups[k8s_cluster_group][0] }}"
k8s_master: "{{ groups[k8s_master_group][0] }}"
tasks:
- name: Ensuring {{ lookup('env','HOME') }}/.kube Exists
file:
Expand Down
4 changes: 3 additions & 1 deletion roles/ansible-k8s/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ k8s_advertise_address_int: enp0s8

k8s_advertise_bind_port: 6443

k8s_cluster_group: k8s
k8s_master_group: rpi_k8s_master

k8s_cluster_group: rpi_k8s

k8s_cluster_init_skip_ca_verification: false

Expand Down
2 changes: 1 addition & 1 deletion roles/ansible-k8s/tasks/set_facts.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: set_facts | Setting K8s Master
set_fact:
k8s_master: "{{ groups[k8s_cluster_group][0] }}"
k8s_master: "{{ groups[k8s_master_group][0] }}"
tags:
- k8s_get_dashboard

Expand Down