File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# CDNOS Image URL to use to test CDNOS CRD Deployment
22CDNOS_IMG ?= registry.dev.drivenets.net/devops/cdnos_pr_61596:19.1.0.1_priv.61596.59ad5662f25a3760114008c0e51c2ef1b583ae7e
33# Image URL to use all building/pushing image targets
4- CONTROLLER_IMG ?= public.ecr.aws/dn/cdnos-controller:1.4
4+ CONTROLLER_IMG ?= public.ecr.aws/dn/cdnos-controller:1.7.1
55# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
66ENVTEST_K8S_VERSION = 1.28.0
77
Original file line number Diff line number Diff line change @@ -74,12 +74,16 @@ make uninstall
7474make undeploy
7575```
7676
77- ## Update cdnos controller image on AWS
77+ ## Update cdnos controller image
78+
79+ ### AWS
7880
7981To update cdnos controller, update the image tag on makefile:
8082This line:
81- >>> CONTROLLER_IMG ?= public.ecr.aws/dn/cdnos-controller:<your-tag >
8283
84+ ```
85+ CONTROLLER_IMG ?= public.ecr.aws/dn/cdnos-controller:<your-tag>
86+ ```
8387
8488Rebuild the image:
8589
@@ -94,7 +98,8 @@ aws ecr-public get-login-password --region us-east-1 | docker login --username A
9498
9599Push image to registry:
96100``` sh
97- make docker-push` ` `
101+ make docker-push
102+ ```
98103
99104We want to keep the latest tag updated so tag the image to ` latest ` :
100105``` sh
@@ -109,4 +114,19 @@ docker push public.ecr.aws/dn/cdnos-controller:latest
109114You should now be able to pull the image:
110115
111116``` sh
112- docker pull public.ecr.aws/dn/cdnos-controller:< your-tag> ` ` `
117+ docker pull public.ecr.aws/dn/cdnos-controller:< your-tag>
118+ ```
119+
120+ ### Manifest
121+ We need to update the kubernetes manifest with the new image tag.
122+ Modify this line in ` config/manager/kustomization.yaml ` :
123+ ```
124+ newTag: "<your tag>"
125+ ```
126+
127+ Generate the manifest:
128+ ``` sh
129+ make generate-manifest
130+ ```
131+
132+ The new manifest is now available at this path: ` config/manifests/manifest.yaml ` .
Original file line number Diff line number Diff line change @@ -244,8 +244,7 @@ spec:
244244 description : ' Requests describes the minimum amount of compute
245245 resources required. If Requests is omitted for a container,
246246 it defaults to Limits if that is explicitly specified, otherwise
247- to an implementation-defined value. Requests cannot exceed Limits.
248- More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
247+ to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
249248 type : object
250249 type : object
251250 tls :
Original file line number Diff line number Diff line change @@ -4,10 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
44kind : Kustomization
55images :
66- name : controller
7- <<<<<<< HEAD
87 newName : public.ecr.aws/dn/cdnos-controller
9- newTag : " 1.4"
10- =======
11- newName : registry.dev.drivenets.net/devops/cdnos-controller
12- newTag : " 1.6"
13- >>>>>>> 432cb45 (add redis env var support)
8+ newTag : " 1.7.1"
Original file line number Diff line number Diff line change @@ -576,7 +576,7 @@ spec:
576576 - --leader-elect
577577 command :
578578 - /manager
579- image : public.ecr.aws/dn/cdnos-controller:1.4
579+ image : public.ecr.aws/dn/cdnos-controller:1.7.1
580580 livenessProbe :
581581 httpGet :
582582 path : /healthz
You can’t perform that action at this time.
0 commit comments