Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcp: fix block code in README #2250

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/cloud-api-adaptor/gcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Kubeadm setup.

When using GKE, ensure that the `UBUNTU_CONTAINERD` image is used. For instance:

````bash
```bash
gcloud container clusters create my-cluster \
--zone ${GCP_LOCATION}-a \
--machine-type e2-standard-4 \
Expand All @@ -104,8 +104,8 @@ gcloud container clusters create my-cluster \
Regardless of the method used, at the end you should have a KUBECONFIG pointing
to the auth file and a cluster up and running:

```
$ kubectl get nodes
```bash
kubectl get nodes
NAME STATUS ROLES AGE VERSION
peer-pods-ctlplane-0 Ready control-plane,master 6m8s v1.25.3
peer-pods-worker-0 Ready worker 2m47s v1.25.3
Expand Down Expand Up @@ -147,7 +147,7 @@ later.

We need to make sure port 15150 is open under the `default` VPC network:

```
```bash
gcloud compute firewall-rules create allow-port-15150 \
--project=${GCP_PROJECT_ID} \
--network=default \
Expand All @@ -171,7 +171,7 @@ gcloud compute firewall-rules create allow-port-15150 \

Update [install/overlays/gcp/kustomization.yaml](../install/overlays/gcp/kustomization.yaml) with the required fields:

```
```yaml
images:
- name: cloud-api-adaptor
newName: 192.168.122.1:5000/cloud-api-adaptor # change image if needed
Expand All @@ -197,8 +197,8 @@ secretGenerator:
```

```bash
$ kubectl apply -k install/overlays/gcp/
$ kubectl get pods -n confidential-containers-system
kubectl apply -k install/overlays/gcp/
kubectl get pods -n confidential-containers-system
NAME READY STATUS RESTARTS AGE
cc-operator-controller-manager-546574cf87-b69pb 2/2 Running 0 7d10h
cc-operator-daemon-install-mfjbj 1/1 Running 0 7d10h
Expand All @@ -210,8 +210,8 @@ cloud-api-adaptor-daemonset-5w8nw 1/1 Running 0 7

Deploy the `sample_busybox.yaml` (see [libvirt/README.md](../libvirt/README.md)):

```
$ kubectl apply -f sample_busybox.yaml
```bash
kubectl apply -f sample_busybox.yaml
pod/busybox created
```

Expand Down
Loading