Use envsubst to substitute environment variables in namespace.yaml before applying with kubectl
This commit is contained in:
@@ -129,7 +129,7 @@ deploy_application() {
|
|||||||
|
|
||||||
# Create namespace if it doesn't exist
|
# Create namespace if it doesn't exist
|
||||||
echo "Creating namespace..."
|
echo "Creating namespace..."
|
||||||
kubectl apply -f script/k8s/namespace.yaml
|
envsubst < script/k8s/namespace.yaml | kubectl apply -f -
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# Create registry secret for pulling images
|
# Create registry secret for pulling images
|
||||||
|
|||||||
Reference in New Issue
Block a user