Loading ansible/automation/1-kind-cluster/kind-config.yaml +9 −0 Changes for ansible/automation/1-kind-cluster/kind-config.yaml: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ nodes: certSANs: - "localhost" - "127.0.0.1" - "10.69.222.3" extraPortMappings: - containerPort: 6443 hostPort: 6443 Loading @@ -20,6 +21,14 @@ nodes: hostPort: 30090 listenAddress: "0.0.0.0" protocol: TCP - containerPort: 30091 hostPort: 30091 listenAddress: "0.0.0.0" protocol: TCP - containerPort: 30092 hostPort: 30092 listenAddress: "0.0.0.0" protocol: TCP - containerPort: 30769 hostPort: 30769 listenAddress: "0.0.0.0" Loading ansible/automation/1-kind-cluster/prometheus-values.yaml +11 −5 Changes for ansible/automation/1-kind-cluster/prometheus-values.yaml: 11 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -34,6 +34,9 @@ alertmanager: enabled: true ingress: enabled: false service: type: NodePort nodePort: 30092 grafana: enabled: true Loading @@ -48,6 +51,9 @@ grafana: existingSecret: grafana-admin-credentials userKey: admin-user passwordKey: admin-password service: type: NodePort nodePort: 30091 kubeApiServer: enabled: true Loading @@ -64,7 +70,7 @@ kubelet: kubeControllerManager: enabled: true endpoints: - 172.26.0.4 - 172.26.0.2 coreDns: enabled: true Loading @@ -75,7 +81,7 @@ kubeDns: kubeEtcd: enabled: true endpoints: - 172.26.0.4 - 172.26.0.2 service: enabled: true port: 2381 Loading @@ -84,14 +90,14 @@ kubeEtcd: kubeScheduler: enabled: true endpoints: - 172.26.0.4 - 172.26.0.2 kubeProxy: enabled: true endpoints: - 172.26.0.4 - 172.26.0.3 - 172.26.0.2 - 172.26.0.3 - 172.26.0.4 kubeStateMetrics: enabled: true Loading ansible/group_vars/all.yml +16 −3 Changes for ansible/group_vars/all.yml: 16 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -16,6 +16,12 @@ kubernetes_version: v1.33.1 api_server_address: "0.0.0.0" api_server_port: 6443 # Service NodePorts prometheus_nodeport: 30090 grafana_nodeport: 30091 alertmanager_nodeport: 30092 i2edge_nodeport: 30769 # Port mappings port_mappings: - container_port: 6443 Loading @@ -26,6 +32,14 @@ port_mappings: host_port: 30090 listen_address: "0.0.0.0" protocol: TCP - container_port: 30091 host_port: 30091 listen_address: "0.0.0.0" protocol: TCP - container_port: 30092 host_port: 30092 listen_address: "0.0.0.0" protocol: TCP - container_port: 30769 host_port: 30769 listen_address: "0.0.0.0" Loading @@ -39,10 +53,10 @@ worker_nodes: 2 cert_sans: - "localhost" - "127.0.0.1" # - "172.27.13.254" # Add extra IPs here if external access is needed # Additional IPs (like ansible_default_ipv4.address) are automatically added by the template # Kubeconfig settings kubeconfig_server_host: "localhost" # Change to your host IP for remote access (e.g., "192.168.1.100") kubeconfig_server_host: "{{ ansible_default_ipv4.address | default('localhost') }}" # Automatically uses host IP, falls back to localhost kubeconfig_server_url: "https://{{ kubeconfig_server_host }}:6443" kubeconfig_output_dir: "{{ op_automation_base }}/automation/1-kind-cluster" kubeconfig_filename: operator-platform-external-kubeconfig.yaml Loading @@ -61,7 +75,6 @@ helm_force_reinstall: false prometheus_namespace: monitoring prometheus_release_name: prometheus prometheus_chart: prometheus-community/kube-prometheus-stack prometheus_nodeport: 30090 prometheus_retention: 15d prometheus_storage_size: 10Gi prometheus_install_timeout: 300 Loading ansible/playbooks/01-deploy-kind-cluster.yml +11 −0 Changes for ansible/playbooks/01-deploy-kind-cluster.yml: 11 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -8,6 +8,17 @@ gather_facts: true pre_tasks: - name: Load group variables ansible.builtin.include_vars: file: "{{ playbook_dir }}/../group_vars/all.yml" name: imported_vars - name: Set variables from group_vars ansible.builtin.set_fact: port_mappings: "{{ imported_vars.port_mappings }}" cert_sans: "{{ imported_vars.cert_sans }}" api_server_address: "{{ imported_vars.api_server_address }}" - name: Display playbook information ansible.builtin.debug: msg: | Loading ansible/playbooks/02-deploy-i2edge.yml +10 −6 Changes for ansible/playbooks/02-deploy-i2edge.yml: 10 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -85,8 +85,10 @@ ✓ Helm 3 ✓ Prometheus Stack - Namespace: {{ prometheus_namespace | default('monitoring') }} - NodePort: {{ prometheus_nodeport | default('30090') }} - Grafana: admin/{{ grafana_admin_password | default('admin') }} - Prometheus: {{ prometheus_nodeport | default('30090') }} - Grafana: {{ grafana_nodeport | default('30091') }} - Alertmanager: {{ alertmanager_nodeport | default('30092') }} - Grafana credentials: admin/{{ grafana_admin_password | default('admin') }} ✓ Node Feature Discovery - Custom labels applied ✓ i2edge Application Loading @@ -94,11 +96,13 @@ - NodePort: {{ i2edge_nodeport_final.stdout if i2edge_nodeport_final.rc == 0 else 'N/A' }} Access i2edge: API: http://localhost:{{ i2edge_nodeport_final.stdout }} Swagger UI: http://localhost:{{ i2edge_nodeport_final.stdout }}/docs API: http://{{ kubeconfig_server_host }}:{{ i2edge_nodeport_final.stdout }} Swagger UI: http://{{ kubeconfig_server_host }}:{{ i2edge_nodeport_final.stdout }}/docs Access Prometheus: URL: http://localhost:{{ prometheus_nodeport | default('30090') }} Access Prometheus Stack: Prometheus: http://{{ kubeconfig_server_host }}:{{ prometheus_nodeport | default('30090') }} Grafana: http://{{ kubeconfig_server_host }}:{{ grafana_nodeport | default('30091') }} Alertmanager: http://{{ kubeconfig_server_host }}:{{ alertmanager_nodeport | default('30092') }} Useful commands: # Check i2edge status Loading Loading
ansible/automation/1-kind-cluster/kind-config.yaml +9 −0 Changes for ansible/automation/1-kind-cluster/kind-config.yaml: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ nodes: certSANs: - "localhost" - "127.0.0.1" - "10.69.222.3" extraPortMappings: - containerPort: 6443 hostPort: 6443 Loading @@ -20,6 +21,14 @@ nodes: hostPort: 30090 listenAddress: "0.0.0.0" protocol: TCP - containerPort: 30091 hostPort: 30091 listenAddress: "0.0.0.0" protocol: TCP - containerPort: 30092 hostPort: 30092 listenAddress: "0.0.0.0" protocol: TCP - containerPort: 30769 hostPort: 30769 listenAddress: "0.0.0.0" Loading
ansible/automation/1-kind-cluster/prometheus-values.yaml +11 −5 Changes for ansible/automation/1-kind-cluster/prometheus-values.yaml: 11 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -34,6 +34,9 @@ alertmanager: enabled: true ingress: enabled: false service: type: NodePort nodePort: 30092 grafana: enabled: true Loading @@ -48,6 +51,9 @@ grafana: existingSecret: grafana-admin-credentials userKey: admin-user passwordKey: admin-password service: type: NodePort nodePort: 30091 kubeApiServer: enabled: true Loading @@ -64,7 +70,7 @@ kubelet: kubeControllerManager: enabled: true endpoints: - 172.26.0.4 - 172.26.0.2 coreDns: enabled: true Loading @@ -75,7 +81,7 @@ kubeDns: kubeEtcd: enabled: true endpoints: - 172.26.0.4 - 172.26.0.2 service: enabled: true port: 2381 Loading @@ -84,14 +90,14 @@ kubeEtcd: kubeScheduler: enabled: true endpoints: - 172.26.0.4 - 172.26.0.2 kubeProxy: enabled: true endpoints: - 172.26.0.4 - 172.26.0.3 - 172.26.0.2 - 172.26.0.3 - 172.26.0.4 kubeStateMetrics: enabled: true Loading
ansible/group_vars/all.yml +16 −3 Changes for ansible/group_vars/all.yml: 16 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -16,6 +16,12 @@ kubernetes_version: v1.33.1 api_server_address: "0.0.0.0" api_server_port: 6443 # Service NodePorts prometheus_nodeport: 30090 grafana_nodeport: 30091 alertmanager_nodeport: 30092 i2edge_nodeport: 30769 # Port mappings port_mappings: - container_port: 6443 Loading @@ -26,6 +32,14 @@ port_mappings: host_port: 30090 listen_address: "0.0.0.0" protocol: TCP - container_port: 30091 host_port: 30091 listen_address: "0.0.0.0" protocol: TCP - container_port: 30092 host_port: 30092 listen_address: "0.0.0.0" protocol: TCP - container_port: 30769 host_port: 30769 listen_address: "0.0.0.0" Loading @@ -39,10 +53,10 @@ worker_nodes: 2 cert_sans: - "localhost" - "127.0.0.1" # - "172.27.13.254" # Add extra IPs here if external access is needed # Additional IPs (like ansible_default_ipv4.address) are automatically added by the template # Kubeconfig settings kubeconfig_server_host: "localhost" # Change to your host IP for remote access (e.g., "192.168.1.100") kubeconfig_server_host: "{{ ansible_default_ipv4.address | default('localhost') }}" # Automatically uses host IP, falls back to localhost kubeconfig_server_url: "https://{{ kubeconfig_server_host }}:6443" kubeconfig_output_dir: "{{ op_automation_base }}/automation/1-kind-cluster" kubeconfig_filename: operator-platform-external-kubeconfig.yaml Loading @@ -61,7 +75,6 @@ helm_force_reinstall: false prometheus_namespace: monitoring prometheus_release_name: prometheus prometheus_chart: prometheus-community/kube-prometheus-stack prometheus_nodeport: 30090 prometheus_retention: 15d prometheus_storage_size: 10Gi prometheus_install_timeout: 300 Loading
ansible/playbooks/01-deploy-kind-cluster.yml +11 −0 Changes for ansible/playbooks/01-deploy-kind-cluster.yml: 11 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -8,6 +8,17 @@ gather_facts: true pre_tasks: - name: Load group variables ansible.builtin.include_vars: file: "{{ playbook_dir }}/../group_vars/all.yml" name: imported_vars - name: Set variables from group_vars ansible.builtin.set_fact: port_mappings: "{{ imported_vars.port_mappings }}" cert_sans: "{{ imported_vars.cert_sans }}" api_server_address: "{{ imported_vars.api_server_address }}" - name: Display playbook information ansible.builtin.debug: msg: | Loading
ansible/playbooks/02-deploy-i2edge.yml +10 −6 Changes for ansible/playbooks/02-deploy-i2edge.yml: 10 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -85,8 +85,10 @@ ✓ Helm 3 ✓ Prometheus Stack - Namespace: {{ prometheus_namespace | default('monitoring') }} - NodePort: {{ prometheus_nodeport | default('30090') }} - Grafana: admin/{{ grafana_admin_password | default('admin') }} - Prometheus: {{ prometheus_nodeport | default('30090') }} - Grafana: {{ grafana_nodeport | default('30091') }} - Alertmanager: {{ alertmanager_nodeport | default('30092') }} - Grafana credentials: admin/{{ grafana_admin_password | default('admin') }} ✓ Node Feature Discovery - Custom labels applied ✓ i2edge Application Loading @@ -94,11 +96,13 @@ - NodePort: {{ i2edge_nodeport_final.stdout if i2edge_nodeport_final.rc == 0 else 'N/A' }} Access i2edge: API: http://localhost:{{ i2edge_nodeport_final.stdout }} Swagger UI: http://localhost:{{ i2edge_nodeport_final.stdout }}/docs API: http://{{ kubeconfig_server_host }}:{{ i2edge_nodeport_final.stdout }} Swagger UI: http://{{ kubeconfig_server_host }}:{{ i2edge_nodeport_final.stdout }}/docs Access Prometheus: URL: http://localhost:{{ prometheus_nodeport | default('30090') }} Access Prometheus Stack: Prometheus: http://{{ kubeconfig_server_host }}:{{ prometheus_nodeport | default('30090') }} Grafana: http://{{ kubeconfig_server_host }}:{{ grafana_nodeport | default('30091') }} Alertmanager: http://{{ kubeconfig_server_host }}:{{ alertmanager_nodeport | default('30092') }} Useful commands: # Check i2edge status Loading