Files
k8s-deploy/env/avroid_prod/k8s-avroid-office.prod.local/inventory/inventory.ini
Denis Patrakeev eaccaa1042 [DO-1431] Final config PROD k8s (!3)
DO-1431

Co-authored-by: denis.patrakeev <denis.patrakeev@avroid.tech>
Reviewed-on: https://git.avroid.tech/K8s/k8s-deploy/pulls/3
2024-12-27 19:50:22 +03:00

56 lines
1.6 KiB
INI

# ## Configure 'ip' variable to bind kubernetes services on a
# ## different ip than the default iface
# ## We should set etcd_member_name for etcd cluster. The node that is not a etcd member do not need to set the value, or can set the empty string value.
[all]
k8s-control-01 ansible_host=k8s-control-01.avroid.tech ip=10.2.20.31 etcd_member_name=etcd1
k8s-control-02 ansible_host=k8s-control-02.avroid.tech ip=10.2.20.32 etcd_member_name=etcd2
k8s-control-03 ansible_host=k8s-control-03.avroid.tech ip=10.2.20.33 etcd_member_name=etcd3
k8s-worker-01 ansible_host=k8s-worker-01.avroid.tech
k8s-worker-02 ansible_host=k8s-worker-02.avroid.tech
k8s-worker-03 ansible_host=k8s-worker-03.avroid.tech
k8s-build-01 ansible_host=k8s-build-01.avroid.tech
k8s-build-02 ansible_host=k8s-build-02.avroid.tech
k8s-build-03 ansible_host=k8s-build-03.avroid.tech
k8s-build-04 ansible_host=k8s-build-04.avroid.tech
k8s-build-05 ansible_host=k8s-build-05.avroid.tech
k8s-build-06 ansible_host=k8s-build-06.avroid.tech
k8s-build-07 ansible_host=k8s-build-07.avroid.tech
# ## configure a bastion host if your nodes are not directly reachable
# [bastion]
# bastion ansible_host=x.x.x.x ansible_user=some_user
[kube_control_plane]
k8s-control-01
k8s-control-02
k8s-control-03
[etcd]
k8s-control-01
k8s-control-02
k8s-control-03
[custom_kube_node_with_ingress]
k8s-worker-01
k8s-worker-02
k8s-worker-03
[kube_node]
k8s-build-01
k8s-build-02
k8s-build-03
k8s-build-04
k8s-build-05
k8s-build-06
k8s-build-07
[kube_node:children]
custom_kube_node_with_ingress
#[calico_rr]
[k8s_cluster:children]
kube_control_plane
kube_node
#calico_rr