From fec34c19e4860a02e4d199f73536800fc3fb7047 Mon Sep 17 00:00:00 2001 From: Victor Palma Date: Thu, 1 Oct 2026 14:56:11 +0200 Subject: [PATCH] M #-: Update monitor config (#4580) * Update monitor config * Set monitor conf as mandatory --- .../share/migrators/7.4.1_to_7.5.80.yaml | 24 ++++++++++++++++++- src/oneks/etc/oneks-server.conf | 9 ++++++- src/oneks/etc/oneks-server.yaml | 13 ++++------ 3 files changed, 36 insertions(+), 10 deletions(-) diff --git a/src/onecfg/share/migrators/7.4.1_to_7.5.80.yaml b/src/onecfg/share/migrators/7.4.1_to_7.5.80.yaml index 7daa02f286..d83e782737 100644 --- a/src/onecfg/share/migrators/7.4.1_to_7.5.80.yaml +++ b/src/onecfg/share/migrators/7.4.1_to_7.5.80.yaml @@ -9404,6 +9404,21 @@ patches: value: true state: ins extra: {} + - path: + - :server + key: :bind + value: 0.0.0.0 + old: 127.0.0.1 + state: set + extra: {} + - path: [] + key: :monitor + value: + :endpoint: 'http://169.254.16.9:10780/api/v1' + :chart_repo: 'https://opennebula.github.io/cluster-api-provider-opennebula/charts/' + :chart_version: '0.1.0' + state: ins + extra: {} content: | ################################################################################ # Server Configuration @@ -9421,7 +9436,7 @@ patches: # Server configuration where OneKS server will run :server: :environment: production - :bind: 127.0.0.1 + :bind: 0.0.0.0 :port: 10780 # Subscribe endpoint for OpenNebula events (must match those in oned.conf) @@ -9434,6 +9449,13 @@ patches: # Disable this option in air-gapped environments or when importing it manually :appliance_auto_import: true + # OneKS monitor deployed inside each workload cluster. It reports Kubernetes + # state to this OneKS API through the cluster router's TPROXY network. + :monitor: + :endpoint: 'http://169.254.16.9:10780/api/v1' + :chart_repo: 'https://opennebula.github.io/cluster-api-provider-opennebula/charts/' + :chart_version: '0.1.0' + ################################################################################ # Kubernetes Configuration ################################################################################ diff --git a/src/oneks/etc/oneks-server.conf b/src/oneks/etc/oneks-server.conf index b1ad72a2a3..39bb51ce96 100644 --- a/src/oneks/etc/oneks-server.conf +++ b/src/oneks/etc/oneks-server.conf @@ -14,7 +14,7 @@ # Server configuration where OneKS server will run :server: :environment: production - :bind: 127.0.0.1 + :bind: 0.0.0.0 :port: 10780 # Subscribe endpoint for OpenNebula events (must match those in oned.conf) @@ -27,6 +27,13 @@ # Disable this option in air-gapped environments or when importing it manually :appliance_auto_import: true +# OneKS monitor deployed inside each workload cluster. It reports Kubernetes +# state to this OneKS API through the cluster router's TPROXY network. +:monitor: + :endpoint: 'http://169.254.16.9:10780/api/v1' + :chart_repo: 'https://opennebula.github.io/cluster-api-provider-opennebula/charts/' + :chart_version: '0.1.0' + ################################################################################ # Kubernetes Configuration ################################################################################ diff --git a/src/oneks/etc/oneks-server.yaml b/src/oneks/etc/oneks-server.yaml index d6f121778e..cd6dd4e7a2 100644 --- a/src/oneks/etc/oneks-server.yaml +++ b/src/oneks/etc/oneks-server.yaml @@ -25,7 +25,7 @@ :bind: :required: false :type: address - :default: 127.0.0.1 + :default: 0.0.0.0 :port: :required: false :type: integer @@ -103,21 +103,18 @@ - x509 :monitor: - :required: false + :required: true :type: object :keys: :endpoint: - :required: false + :required: true :type: string - :default: 'http://169.254.16.9:10780/api/v1' :chart_repo: - :required: false + :required: true :type: string - :default: 'https://opennebula.github.io/cluster-api-provider-opennebula/charts/' :chart_version: - :required: false + :required: true :type: string - :default: '0.1.0' :expire_delta: :required: false