Merge branch 'fix-k3s-config' into 'development'

fix: k3s config

See merge request nofusscomputing/projects/ansible/kubernetes!23
This commit is contained in:
2024-02-03 05:10:39 +00:00
3 changed files with 19 additions and 5 deletions

View File

@ -5,9 +5,9 @@ kind: FelixConfiguration
metadata: metadata:
name: default name: default
spec: spec:
bpfConnectTimeLoadBalancing: TCP # bpfConnectTimeLoadBalancing: TCP
bpfExternalServiceMode: DSR # bpfExternalServiceMode: DSR
bpfHostNetworkedNATWithoutCTLB: Enabled # bpfHostNetworkedNATWithoutCTLB: Enabled
bpfLogLevel: "" bpfLogLevel: ""
floatingIPs: Disabled floatingIPs: Disabled
healthPort: 9099 healthPort: 9099

View File

@ -42,4 +42,12 @@ spec:
nonPrivileged: Disabled nonPrivileged: Disabled
serviceCIDRs: serviceCIDRs:
- {{ kubernetes_config.cluster.networking.ServiceSubnet }} - {{ kubernetes_config.cluster.networking.ServiceSubnet }}
typhaDeployment:
spec:
template:
spec:
tolerations:
- effect: NoExecute
key: CriticalAddonsOnly
value: "true"
variant: Calico variant: Calico

View File

@ -124,7 +124,6 @@
",ephemeral-storage=" + kubelet_arg_system_reserved_storage ",ephemeral-storage=" + kubelet_arg_system_reserved_storage
], ],
"node-name": inventory_hostname, "node-name": inventory_hostname,
"node-ip": ansible_default_ipv4.address
} }
-%} -%}
@ -201,9 +200,16 @@
-%} -%}
{%- set all_nodes_config = all_nodes_config | combine({ {%- set all_nodes_config = all_nodes_config | combine({
"node-external-ip": host_external_ip, "node-external-ip": host_external_ip
}) -%} }) -%}
{%- else -%}
{%- set all_nodes_config = all_nodes_config | combine({
"node-ip": ansible_default_ipv4.address
}) -%}
{%- endif -%} {%- endif -%}
{# EoF All Nodes #} {# EoF All Nodes #}