Skip to content

Commit

Permalink
aws: update kustomization setting instructions
Browse files Browse the repository at this point in the history
to modify the current version of kustomization.yaml

Signed-off-by: Snir Sheriber <[email protected]>
  • Loading branch information
snir911 authored and Qi Feng Huo committed Aug 7, 2024
1 parent a59deed commit 3c88ae8
Showing 1 changed file with 2 additions and 39 deletions.
41 changes: 2 additions & 39 deletions src/cloud-api-adaptor/aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,47 +192,10 @@ EOF

### Update the `kustomization.yaml` file

Run the following command to update the [`kustomization.yaml`](../install/overlays/aws/kustomization.yaml) file:
Run the following command to update the [`kustomization.yaml`](../install/overlays/aws/kustomization.yaml) file with the `PODVM_AMI_ID` value:

```bash
cat <<EOF > install/overlays/aws/kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
- ../../yamls
images:
- name: cloud-api-adaptor
newName: quay.io/confidential-containers/cloud-api-adaptor # change image if needed
newTag: d4496d008b65c979a4d24767979a77ed1ba21e76
generatorOptions:
disableNameSuffixHash: true
configMapGenerator:
- name: peer-pods-cm
namespace: confidential-containers-system
literals:
- CLOUD_PROVIDER="aws"
- PODVM_AMI_ID="${PODVM_AMI_ID}"
- VXLAN_PORT="9000" # Uncomment and set if you want to use a specific vxlan port. Defaults to 4789
#- PODVM_INSTANCE_TYPE="m6a.large" # default instance type to use
#- PODVM_INSTANCE_TYPES="" # comma separated list of supported instance types
secretGenerator:
- name: auth-json-secret
namespace: confidential-containers-system
files:
#- auth.json # set - path to auth.json pull credentials file
- name: peer-pods-secret
namespace: confidential-containers-system
# This file should look like this (w/o quotes!):
# AWS_ACCESS_KEY_ID=...
# AWS_SECRET_ACCESS_KEY=...
envs:
- aws-cred.env
patchesStrategicMerge:
EOF
sed -i -E "s/(PODVM_AMI_ID=).*/\1 \"${PODVM_AMI_ID}\"/" install/overlays/aws/kustomization.yaml
```

### Deploy CAA on the Kubernetes cluster
Expand Down

0 comments on commit 3c88ae8

Please sign in to comment.