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
|
|
@ -62,6 +62,18 @@ jobs:
|
|||
kubectl config set-credentials runner --token="$SA_TOKEN"
|
||||
kubectl config set-context runner-context --cluster=microk8s --user=runner --namespace="$NAMESPACE"
|
||||
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
|
||||
- name: Apply StorageClass + PV
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue