Template deployment

This commit is contained in:
Micke Nordin 2024-11-14 11:12:42 +01:00
parent 32afc32ebb
commit 81262d2af1
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257
5 changed files with 34 additions and 10 deletions

View file

@ -3,5 +3,6 @@ resources:
- portal-ingress.yml
- portal-namespace.yml
- portal-service.yml
- portal-pvc.yml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

View file

@ -8,6 +8,10 @@ metadata:
labels:
app: portal-node
spec:
volumes:
- name: config-volume
persistentVolumeClaim:
claimName: init-config
replicas: 3
selector:
matchLabels:
@ -17,16 +21,6 @@ spec:
creationTimestamp:
labels:
app: portal-node
volumeClaimTemplates:
- metadata:
name: init-config
spec:
storageClassName: csi-sc-cinderplugin
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
spec:
containers:
- name: portal

View file

@ -0,0 +1,12 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: init-config
spec:
storageClassName: csi-sc-cinderplugin
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi

View file

@ -4,3 +4,4 @@ resources:
- ../../base
patches:
- path: portal-ingress.yml
- path: portal-deployment.yml

View 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"