Template deployment
This commit is contained in:
parent
32afc32ebb
commit
81262d2af1
|
@ -3,5 +3,6 @@ resources:
|
||||||
- portal-ingress.yml
|
- portal-ingress.yml
|
||||||
- portal-namespace.yml
|
- portal-namespace.yml
|
||||||
- portal-service.yml
|
- portal-service.yml
|
||||||
|
- portal-pvc.yml
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|
|
@ -8,6 +8,10 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
app: portal-node
|
app: portal-node
|
||||||
spec:
|
spec:
|
||||||
|
volumes:
|
||||||
|
- name: config-volume
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: init-config
|
||||||
replicas: 3
|
replicas: 3
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
@ -17,16 +21,6 @@ spec:
|
||||||
creationTimestamp:
|
creationTimestamp:
|
||||||
labels:
|
labels:
|
||||||
app: portal-node
|
app: portal-node
|
||||||
volumeClaimTemplates:
|
|
||||||
- metadata:
|
|
||||||
name: init-config
|
|
||||||
spec:
|
|
||||||
storageClassName: csi-sc-cinderplugin
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 1Gi
|
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: portal
|
- name: portal
|
||||||
|
|
12
portal/base/portal-pvc.yml
Normal file
12
portal/base/portal-pvc.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: init-config
|
||||||
|
spec:
|
||||||
|
storageClassName: csi-sc-cinderplugin
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
|
@ -4,3 +4,4 @@ resources:
|
||||||
- ../../base
|
- ../../base
|
||||||
patches:
|
patches:
|
||||||
- path: portal-ingress.yml
|
- path: portal-ingress.yml
|
||||||
|
- path: portal-deployment.yml
|
||||||
|
|
16
portal/overlays/test/portal-deployment.yml
Normal file
16
portal/overlays/test/portal-deployment.yml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
kind: Deployment
|
||||||
|
apiVersion: apps/v1
|
||||||
|
metadata:
|
||||||
|
name: portal-node
|
||||||
|
namespace: portal
|
||||||
|
creationTimestamp:
|
||||||
|
labels:
|
||||||
|
app: portal-node
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
initContainers:
|
||||||
|
- env:
|
||||||
|
- name: DRIVE_DOMAIN
|
||||||
|
value: "https://drive.test.sunet.se"
|
Loading…
Reference in a new issue