Skip to content

Commit 1d4220b

Browse files
authored
Merge pull request #15 from aroraharsh23/ver_2.2.0
Ver 2.2.1
2 parents fce5e59 + dc67888 commit 1d4220b

File tree

6 files changed

+25
-16
lines changed

6 files changed

+25
-16
lines changed

deploy/README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ Perform the following:
3434
| VNID | Mandatory | A unique VXLAN VNID to create a VXLAN overlay between Kubernetes cluster and the ingress devices. </br></br>**Note:** Ensure that the VXLAN VNID that you use does not conflict with the Kubernetes cluster or Citrix ADC VXLAN VNID. You can use the `show vxlan` command on your Citrix ADC to view the VXLAN VNID. For example: </br></br> `show vxlan` </br>`1) ID: 500 Port: 9090`</br>`Done` </br> </br>In this case, ensure that you do not use `500` as the VXLAN VNID.|
3535
| VXLAN_PORT | Mandatory | The VXLAN port that you want to use for the overlay. </br></br>**Note:** Ensure that the VXLAN PORT that you use does not conflict with the Kubernetes cluster or Citrix ADC VXLAN PORT. You can use the `show vxlan` command on your Citrix ADC to view the VXLAN PORT. For example: </br></br> `show vxlan` </br>`1) ID: 500 Port: 9090`</br>`Done` </br> </br>In this case, ensure that you do not use `9090` as the VXLAN PORT.|
3636
| REMOTE_VTEPIP | Mandatory | The Ingress Citrix ADC SNIP. This IP address is used to establish an overlay network between the Kubernetes clusters.|
37+
| DSR_IP_RANGE | Optional | 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" |
38+
3739
3840
1. After you have updated the Citrix k8s node controller deployment YAML file, deploy it using the following command:
3941
@@ -48,28 +50,32 @@ Perform the following:
4850
4951
After you have deployed the Citrix node controller, you can verify if Citrix node controller has configured a route on the Citrix ADC.
5052
51-
To verify, log on to the Citrix ADC and use the following commands to verify the VXLAN VNID, VXLAN PORT, SNIP, route, and ARP configured by Citrix node controller on the Citrix ADC:
53+
To verify, log on to the Citrix ADC and use the following commands to verify the VXLAN VNID, VXLAN PORT, SNIP, route, and Bridgetable configured by Citrix node controller on the Citrix ADC:
54+
55+
![Verification](../images/ip_route_vxlan.jpg)
5256
53-
![Verification](../images/verify.png)
57+
![Verification](../images/bridge_table.jpg)
5458
55-
The highlights in the screenshot show the VXLAN VNID, VXLAN PORT, SNIP, route, and ARP configured by Citrix node controller on the Citrix ADC.
59+
The highlights in the screenshot show the VXLAN VNID, VXLAN PORT, SNIP, route, and bridgetable configured by Citrix node controller on the Citrix ADC.
5660
5761
## Verify cluster deployments
5862
5963
Apart from "citrix-node-controller" deployment, some other resources are also created.
6064
6165
- In "Kube-system" namespace:
62-
- For each worker node, a "kube-chorus-router" pod.
63-
- A configmap "kube-chorus-router".
64-
- A serviceaccount "kube-chorus-router"
65-
- A clusterrole "kube-chorus-router"
66-
- A clusterrolebinding "kube-chorus-router"
66+
- For each worker node, a "kube-cnc-router" pod.
67+
- A configmap "kube-cnc-router".
68+
- A serviceaccount "kube-cnc-router"
69+
- A clusterrole "kube-cnc-router"
70+
- A clusterrolebinding "kube-cnc-router"
71+
72+
![Verification](../images/k8s_deployments.png)
6773
6874
# Delete the Citrix K8s node controller
6975
7076
1. Delete the [config map](config_map.yaml) using the following command:
7177
72-
When we delete the configmap, Citrix node controller cleans up the configuration created on Citrix ADC, the "kube-chorus-router" configmap and the "kube-chorus-router" pods created by citrix node controller.
78+
When we delete the configmap, Citrix node controller cleans up the configuration created on Citrix ADC, the "kube-cnc-router" configmap and the "kube-cnc-router" pods created by citrix node controller
7379
7480
kubectl delete -f https://raw.githubusercontent.com/citrix/citrix-k8s-node-controller/git_cnc_v2/deploy/config_map.yaml
7581

deploy/citrix-k8s-node-controller.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
kind: ClusterRole
3-
apiVersion: rbac.authorization.k8s.io/v1beta1
3+
apiVersion: rbac.authorization.k8s.io/v1
44
metadata:
55
name: citrix-node-controller
66
rules:
@@ -22,9 +22,12 @@ rules:
2222
- apiGroups: ["*"]
2323
resources: ["serviceaccounts", "clusterroles", "clusterrolebindings", "namespaces"]
2424
verbs: ["get", "list", "create", "delete"]
25+
- apiGroups: ["crd.projectcalico.org"]
26+
resources: ["ipamblocks"]
27+
verbs: ["get", "list"]
2528
---
2629
kind: ClusterRoleBinding
27-
apiVersion: rbac.authorization.k8s.io/v1beta1
30+
apiVersion: rbac.authorization.k8s.io/v1
2831
metadata:
2932
name: citrix-node-controller
3033
roleRef:
@@ -43,7 +46,7 @@ metadata:
4346
name: citrix-node-controller
4447
namespace: default
4548
---
46-
apiVersion: apps/v1 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1
49+
apiVersion: apps/v1
4750
kind: Deployment
4851
metadata:
4952
name: citrix-node-controller
@@ -60,7 +63,7 @@ spec:
6063
serviceAccountName: citrix-node-controller
6164
containers:
6265
- name: citrix-node-controller
63-
image: "quay.io/citrix/citrix-k8s-node-controller:2.1.0"
66+
image: "quay.io/citrix/citrix-k8s-node-controller:2.2.1"
6467
imagePullPolicy: Always
6568
env:
6669
- name: NS_IP
@@ -76,10 +79,10 @@ spec:
7679
name: nslogin
7780
key: password
7881
- name: NETWORK
79-
value: "192.168.1.0/24"
82+
value: "172.16.3.0/24"
8083
- name: REMOTE_VTEPIP
8184
value: "xx.xx.xx.xx"
8285
- name: VXLAN_PORT
83-
value: "8472"
86+
value: "3267"
8487
- name: VNID
85-
value: "200"
88+
value: "300"

images/bridge_table.jpg

135 KB
Loading

images/ip_route_vxlan.jpg

143 KB
Loading

images/k8s_deployments.png

591 KB
Loading

images/verify.png

-241 KB
Binary file not shown.

0 commit comments

Comments
 (0)