Skip to content

Commit 535fa59

Browse files
committed
Update google-Axion.md
1 parent 91457c5 commit 535fa59

File tree

1 file changed

+15
-0
lines changed
  • content/learning-paths/servers-and-cloud-computing/google-axion-cicd-gke

1 file changed

+15
-0
lines changed

content/learning-paths/servers-and-cloud-computing/google-axion-cicd-gke/google-Axion.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,21 @@ In this Learning Path, you will build a .NET 6-based web application using a sel
1717
## How do I create a Virtual Machine in GCP?
1818
Creating a virtual machine based on Google Axion is no different from creating any other VM in GCP. To create a Google Axion virtual machine, launch the GCP portal and navigate to Virtual Machines.
1919
Please refer to "Create an Arm-based VM instance with Google Axion CPU" in [*Create an Axion instance*](/learning-paths/servers-and-cloud-computing/java-on-axion/1-create-instance) for creating Axion based VM instance.
20+
Install [Docker](/install-guides/docker/) and [Kubernets](/install-guides/kubectl/) in the created VM.
21+
Also run below command to configure and authenticate gcloud:
22+
```console
23+
gcloud config set project <project-id>
24+
gcloud auth activate-service-account --key-file=<path-to-key-file>.json
25+
gcloud auth configure-docker
26+
```
27+
Now, run below command to create a Kubernetes secret with the key:
28+
```console
29+
kubectl create secret docker-registry gcr-json-key \
30+
--docker-server=gcr.io \
31+
--docker-username=_json_key \
32+
--docker-password="$(cat <path-to-key>.json)" \
33+
--docker-email=<your-email>
34+
```
2035

2136
## How do I configure the GitHub repository?
2237

0 commit comments

Comments
 (0)