save
This commit is contained in:
parent
581773a682
commit
76372862cd
1 changed files with 12 additions and 0 deletions
12
.github/workflows/k8s_traefik_init_setup.yml
vendored
12
.github/workflows/k8s_traefik_init_setup.yml
vendored
|
|
@ -63,6 +63,18 @@ jobs:
|
||||||
kubectl config set-context runner-context --cluster=microk8s --user=runner --namespace="$NAMESPACE"
|
kubectl config set-context runner-context --cluster=microk8s --user=runner --namespace="$NAMESPACE"
|
||||||
kubectl config use-context runner-context
|
kubectl config use-context runner-context
|
||||||
|
|
||||||
|
# -----------------------------------------------------
|
||||||
|
# ⭐ Inject AWS secrets needed for Traefik Route53 DNS
|
||||||
|
# -----------------------------------------------------
|
||||||
|
- name: Apply AWS Secrets
|
||||||
|
run: |
|
||||||
|
kubectl create secret generic aws-secrets \
|
||||||
|
--namespace=default \
|
||||||
|
--from-literal=AWS_ACCESS_KEY_ID='${{ secrets.AWS_ACCESS_KEY_ID }}' \
|
||||||
|
--from-literal=AWS_SECRET_ACCESS_KEY='${{ secrets.AWS_SECRET_ACCESS_KEY }}' \
|
||||||
|
--from-literal=AWS_REGION='${{ secrets.AWS_REGION }}' \
|
||||||
|
--dry-run=client -o yaml | kubectl apply -f -
|
||||||
|
|
||||||
# Apply storage classes + PVs
|
# Apply storage classes + PVs
|
||||||
- name: Apply StorageClass + PV
|
- name: Apply StorageClass + PV
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue