From 6571a89134a46385e79b89983b105c892e51d7ec Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Tue, 18 May 2021 11:46:23 -0300 Subject: [PATCH] First version with Rancher questions form --- charts/nsx-ncp-operator/v0.1.0/app-readme.md | 14 ++++++++ charts/nsx-ncp-operator/v0.1.0/questions.yaml | 35 +++++++++++++++++++ .../v0.1.0/templates/configmap.yaml | 8 ++--- charts/nsx-ncp-operator/v0.1.0/values.yaml | 9 +++++ 4 files changed, 62 insertions(+), 4 deletions(-) create mode 100644 charts/nsx-ncp-operator/v0.1.0/app-readme.md create mode 100644 charts/nsx-ncp-operator/v0.1.0/questions.yaml diff --git a/charts/nsx-ncp-operator/v0.1.0/app-readme.md b/charts/nsx-ncp-operator/v0.1.0/app-readme.md new file mode 100644 index 0000000..c7b1396 --- /dev/null +++ b/charts/nsx-ncp-operator/v0.1.0/app-readme.md @@ -0,0 +1,14 @@ +# NSX Container Plugin Operator Chart + +This chart installs VMWare [NSX Container Plugin Operator](https://github.com/vmware/nsx-container-plugin-operator). + +An operator for leveraging NSX as the default container networking solution for an Kubernetes/Openshift cluster. The operator will be deployed in the early phases of Openshift cluster deployment or after the kubectl is ready in Kubernetes cluster, and it will take care of deploying NSX integration components, and precisely: + +The NSX container plugin (NCP) deployment +The nsx-ncp-bootstrap daemonset +The nsx-node-agent daemonset +The nsx-container-plugin operator monitors a dedicated ConfigMap, applies changes to NCP and nsx-node-agent configuration, and creates/restarts the relevant pods so that the relevant configuration changes are picked up. + +The nsx-container-plugin operator also monitors the nsx-node-agent status and updates the network status on relevant nodes. + +In addition, the nsx-container-plugin operator is able to monitor nodes ensuring the corresponding NSX logical port is enabled as a container host logical port. diff --git a/charts/nsx-ncp-operator/v0.1.0/questions.yaml b/charts/nsx-ncp-operator/v0.1.0/questions.yaml new file mode 100644 index 0000000..c0f7992 --- /dev/null +++ b/charts/nsx-ncp-operator/v0.1.0/questions.yaml @@ -0,0 +1,35 @@ +labels: + io.cattle.role: project +categories: +- CNI +questions: +- variable: ncp.vc.endpoint + default: "" + description: "VCenter Server Endpoint" + label: "VCenter URL" + type: string + group: VCenter + required: true +- variable: ncp.vc.sso_domain + default: "vsphere.local" + description: "VCenter Single Sign-on Domain" + label: "VCenter SSO Domain" + type: string + group: VCenter + required: true +- variable: ncp.vc.https_port + default: 443 + description: "VCenter Server Endpoint HTTPS Port" + label: "HTTPS Port" + type: int + group: VCenter + required: true + +- variable: ncp.coe.cluster + default: "k8scl-one" + description: "Kubernetes cluster name for vSphere" + label: "Cluster name" + type: string + group: Cluster + required: true + diff --git a/charts/nsx-ncp-operator/v0.1.0/templates/configmap.yaml b/charts/nsx-ncp-operator/v0.1.0/templates/configmap.yaml index 5217228..5cc2365 100644 --- a/charts/nsx-ncp-operator/v0.1.0/templates/configmap.yaml +++ b/charts/nsx-ncp-operator/v0.1.0/templates/configmap.yaml @@ -10,13 +10,13 @@ data: [vc] # IpAddress or Hostname of VC - #vc_endpoint = + vc_endpoint = {{ .Values.ncp.vc.endpoint }} # The SSO domain associated with the deployment - #sso_domain = vsphere.local + sso_domain = {{ .Values.ncp.vc.sso_domain }} # VC API server HTTPS port. - #https_port = 443 + https_port = {{ .Values.ncp.vc.https_port }} [coe] @@ -25,7 +25,7 @@ data: adaptor = kubernetes # Specify cluster for adaptor. - cluster = k8scl-one + cluster = {{ .Values.ncp.coe.cluster }} # Log level for NCP operations # Choices: NOTSET DEBUG INFO WARNING ERROR CRITICAL diff --git a/charts/nsx-ncp-operator/v0.1.0/values.yaml b/charts/nsx-ncp-operator/v0.1.0/values.yaml index ab575b3..e503fdf 100644 --- a/charts/nsx-ncp-operator/v0.1.0/values.yaml +++ b/charts/nsx-ncp-operator/v0.1.0/values.yaml @@ -12,6 +12,15 @@ imagePullSecrets: [] nameOverride: "" fullnameOverride: "" +ncp: + vc: + endpoint: "" + sso_domain: "vsphere.local" + https_port: 443 + coe: + cluster: "k8scl-one" + + serviceAccount: # Specifies whether a service account should be created create: true