Skip to content
Snippets Groups Projects
Commit 281b963a authored by ludo8147's avatar ludo8147
Browse files

prod an secret creating

parent 69026031
No related branches found
No related tags found
No related merge requests found
Pipeline #68949 passed
......@@ -141,7 +141,7 @@ deploy_to_staging:
CPU_LIMIT: "500m"
MEMORY_REQUEST: "256Mi"
MEMORY_LIMIT: "512Mi"
INGRESS_HOST: "prod-webdevops.ddns.net"
INGRESS_HOST: "staging-webdevops.ddns.net"
script:
- |
echo "Creating namespace if it doesn't exist..."
......@@ -156,7 +156,7 @@ deploy_to_staging:
kubectl wait --for=condition=Available --timeout=300s deployment/cert-manager-webhook -n cert-manager
echo "Validating and applying Kubernetes manifests..."
for file in deployment.yaml service.yaml ingress.yaml redis.yaml redis-configmap.yaml prometheus.yaml network-policy.yaml redis-pv-pvc.yaml cluster-issuer.yaml secret-staging.yaml secret-production.yaml; do
for file in deployment.yaml service.yaml secret-staging.yaml secret-production.yaml ingress.yaml redis.yaml redis-configmap.yaml prometheus.yaml network-policy.yaml redis-pv-pvc.yaml cluster-issuer.yaml; do
echo "Applying $file"
envsubst < $file | kubectl apply -f -
done
......@@ -179,7 +179,7 @@ deploy_to_production:
CPU_LIMIT: "800m"
MEMORY_REQUEST: "512Mi"
MEMORY_LIMIT: "1Gi"
INGRESS_HOST: "staging-webdevops.ddns.net"
INGRESS_HOST: "prod-webdevops.ddns.net"
script:
- |
echo "Creating namespace if it doesn't exist..."
......@@ -194,7 +194,7 @@ deploy_to_production:
kubectl wait --for=condition=Available --timeout=300s deployment/cert-manager-webhook -n cert-manager
echo "Validating and applying Kubernetes manifests..."
for file in deployment.yaml service.yaml ingress.yaml redis.yaml redis-configmap.yaml prometheus.yaml network-policy.yaml redis-pv-pvc.yaml cluster-issuer.yaml secret-staging.yaml secret-production.yaml; do
for file in deployment.yaml service.yaml secret-staging.yaml secret-production.yaml ingress.yaml redis.yaml redis-configmap.yaml prometheus.yaml network-policy.yaml redis-pv-pvc.yaml cluster-issuer.yaml; do
echo "Applying $file"
envsubst < $file | kubectl apply -f -
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment