Commit be0405ac authored by Du Garreau De La Mechenie Benoit's avatar Du Garreau De La Mechenie Benoit
Browse files

Add namespaces

parent b4609413
Pipeline #5988 failed with stages
in 45 seconds
......@@ -37,6 +37,9 @@ deploy:
- sed -i "s/project/${CI_PROJECT_NAME}-${CI_PROJECT_ID}/g" kube/deployment.yaml
- sed -i "s/template/${CI_PROJECT_NAME}-${CI_PROJECT_ID}/g" kube/service.yaml
- sed -i "s/template/${CI_PROJECT_NAME}-${CI_PROJECT_ID}/g" kube/ingress.yaml
- sed -i "s/NAMESPACE/${NAMESPACE}/g" kube/deployment.yaml
- sed -i "s/NAMESPACE/${NAMESPACE}/g" kube/service.yaml
- sed -i "s/NAMESPACE/${NAMESPACE}/g" kube/ingress.yaml
- sed -i "s/domain/${URL}/g" kube/ingress.yaml
- kubectl apply -f kube
- kubectl get services
- kubectl get services -n ${NAMESPACE}
......@@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: project
name: NAMESPACE
spec:
replicas: 1
selector:
......
......@@ -2,6 +2,7 @@ apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: template
name: NAMESPACE
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
......
......@@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: template
name: NAMESPACE
spec:
selector:
app: template
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment