Skip to content

Commit

Permalink
Merge pull request #78 from apoorva-05/master
Browse files Browse the repository at this point in the history
cncRouterImage support in CNC
  • Loading branch information
subashd authored May 13, 2021
2 parents c87c5a3 + dba2be8 commit 130484d
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 13 deletions.
2 changes: 1 addition & 1 deletion citrix-cloud-native/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies:
condition: mcIngress.enabled
alias: mcIngress
- name: citrix-node-controller
version: "2.2.3"
version: "2.2.4"
condition: cnc.enabled
alias: cnc
- name: citrix-observability-exporter
Expand Down
4 changes: 2 additions & 2 deletions citrix-cloud-native/charts/citrix-node-controller/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: "2.2.3"
appVersion: "2.2.4"
description: A Helm chart for Citrix k8s node controller
home: https://www.citrix.com
icon: https://raw.githubusercontent.com/citrix/citrix-helm-charts/gh-pages/icon.png
Expand All @@ -9,4 +9,4 @@ maintainers:
name: citrix-node-controller
sources:
- https://github.com/citrix/citrix-k8s-node-controller
version: 2.2.3
version: 2.2.4
7 changes: 4 additions & 3 deletions citrix-cloud-native/charts/citrix-node-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ In Kubernetes environments, sometimes the services are exposed for external acce
```
helm repo add citrix https://citrix.github.io/citrix-helm-charts/
helm install cnc citrix/citrix-cloud-native --set cnc.enabled=true,cnc.license.accept=yes,cnc.nsIP=<NSIP>,cnc.vtepIP=<Citrix ADC SNIP>,cnc.vxlan.id=<VXLAN ID>,cnc.vlan.port=<VXLAN PORT>,cnc.network=<IP-address-range-for-VTEP-overlay>,cnc.adcCredentialSecret=<Secret-for-ADC-credentials>
helm install cnc citrix/citrix-cloud-native --set cnc.enabled=true,cnc.license.accept=yes,cnc.nsIP=<NSIP>,cnc.vtepIP=<Citrix ADC SNIP>,cnc.vxlan.id=<VXLAN ID>,cnc.vxlan.port=<VXLAN PORT>,cnc.network=<IP-address-range-for-VTEP-overlay>,cnc.adcCredentialSecret=<Secret-for-ADC-credentials>,cnc.cniType=<CNI-overlay-name>
```

> **Important:**
Expand Down Expand Up @@ -112,17 +112,18 @@ The following table lists the mandatory and optional parameters that you can con
| --------- | --------------------- | ------------- | ----------- |
| cnc.enabled | Mandatory | False | Set to "True" for deploying Citrix Node Controller. |
| cnc.license.accept | Mandatory | no | Set `yes` to accept the CNC end user license agreement. |
| cnc.image | Mandatory | `quay.io/citrix/citrix-k8s-node-controller:2.2.3` | The CNC image. |
| cnc.image | Mandatory | `quay.io/citrix/citrix-k8s-node-controller:2.2.4` | The CNC image. |
| cnc.pullPolicy | Mandatory | IfNotPresent | The CNC image pull policy. |
| cnc.adcCredentialSecret | Mandatory | N/A | The secret key to log on to the Citrix ADC VPX or MPX. For information on how to create the secret keys, see [Prerequisites](#prerequistes). |
| cnc.nsIP | Mandatory | N/A | The IP address of the Citrix ADC device. For details, see [Prerequisites](#prerequistes). |
| cnc.nsIP | Mandatory | N/A | The IPaddress or Hostname of the Citrix ADC device. For details, see [Prerequisites](#prerequistes). |
| cnc.vtepIP | Mandatory | N/A | The Citrix ADC SNIP. |
| cnc.network | Mandatory | N/A | The IP address range that CNC uses to configure the VTEP overlay end points on the Kubernetes nodes. |
| cnc.vxlan.id | Mandatory | N/A | A unique VXLAN VNID to create a VXLAN overlay between Kubernetes cluster and the ingress devices. |
| cnc.vxlan.port | Mandatory | N/A | The VXLAN port that you want to use for the overlay. |
| cniType | Mandatory | N/A | The CNI used in k8s cluster. Valid values: flannel,calico,canal,weave,cilium |
| cnc.dsrIPRange | Optional | N/A | This IP address range is used for DSR Iptable configuration on nodes. Both IP and subnet must be specified in format : "xx.xx.xx.xx/xx" |
| cnc.clusterName | Optional | N/A | Unique identifier for the kubernetes cluster on which CNC is deployed. If Provided CNC will configure PolicyBasedRoutes instead of static Routes. For details, see [CNC-PBR-SUPPORT](https://github.com/citrix/citrix-k8s-ingress-controller/tree/master/docs/how-to/pbr.md#configure-pbr-using-the-citrix-node-controller) |
| cnc.cncRouterImage | Optional | N/A | The Internal Repo Image to be used for kube-cnc-router helper pods when internet access is disabled on cluster nodes. For more details, see [running-cnc-without-internet-access](https://github.com/citrix/citrix-k8s-node-controller/blob/master/deploy/README.md#running-citrix-node-controller-without-internet-access) |
Alternatively, you can define a YAML file with the values for the parameters and pass the values while installing the chart.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ spec:
- name: "CLUSTER_NAME"
value: {{ .Values.clusterName | quote }}
{{- end }}
{{- if .Values.cncRouterImage }}
- name: "CNC_ROUTER_IMAGE"
value: {{ .Values.cncRouterImage | quote }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

image: quay.io/citrix/citrix-k8s-node-controller:2.2.3
image: quay.io/citrix/citrix-k8s-node-controller:2.2.4
pullPolicy: IfNotPresent
license:
accept: no
Expand All @@ -16,6 +16,7 @@ vxlan:
cniType:
dsrIPRange:
clusterName:
cncRouterImage:

serviceAccount:
# Specifies whether a ServiceAccount should be created
Expand Down
4 changes: 2 additions & 2 deletions citrix-node-controller/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: "2.2.3"
appVersion: "2.2.4"
description: A Helm chart for Citrix k8s node controller
home: https://www.citrix.com
icon: https://raw.githubusercontent.com/citrix/citrix-helm-charts/gh-pages/icon.png
Expand All @@ -9,4 +9,4 @@ maintainers:
name: citrix-node-controller
sources:
- https://github.com/citrix/citrix-k8s-node-controller
version: 2.2.3
version: 2.2.4
5 changes: 3 additions & 2 deletions citrix-node-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,18 @@ The following table lists the mandatory and optional parameters that you can con
| Parameters | Mandatory or Optional | Default value | Description |
| --------- | --------------------- | ------------- | ----------- |
| license.accept | Mandatory | no | Set `yes` to accept the CNC end user license agreement. |
| image | Mandatory | `quay.io/citrix/citrix-k8s-node-controller:2.2.3` | The CNC image. |
| image | Mandatory | `quay.io/citrix/citrix-k8s-node-controller:2.2.4` | The CNC image. |
| pullPolicy | Mandatory | IfNotPresent | The CNC image pull policy. |
| adcCredentialSecret | Mandatory | N/A | The secret key to log on to the Citrix ADC VPX or MPX. For information on how to create the secret keys, see [Prerequisites](#prerequistes). |
| nsIP | Mandatory | N/A | The IP address of the Citrix ADC device. For details, see [Prerequisites](#prerequistes). |
| nsIP | Mandatory | N/A | The IPaddress or Hostname of the Citrix ADC device. For details, see [Prerequisites](#prerequistes). |
| vtepIP | Mandatory | N/A | The Citrix ADC SNIP. |
| network | Mandatory | N/A | The IP address range that CNC uses to configure the VTEP overlay end points on the Kubernetes nodes. |
| vxlan.id | Mandatory | N/A | A unique VXLAN VNID to create a VXLAN overlay between Kubernetes cluster and the ingress devices. |
| vxlan.port | Mandatory | N/A | The VXLAN port that you want to use for the overlay. |
| cniType | Mandatory | N/A | The CNI used in k8s cluster. Valid values: flannel,calico,canal,weave,cilium |
| dsrIPRange | Optional | N/A | This IP address range is used for DSR Iptable configuration on nodes. Both IP and subnet must be specified in format : "xx.xx.xx.xx/xx" |
| clusterName | Optional | N/A | Unique identifier for the kubernetes cluster on which CNC is deployed. If Provided CNC will configure PolicyBasedRoutes instead of static Routes. For details, see [CNC-PBR-SUPPORT](https://github.com/citrix/citrix-k8s-ingress-controller/tree/master/docs/how-to/pbr.md#configure-pbr-using-the-citrix-node-controller) |
| cncRouterImage | Optional | N/A | The Internal Repo Image to be used for kube-cnc-router helper pods when internet access is disabled on cluster nodes. For more details, see [running-cnc-without-internet-access](https://github.com/citrix/citrix-k8s-node-controller/blob/master/deploy/README.md#running-citrix-node-controller-without-internet-access) |
Alternatively, you can define a YAML file with the values for the parameters and pass the values while installing the chart.
> **Note:**
Expand Down
4 changes: 4 additions & 0 deletions citrix-node-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ spec:
- name: "CLUSTER_NAME"
value: {{ .Values.clusterName | quote }}
{{- end }}
{{- if .Values.cncRouterImage }}
- name: "CNC_ROUTER_IMAGE"
value: {{ .Values.cncRouterImage | quote }}
{{- end }}
3 changes: 2 additions & 1 deletion citrix-node-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

image: quay.io/citrix/citrix-k8s-node-controller:2.2.3
image: quay.io/citrix/citrix-k8s-node-controller:2.2.4
pullPolicy: IfNotPresent
license:
accept: no
Expand All @@ -16,6 +16,7 @@ vxlan:
cniType:
dsrIPRange:
clusterName:
cncRouterImage:

serviceAccount:
# Specifies whether a ServiceAccount should be created
Expand Down
3 changes: 2 additions & 1 deletion citrix_cloud_native_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ iaSidecar:

cnc:
enabled: False
image: quay.io/citrix/citrix-k8s-node-controller:2.2.3
image: quay.io/citrix/citrix-k8s-node-controller:2.2.4
pullPolicy: IfNotPresent
license:
accept: no
Expand All @@ -419,6 +419,7 @@ cnc:
cniType:
dsrIPRange:
clusterName:
cncRouterImage:

serviceAccount:
create: true
Expand Down

0 comments on commit 130484d

Please sign in to comment.