Skip to content

Commit

Permalink
first fully working cluster with worker nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
abasitt committed Jul 8, 2024
1 parent aac076d commit dd021ed
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ansible/neo/inventory/group_vars/kubernetes/supplemental.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ timezone: "Asia/Singapore"
github_username: abasitt
kubeapi_addr: "2001:470:ee86:30:192:168:30:60" #kube-vip-address
cluster_cidr: "10.44.0.0/16"
cluster_v6cidr: "2001:470:ee86:44::/56"
cluster_v6cidr: "2001:470:ee86:4400::/56"
service_cidr: "10.45.0.0/16"
service_v6cidr: "2001:470:ee86:4:10:45::/112"
service_v6cidr: "2001:470:ee86:4500:10:45::/112"
coredns_v4addr: "{{ service_cidr.split(',')[0] | ansible.utils.nthhost(10) }}"
coredns_v6addr: "{{ service_v6cidr.split(',')[0] | ansible.utils.nthhost(10) }}"
nodes_v4cidr: "192.168.30.0/24"
Expand Down
2 changes: 1 addition & 1 deletion ansible/neo/inventory/group_vars/master/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ k3s_server:
- "bind-address=::" # Required to monitor kube-scheduler with kube-prometheus-stack
kube-apiserver-arg:
- "bind-address=::"
- "--advertise-address={{ kubeapi_addr }}"
#- "--advertise-address={{ kubeapi_addr }}"
- "anonymous-auth=true" # Required for HAProxy health-checks
- "default-not-ready-toleration-seconds=20"
- "default-unreachable-toleration-seconds=20"
Expand Down
4 changes: 2 additions & 2 deletions ansible/neo/inventory/group_vars/worker/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

k3s_control_node: false
k3s_agent:
node-ip: "{{ ansible_host }},{{ ansible_v6host }}"
node-ip: "{{ ansible_v6host }},{{ ansible_host }}"
#node-ip: "{{ ansible_default_ipv6.address }},{{ ansible_host }}"
pause-image: registry.k8s.io/pause:3.10
kubelet-arg:
- "image-gc-high-threshold=55"
- "image-gc-low-threshold=50"
- "node-ip=::"
- "node-ip={{ ansible_v6host }}"
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ spec:
nodeSelector: all()
nodeMetricsPort: 9091
typhaMetricsPort: 9093
kubeletVolumePluginPath: None
2 changes: 1 addition & 1 deletion ansible/neo/playbooks/templates/kube-vip-ds.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
- name: port
value: "6443"
- name: vip_cidr
value: "32"
value: "128"
- name: cp_enable
value: "true"
- name: cp_namespace
Expand Down

0 comments on commit dd021ed

Please sign in to comment.