fix(k8s): update inventory configuration for production cluster

- set ansible_user to 'mrwho' and disable SSH password authentication
- upgrade k8s_version to 1.36 in all.yml (removed from control_plane.yml)
- reduce traefik ingress routes to only k8s-dashboard and longhorn-ui with HTTPS
- update host IP addresses to 172.20.21.x subnet
- configure longhorn disk for k8s-worker-01
This commit is contained in:
mrwho 2026-07-15 16:09:15 +03:00
parent a82c1ca025
commit bbf954ba09
4 changed files with 21 additions and 124 deletions

View file

@ -1,5 +1,7 @@
--- ---
ansible_user: "{{ lookup('env', 'ANSIBLE_SSH_USER') | default('ansible') }}" #ansible_user: "{{ lookup('env', 'ANSIBLE_SSH_USER') | default('ansible') }}"
ansible_user: mrwho
ansible_become: true ansible_become: true
ansible_become_method: sudo #ansible_become_method: sudo
ansible_become_pass: "{{ lookup('env', 'ANSIBLE_BECOME_PASS') | default(omit) }}" #ansible_become_pass: "{{ lookup('env', 'ANSIBLE_BECOME_PASS') | default(omit) }}"
k8s_version: "1.36"

View file

@ -1,4 +1,3 @@
--- ---
k8s_version: "1.33"
cni_plugin: "flannel" cni_plugin: "flannel"
kubeconfig_fetch_to_managers: true kubeconfig_fetch_to_managers: true

View file

@ -1,31 +1,21 @@
--- ---
traefik_enable_ingress: true
traefik_ingress_class_name: "traefik"
traefik_namespace: kube-system
traefik_port_map: traefik_port_map:
- name: k8s-dashboard - name: k8s-dashboard
description: "Kubernetes Dashboard"
port: 10001 port: 10001
backend: backend:
namespace: kubernetes-dashboard namespace: kubernetes-dashboard
service: kubernetes-dashboard service: kubernetes-dashboard
port: 443 port: 443
scheme: http scheme: https
basicauth:
enabled: false
- name: grafana
description: "Grafana (Logs & Metrics)"
port: 10003
backend:
namespace: monitoring
service: grafana
port: 80
scheme: http
basicauth: basicauth:
enabled: false enabled: false
- name: longhorn-ui - name: longhorn-ui
description: "Longhorn Storage UI"
port: 10002 port: 10002
backend: backend:
namespace: longhorn-system namespace: longhorn-system
@ -36,103 +26,6 @@ traefik_port_map:
enabled: true enabled: true
secret_name: traefik-auth-longhorn secret_name: traefik-auth-longhorn
- name: minio-api
description: "MinIO S3 API"
port: 10005
backend:
namespace: minio
service: minio
port: 9000
scheme: http
basicauth:
enabled: false
- name: minio-console
description: "MinIO Console (Web UI)"
port: 10006
backend:
namespace: minio
service: minio-console
port: 9001
scheme: http
basicauth:
enabled: false
- name: billing-backend
description: "Mobile Billing Backend API"
port: 10100
backend:
namespace: gigacom-billing-mobile
service: billing-backend
port: 8080
scheme: http
basicauth:
enabled: false
- name: bgbilling
description: "BGBillingServer HTTP (web UI, API)"
port: 10101
backend:
namespace: bgbilling-dev
service: bgbilling
port: 8080
scheme: http
basicauth:
enabled: false
- name: bgbilling-https
description: "BGBillingServer HTTPS (Tomcat TLS, .keystore)"
port: 10102
backend:
namespace: bgbilling-dev
service: bgbilling
port: 8443
scheme: https
basicauth:
enabled: false
- name: bgbilling-db
description: "MariaDB for BGBilling (TCP)"
protocol: tcp
port: 10103
backend:
namespace: bgbilling-dev
service: db
port: 3306
- name: activemq-web
description: "ActiveMQ Web Console"
port: 10104
backend:
namespace: bgbilling-dev
service: activemq
port: 8161
scheme: http
basicauth:
enabled: false
- name: ollama-proxy
description: "Ollama Proxy API (k8s_ai)"
port: 10200
backend:
namespace: ai
service: ollama-proxy
port: 8080
scheme: http
basicauth:
enabled: false
- name: open-webui
description: "Open WebUI (k8s_ai)"
port: 10201
backend:
namespace: ai
service: open-webui
port: 8080
scheme: http
basicauth:
enabled: false
# Template for future services: # Template for future services:
# - name: my-service # - name: my-service
# description: "Human-readable description" # description: "Human-readable description"

View file

@ -5,7 +5,7 @@ all:
manager_nodes: manager_nodes:
hosts: hosts:
k8s-manager-01: k8s-manager-01:
ansible_host: 10.203.0.92 ansible_host: 172.20.21.200
# Kubernetes cluster nodes # Kubernetes cluster nodes
k8s_cluster: k8s_cluster:
@ -13,14 +13,17 @@ all:
control_plane: control_plane:
hosts: hosts:
k8s-master-01: k8s-master-01:
ansible_host: 10.203.0.97 ansible_host: 172.20.21.201
workers: workers:
hosts: hosts:
k8s-worker-01: k8s-worker-01:
ansible_host: 10.203.0.96 ansible_host: 172.20.21.202
children: longhorn_disks:
# Workers with an NVIDIA GPU attached (device plugin + node label) - device: /dev/sdb
gpu_workers: mountpoint: /mnt/longhorn-disk1
hosts: # children:
k8s-worker-02: # # Workers with an NVIDIA GPU attached (device plugin + node label)
ansible_host: 10.203.0.212 # gpu_workers:
# hosts:
# k8s-worker-02:
# ansible_host: 10.203.0.212