new standard deploy templates
This commit is contained in:
6
k8s/configmap.yaml
Normal file
6
k8s/configmap.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: $DEPLOY
|
||||
data:
|
||||
ALLOWED_HOSTS: localhost,test.ducoterra.net
|
||||
@@ -1,22 +1,25 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: test
|
||||
name: $DEPLOY
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: test
|
||||
app: $DEPLOY
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: test
|
||||
app: $DEPLOY
|
||||
spec:
|
||||
containers:
|
||||
- name: test
|
||||
- name: $DEPLOY
|
||||
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: gitlab
|
||||
volumeMounts:
|
||||
- mountPath: /app/db
|
||||
name: test
|
||||
name: $DEPLOY
|
||||
resources:
|
||||
limits:
|
||||
memory: "256Mi"
|
||||
@@ -27,6 +30,6 @@ spec:
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
volumes:
|
||||
- name: test
|
||||
- name: $DEPLOY
|
||||
persistentVolumeClaim:
|
||||
claimName: test
|
||||
claimName: $DEPLOY
|
||||
@@ -3,7 +3,7 @@ kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
ingress.kubernetes.io/ssl-redirect: "true"
|
||||
name: test
|
||||
name: $DEPLOY
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
@@ -14,7 +14,7 @@ spec:
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: test
|
||||
serviceName: $DEPLOY
|
||||
servicePort: 8000
|
||||
|
||||
---
|
||||
@@ -22,7 +22,7 @@ spec:
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: test-external-tls
|
||||
name: $DEPLOY-external-tls
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
@@ -32,7 +32,7 @@ spec:
|
||||
- match: Host(`test.ducoterra.net`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: test
|
||||
- name: $DEPLOY
|
||||
port: 8000
|
||||
|
||||
---
|
||||
@@ -40,7 +40,7 @@ spec:
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: test-external-web
|
||||
name: $DEPLOY-external-web
|
||||
spec:
|
||||
entryPoints:
|
||||
- web
|
||||
@@ -48,7 +48,7 @@ spec:
|
||||
- match: Host(`test.ducoterra.net`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: test
|
||||
- name: $DEPLOY
|
||||
port: 8000
|
||||
middlewares:
|
||||
- name: httpsredirect
|
||||
@@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: test
|
||||
name: $DEPLOY
|
||||
spec:
|
||||
storageClassName: nfs-encrypted
|
||||
accessModes:
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: test
|
||||
name: $DEPLOY
|
||||
spec:
|
||||
selector:
|
||||
app: test
|
||||
app: $DEPLOY
|
||||
ports:
|
||||
- port: 8000
|
||||
targetPort: 8000
|
||||
Reference in New Issue
Block a user