From 150c5850d9b8bcf5aea07bace17f6e4744132b7f Mon Sep 17 00:00:00 2001 From: Thomas Cram Date: Thu, 26 Oct 2023 14:26:46 -0600 Subject: [PATCH 01/17] created deployment yaml --- Usecases/Kubernetes Cluster/Readme.md | 13 +++++- Usecases/Kubernetes Cluster/deployment.yaml | 45 +++++++++++++++++++++ 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 Usecases/Kubernetes Cluster/deployment.yaml diff --git a/Usecases/Kubernetes Cluster/Readme.md b/Usecases/Kubernetes Cluster/Readme.md index 9c00a77..3199102 100644 --- a/Usecases/Kubernetes Cluster/Readme.md +++ b/Usecases/Kubernetes Cluster/Readme.md @@ -1,3 +1,14 @@ # Use-Case - Build a Kubernetes Cluster -## Step-by-Step Instructions \ No newline at end of file +## Step-by-Step Instructions + +### Step-1 - Create a cluster in GKE Standard mode + +- In the Google Cloud Console, create a cluster on the **Kubernetes clusters** page +- Cluster basics: specify a name and region for the cluster, and use default values for other fields: +``` +name: ncar-autopilot-cluster-1 +zone: us-central1-a +``` +- Networking: use default values and continue +- Advanced settings: \ No newline at end of file diff --git a/Usecases/Kubernetes Cluster/deployment.yaml b/Usecases/Kubernetes Cluster/deployment.yaml new file mode 100644 index 0000000..7339792 --- /dev/null +++ b/Usecases/Kubernetes Cluster/deployment.yaml @@ -0,0 +1,45 @@ +--- +apiVersion: "apps/v1" +kind: "Deployment" +metadata: + name: "ncar-subset-1" + namespace: "default" + labels: + app: "ncar-subset-1" +spec: + replicas: 3 + selector: + matchLabels: + app: "ncar-subset-1" + template: + metadata: + labels: + app: "ncar-subset-1" + spec: + containers: + - name: "nginx-1" + image: "nginx:latest" + - name: "ncar-subset-sha256-2" + image: "us-central1-docker.pkg.dev/i2class-fall2023-dmdevrie/ncar-transform/ncar-subset@sha256:7fcaf853a4262dc1f548d55a74753ac15a12a7a2490b1cd58cd24afb2bb4a0a2" +--- +apiVersion: "autoscaling/v2" +kind: "HorizontalPodAutoscaler" +metadata: + name: "ncar-subset-1-hpa-s6qo" + namespace: "default" + labels: + app: "ncar-subset-1" +spec: + scaleTargetRef: + kind: "Deployment" + name: "ncar-subset-1" + apiVersion: "apps/v1" + minReplicas: 1 + maxReplicas: 5 + metrics: + - type: "Resource" + resource: + name: "cpu" + target: + type: "Utilization" + averageUtilization: 80 From fe1858f95398f7bf8871020258724ef67c9dec86 Mon Sep 17 00:00:00 2001 From: Thomas Cram Date: Thu, 26 Oct 2023 14:40:42 -0600 Subject: [PATCH 02/17] updated readme --- Usecases/Kubernetes Cluster/Readme.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Usecases/Kubernetes Cluster/Readme.md b/Usecases/Kubernetes Cluster/Readme.md index 3199102..1483ee6 100644 --- a/Usecases/Kubernetes Cluster/Readme.md +++ b/Usecases/Kubernetes Cluster/Readme.md @@ -2,13 +2,26 @@ ## Step-by-Step Instructions -### Step-1 - Create a cluster in GKE Standard mode +### Step-1 - Create a cluster in GKE Autopilot mode - In the Google Cloud Console, create a cluster on the **Kubernetes clusters** page - Cluster basics: specify a name and region for the cluster, and use default values for other fields: ``` name: ncar-autopilot-cluster-1 -zone: us-central1-a +region: us-central1 ``` - Networking: use default values and continue -- Advanced settings: \ No newline at end of file +- Advanced settings: use default values and continue + +### Step-2 - Add a deployment + +- From the **Kubernetes clusters** page, select `+DEPLOY` +- In addition to the nginx container, add the NCAR subsetting container. Select 'Add a container'. +- Choose `Existing container` and select the container `us-central1-docker.pkg.dev/i2class-fall2023-dmdevrie/ncar-transform/ncar-subset` from the Artifact Registry. +- Set the deployment name and app label (these should be the same): +``` +Deployment name: ncar-subset +Labels: { + app: ncar-subset +} +``` From 04428e4c45cec37ddf4be23d0b52e01c38fe564c Mon Sep 17 00:00:00 2001 From: Thomas Cram Date: Fri, 27 Oct 2023 08:29:19 -0600 Subject: [PATCH 03/17] updates to yaml and readme --- Usecases/Kubernetes Cluster/Readme.md | 4 ++++ Usecases/Kubernetes Cluster/deployment.yaml | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Usecases/Kubernetes Cluster/Readme.md b/Usecases/Kubernetes Cluster/Readme.md index 1483ee6..88126ef 100644 --- a/Usecases/Kubernetes Cluster/Readme.md +++ b/Usecases/Kubernetes Cluster/Readme.md @@ -25,3 +25,7 @@ Labels: { app: ncar-subset } ``` +- Subsequent changes to the deployment can be made by modifying `deployment.yaml` and applying the changes: +``` +kubectl apply -f deployment.yaml +``` \ No newline at end of file diff --git a/Usecases/Kubernetes Cluster/deployment.yaml b/Usecases/Kubernetes Cluster/deployment.yaml index 7339792..1338fb7 100644 --- a/Usecases/Kubernetes Cluster/deployment.yaml +++ b/Usecases/Kubernetes Cluster/deployment.yaml @@ -17,15 +17,16 @@ spec: app: "ncar-subset-1" spec: containers: - - name: "nginx-1" - image: "nginx:latest" - - name: "ncar-subset-sha256-2" + - name: "ncar-subset-sha256-1" image: "us-central1-docker.pkg.dev/i2class-fall2023-dmdevrie/ncar-transform/ncar-subset@sha256:7fcaf853a4262dc1f548d55a74753ac15a12a7a2490b1cd58cd24afb2bb4a0a2" + command: + - "docker run -t test-ncar-subset https://stratus.rda.ucar.edu/ds633.0/e5.oper.an.sfc/198010/e5.oper.an.sfc.128_167_2t.ll025sc.1980100100_1980103123.nc\ + \ 85 75 70 40 gs://ncar-subset-target/test-user-target/" --- apiVersion: "autoscaling/v2" kind: "HorizontalPodAutoscaler" metadata: - name: "ncar-subset-1-hpa-s6qo" + name: "ncar-subset-1-hpa-qauz" namespace: "default" labels: app: "ncar-subset-1" From 1602a0bbabcc7fc65769f21f96c882ed813f30f5 Mon Sep 17 00:00:00 2001 From: Thomas Cram Date: Fri, 27 Oct 2023 08:47:56 -0600 Subject: [PATCH 04/17] updated readme --- Usecases/Kubernetes Cluster/Readme.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Usecases/Kubernetes Cluster/Readme.md b/Usecases/Kubernetes Cluster/Readme.md index 88126ef..99679c2 100644 --- a/Usecases/Kubernetes Cluster/Readme.md +++ b/Usecases/Kubernetes Cluster/Readme.md @@ -25,7 +25,12 @@ Labels: { app: ncar-subset } ``` -- Subsequent changes to the deployment can be made by modifying `deployment.yaml` and applying the changes: +- Subsequent changes to the deployment can be made by modifying `deployment.yaml`. Open a Google Cloud Shell terminal and run the following command to apply the changes: ``` +## First retrieve auth credentials for the cluster and verify +gcloud container clusters get-credentials ncar-autopilot-cluster-1 --zone=us-central1 +kubectl cluster-info + +## Apply deployment yaml kubectl apply -f deployment.yaml ``` \ No newline at end of file From f94f5466301c98d7f9f2da6318d1cb447348f59f Mon Sep 17 00:00:00 2001 From: Thomas Cram Date: Fri, 27 Oct 2023 08:51:30 -0600 Subject: [PATCH 05/17] updated readme --- Usecases/Kubernetes Cluster/Readme.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Usecases/Kubernetes Cluster/Readme.md b/Usecases/Kubernetes Cluster/Readme.md index 99679c2..ee53520 100644 --- a/Usecases/Kubernetes Cluster/Readme.md +++ b/Usecases/Kubernetes Cluster/Readme.md @@ -26,11 +26,14 @@ Labels: { } ``` - Subsequent changes to the deployment can be made by modifying `deployment.yaml`. Open a Google Cloud Shell terminal and run the following command to apply the changes: + +...First retrieve auth credentials for the cluster and verify ``` -## First retrieve auth credentials for the cluster and verify gcloud container clusters get-credentials ncar-autopilot-cluster-1 --zone=us-central1 kubectl cluster-info +``` -## Apply deployment yaml +...Apply deployment yaml +``` kubectl apply -f deployment.yaml ``` \ No newline at end of file From 2b736a689c15c13ccd863300f9b85ea5570a0737 Mon Sep 17 00:00:00 2001 From: Thomas Cram Date: Fri, 27 Oct 2023 08:52:42 -0600 Subject: [PATCH 06/17] updated readme --- Usecases/Kubernetes Cluster/Readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Usecases/Kubernetes Cluster/Readme.md b/Usecases/Kubernetes Cluster/Readme.md index ee53520..e1aa838 100644 --- a/Usecases/Kubernetes Cluster/Readme.md +++ b/Usecases/Kubernetes Cluster/Readme.md @@ -27,13 +27,13 @@ Labels: { ``` - Subsequent changes to the deployment can be made by modifying `deployment.yaml`. Open a Google Cloud Shell terminal and run the following command to apply the changes: -...First retrieve auth credentials for the cluster and verify + First retrieve auth credentials for the cluster and verify ``` gcloud container clusters get-credentials ncar-autopilot-cluster-1 --zone=us-central1 kubectl cluster-info ``` -...Apply deployment yaml + Then apply the deployment yaml file ``` kubectl apply -f deployment.yaml ``` \ No newline at end of file From 62289aa884edcf16e5ccb90ca08fe82ad3758af6 Mon Sep 17 00:00:00 2001 From: Thomas Cram Date: Fri, 27 Oct 2023 08:54:06 -0600 Subject: [PATCH 07/17] updated readme --- Usecases/Kubernetes Cluster/Readme.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Usecases/Kubernetes Cluster/Readme.md b/Usecases/Kubernetes Cluster/Readme.md index e1aa838..16e2a2e 100644 --- a/Usecases/Kubernetes Cluster/Readme.md +++ b/Usecases/Kubernetes Cluster/Readme.md @@ -27,13 +27,13 @@ Labels: { ``` - Subsequent changes to the deployment can be made by modifying `deployment.yaml`. Open a Google Cloud Shell terminal and run the following command to apply the changes: - First retrieve auth credentials for the cluster and verify -``` -gcloud container clusters get-credentials ncar-autopilot-cluster-1 --zone=us-central1 -kubectl cluster-info -``` + First retrieve auth credentials for the cluster and verify + ``` + gcloud container clusters get-credentials ncar-autopilot-cluster-1 --zone=us-central1 + kubectl cluster-info + ``` - Then apply the deployment yaml file -``` -kubectl apply -f deployment.yaml -``` \ No newline at end of file + Then apply the deployment yaml file + ``` + kubectl apply -f deployment.yaml + ``` \ No newline at end of file From df4d73f0571c3332b1f55f963c4c093f9c84994e Mon Sep 17 00:00:00 2001 From: Thomas Cram Date: Fri, 27 Oct 2023 09:35:54 -0600 Subject: [PATCH 08/17] updated readme --- Usecases/Kubernetes Cluster/Readme.md | 28 ++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/Usecases/Kubernetes Cluster/Readme.md b/Usecases/Kubernetes Cluster/Readme.md index 16e2a2e..4d5ff60 100644 --- a/Usecases/Kubernetes Cluster/Readme.md +++ b/Usecases/Kubernetes Cluster/Readme.md @@ -13,6 +13,20 @@ region: us-central1 - Networking: use default values and continue - Advanced settings: use default values and continue +### Step-1 (alternative) - Create a cluster from the command line +- Open a Google Cloud Shell terminal and run the following commands + + First retrieve auth credentials for the cluster and verify + ``` + gcloud container clusters get-credentials ncar-autopilot-cluster-1 --zone=us-central1 + kubectl cluster-info + ``` + + Then create the cluster + ``` + gcloud container --project "i2class-fall2023-dmdevrie" clusters create-auto "ncar-autopilot-cluster-2" --region "us-central1" --release-channel "regular" --network "projects/i2class-fall2023-dmdevrie/global/networks/default" --subnetwork "projects/i2class-fall2023-dmdevrie/regions/us-central1/subnetworks/default" --cluster-ipv4-cidr "/17" + ``` + ### Step-2 - Add a deployment - From the **Kubernetes clusters** page, select `+DEPLOY` @@ -26,14 +40,6 @@ Labels: { } ``` - Subsequent changes to the deployment can be made by modifying `deployment.yaml`. Open a Google Cloud Shell terminal and run the following command to apply the changes: - - First retrieve auth credentials for the cluster and verify - ``` - gcloud container clusters get-credentials ncar-autopilot-cluster-1 --zone=us-central1 - kubectl cluster-info - ``` - - Then apply the deployment yaml file - ``` - kubectl apply -f deployment.yaml - ``` \ No newline at end of file +``` +kubectl apply -f deployment.yaml +``` \ No newline at end of file From e68bfa70fa0343e0e4cf71b7cf6c348b1bd99ab4 Mon Sep 17 00:00:00 2001 From: Thomas Cram Date: Fri, 27 Oct 2023 09:37:31 -0600 Subject: [PATCH 09/17] updated readme --- Usecases/Kubernetes Cluster/Readme.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Usecases/Kubernetes Cluster/Readme.md b/Usecases/Kubernetes Cluster/Readme.md index 4d5ff60..5c98265 100644 --- a/Usecases/Kubernetes Cluster/Readme.md +++ b/Usecases/Kubernetes Cluster/Readme.md @@ -24,7 +24,14 @@ region: us-central1 Then create the cluster ``` - gcloud container --project "i2class-fall2023-dmdevrie" clusters create-auto "ncar-autopilot-cluster-2" --region "us-central1" --release-channel "regular" --network "projects/i2class-fall2023-dmdevrie/global/networks/default" --subnetwork "projects/i2class-fall2023-dmdevrie/regions/us-central1/subnetworks/default" --cluster-ipv4-cidr "/17" + gcloud container \ + --project "i2class-fall2023-dmdevrie" \ + clusters create-auto "ncar-autopilot-cluster-2" \ + --region "us-central1" \ + --release-channel "regular" \ + --network "projects/i2class-fall2023-dmdevrie/global/networks/default" \ + --subnetwork "projects/i2class-fall2023-dmdevrie/regions/us-central1/subnetworks/default" \ + --cluster-ipv4-cidr "/17" ``` ### Step-2 - Add a deployment From e58982accb2a3b7f153e76f0b7ed27ad2c4dcea0 Mon Sep 17 00:00:00 2001 From: Thomas Cram Date: Fri, 27 Oct 2023 09:38:47 -0600 Subject: [PATCH 10/17] updated readme --- Usecases/Kubernetes Cluster/Readme.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Usecases/Kubernetes Cluster/Readme.md b/Usecases/Kubernetes Cluster/Readme.md index 5c98265..3b90be2 100644 --- a/Usecases/Kubernetes Cluster/Readme.md +++ b/Usecases/Kubernetes Cluster/Readme.md @@ -24,9 +24,8 @@ region: us-central1 Then create the cluster ``` - gcloud container \ + gcloud container clusters create-auto "ncar-autopilot-cluster-2" \ --project "i2class-fall2023-dmdevrie" \ - clusters create-auto "ncar-autopilot-cluster-2" \ --region "us-central1" \ --release-channel "regular" \ --network "projects/i2class-fall2023-dmdevrie/global/networks/default" \ From 9967758dd620d1cc0ea68ef093e99a603f9d6ddd Mon Sep 17 00:00:00 2001 From: Thomas Cram Date: Fri, 27 Oct 2023 09:46:05 -0600 Subject: [PATCH 11/17] updated deployment yaml --- Usecases/Kubernetes Cluster/deployment.yaml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Usecases/Kubernetes Cluster/deployment.yaml b/Usecases/Kubernetes Cluster/deployment.yaml index 1338fb7..62a2712 100644 --- a/Usecases/Kubernetes Cluster/deployment.yaml +++ b/Usecases/Kubernetes Cluster/deployment.yaml @@ -2,22 +2,26 @@ apiVersion: "apps/v1" kind: "Deployment" metadata: - name: "ncar-subset-1" + name: "ncar-subset-2" namespace: "default" labels: - app: "ncar-subset-1" + app: "ncar-subset-2" spec: replicas: 3 selector: matchLabels: - app: "ncar-subset-1" + app: "ncar-subset-2" template: metadata: labels: - app: "ncar-subset-1" + app: "ncar-subset-2" spec: containers: - - name: "ncar-subset-sha256-1" + - name: "nginx-1" + image: "nginx:latest" + - name: "docker-2" + image: "docker:latest" + - name: "ncar-subset-sha256-3" image: "us-central1-docker.pkg.dev/i2class-fall2023-dmdevrie/ncar-transform/ncar-subset@sha256:7fcaf853a4262dc1f548d55a74753ac15a12a7a2490b1cd58cd24afb2bb4a0a2" command: - "docker run -t test-ncar-subset https://stratus.rda.ucar.edu/ds633.0/e5.oper.an.sfc/198010/e5.oper.an.sfc.128_167_2t.ll025sc.1980100100_1980103123.nc\ @@ -26,14 +30,14 @@ spec: apiVersion: "autoscaling/v2" kind: "HorizontalPodAutoscaler" metadata: - name: "ncar-subset-1-hpa-qauz" + name: "ncar-subset-2-hpa-dtvf" namespace: "default" labels: - app: "ncar-subset-1" + app: "ncar-subset-2" spec: scaleTargetRef: kind: "Deployment" - name: "ncar-subset-1" + name: "ncar-subset-2" apiVersion: "apps/v1" minReplicas: 1 maxReplicas: 5 From 5c4c1cd104c0dc3fd439eca45b280474f75cd5b0 Mon Sep 17 00:00:00 2001 From: Thomas Cram Date: Fri, 27 Oct 2023 09:47:31 -0600 Subject: [PATCH 12/17] updated deployment yaml --- Usecases/Kubernetes Cluster/deployment.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Usecases/Kubernetes Cluster/deployment.yaml b/Usecases/Kubernetes Cluster/deployment.yaml index 62a2712..c0c4e99 100644 --- a/Usecases/Kubernetes Cluster/deployment.yaml +++ b/Usecases/Kubernetes Cluster/deployment.yaml @@ -2,19 +2,19 @@ apiVersion: "apps/v1" kind: "Deployment" metadata: - name: "ncar-subset-2" + name: "ncar-subset-1" namespace: "default" labels: - app: "ncar-subset-2" + app: "ncar-subset-1" spec: replicas: 3 selector: matchLabels: - app: "ncar-subset-2" + app: "ncar-subset-1" template: metadata: labels: - app: "ncar-subset-2" + app: "ncar-subset-1" spec: containers: - name: "nginx-1" @@ -30,14 +30,14 @@ spec: apiVersion: "autoscaling/v2" kind: "HorizontalPodAutoscaler" metadata: - name: "ncar-subset-2-hpa-dtvf" + name: "ncar-subset-1-hpa-dtvf" namespace: "default" labels: - app: "ncar-subset-2" + app: "ncar-subset-1" spec: scaleTargetRef: kind: "Deployment" - name: "ncar-subset-2" + name: "ncar-subset-1" apiVersion: "apps/v1" minReplicas: 1 maxReplicas: 5 From 1c5db63d0dcf7e13d94c4f7ad52f0fe17e334664 Mon Sep 17 00:00:00 2001 From: Thomas Cram Date: Fri, 27 Oct 2023 10:59:14 -0600 Subject: [PATCH 13/17] updated readme --- Usecases/Kubernetes Cluster/Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Usecases/Kubernetes Cluster/Readme.md b/Usecases/Kubernetes Cluster/Readme.md index 3b90be2..8dccb98 100644 --- a/Usecases/Kubernetes Cluster/Readme.md +++ b/Usecases/Kubernetes Cluster/Readme.md @@ -24,7 +24,7 @@ region: us-central1 Then create the cluster ``` - gcloud container clusters create-auto "ncar-autopilot-cluster-2" \ + gcloud container clusters create-auto "ncar-autopilot-cluster-1" \ --project "i2class-fall2023-dmdevrie" \ --region "us-central1" \ --release-channel "regular" \ From 0eba9b8f5735e8677bcbe361862d88e233dac159 Mon Sep 17 00:00:00 2001 From: Thomas Cram Date: Fri, 27 Oct 2023 11:01:03 -0600 Subject: [PATCH 14/17] updated readme --- Usecases/Kubernetes Cluster/Readme.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Usecases/Kubernetes Cluster/Readme.md b/Usecases/Kubernetes Cluster/Readme.md index 8dccb98..4e3072e 100644 --- a/Usecases/Kubernetes Cluster/Readme.md +++ b/Usecases/Kubernetes Cluster/Readme.md @@ -14,15 +14,7 @@ region: us-central1 - Advanced settings: use default values and continue ### Step-1 (alternative) - Create a cluster from the command line -- Open a Google Cloud Shell terminal and run the following commands - - First retrieve auth credentials for the cluster and verify - ``` - gcloud container clusters get-credentials ncar-autopilot-cluster-1 --zone=us-central1 - kubectl cluster-info - ``` - - Then create the cluster +- Open a Google Cloud Shell terminal and run the following command ``` gcloud container clusters create-auto "ncar-autopilot-cluster-1" \ --project "i2class-fall2023-dmdevrie" \ @@ -46,6 +38,14 @@ Labels: { } ``` - Subsequent changes to the deployment can be made by modifying `deployment.yaml`. Open a Google Cloud Shell terminal and run the following command to apply the changes: -``` -kubectl apply -f deployment.yaml -``` \ No newline at end of file + + First retrieve auth credentials for the cluster and verify + ``` + gcloud container clusters get-credentials ncar-autopilot-cluster-1 --zone=us-central1 + kubectl cluster-info + ``` + + Then apply the changes + ``` + kubectl apply -f deployment.yaml + ``` \ No newline at end of file From 4f2427ba9a32f86ae370010f79bae5f7173c44b2 Mon Sep 17 00:00:00 2001 From: Thomas Cram Date: Fri, 27 Oct 2023 11:06:06 -0600 Subject: [PATCH 15/17] updated readme --- Usecases/Kubernetes Cluster/Readme.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Usecases/Kubernetes Cluster/Readme.md b/Usecases/Kubernetes Cluster/Readme.md index 4e3072e..3cb4e4c 100644 --- a/Usecases/Kubernetes Cluster/Readme.md +++ b/Usecases/Kubernetes Cluster/Readme.md @@ -6,10 +6,11 @@ - In the Google Cloud Console, create a cluster on the **Kubernetes clusters** page - Cluster basics: specify a name and region for the cluster, and use default values for other fields: -``` -name: ncar-autopilot-cluster-1 -region: us-central1 -``` + + ``` + name: ncar-autopilot-cluster-1 + region: us-central1 + ``` - Networking: use default values and continue - Advanced settings: use default values and continue @@ -31,12 +32,13 @@ region: us-central1 - In addition to the nginx container, add the NCAR subsetting container. Select 'Add a container'. - Choose `Existing container` and select the container `us-central1-docker.pkg.dev/i2class-fall2023-dmdevrie/ncar-transform/ncar-subset` from the Artifact Registry. - Set the deployment name and app label (these should be the same): -``` -Deployment name: ncar-subset -Labels: { - app: ncar-subset -} -``` + + ``` + Deployment name: ncar-subset + Labels: { + app: ncar-subset + } + ``` - Subsequent changes to the deployment can be made by modifying `deployment.yaml`. Open a Google Cloud Shell terminal and run the following command to apply the changes: First retrieve auth credentials for the cluster and verify From 9efbfe22af89876d1bff488715178c84eca8a893 Mon Sep 17 00:00:00 2001 From: Thomas Cram Date: Fri, 27 Oct 2023 11:06:39 -0600 Subject: [PATCH 16/17] updated readme --- Usecases/Kubernetes Cluster/Readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Usecases/Kubernetes Cluster/Readme.md b/Usecases/Kubernetes Cluster/Readme.md index 3cb4e4c..25ddd95 100644 --- a/Usecases/Kubernetes Cluster/Readme.md +++ b/Usecases/Kubernetes Cluster/Readme.md @@ -16,6 +16,7 @@ ### Step-1 (alternative) - Create a cluster from the command line - Open a Google Cloud Shell terminal and run the following command + ``` gcloud container clusters create-auto "ncar-autopilot-cluster-1" \ --project "i2class-fall2023-dmdevrie" \ From 92fb8e6dc736920b0d7b85faeb528c72b85a2b69 Mon Sep 17 00:00:00 2001 From: Thomas Cram Date: Fri, 27 Oct 2023 11:08:10 -0600 Subject: [PATCH 17/17] updated readme --- Usecases/Kubernetes Cluster/Readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Usecases/Kubernetes Cluster/Readme.md b/Usecases/Kubernetes Cluster/Readme.md index 25ddd95..85aa0c9 100644 --- a/Usecases/Kubernetes Cluster/Readme.md +++ b/Usecases/Kubernetes Cluster/Readme.md @@ -40,6 +40,8 @@ app: ncar-subset } ``` + +### Updating the deployment - Subsequent changes to the deployment can be made by modifying `deployment.yaml`. Open a Google Cloud Shell terminal and run the following command to apply the changes: First retrieve auth credentials for the cluster and verify