Last active 1726979753

jarno's Avatar jarno revised this gist 1726979753. Go to revision

1 file changed, 6 insertions

ConfigMap.yaml(file created)

@@ -0,0 +1,6 @@
1 + apiVersion: v1
2 + kind: ConfigMap
3 + metadata:
4 + name: <NAME>-config
5 + data:
6 + VAR: "value"

jarno's Avatar jarno revised this gist 1726979581. Go to revision

1 file changed, 23 insertions

Ingress.yaml(file created)

@@ -0,0 +1,23 @@
1 + apiVersion: networking.k8s.io/v1
2 + kind: Ingress
3 + metadata:
4 + name: <NAME>
5 + spec:
6 + ingressClassName: nginx
7 + rules:
8 + - host: example.com
9 + http:
10 + paths:
11 + - pathType: Prefix
12 + backend:
13 + service:
14 + name: <NAME>
15 + port:
16 + number: 3003
17 + path: /
18 + # This section is only required if TLS is to be enabled for the Ingress
19 + tls:
20 + - hosts:
21 + - example.com
22 + secretName: <TLSSECRETNAME>
23 +

jarno's Avatar jarno revised this gist 1726979479. Go to revision

1 file changed, 34 insertions

storage.yaml(file created)

@@ -0,0 +1,34 @@
1 + apiVersion: v1
2 + kind: PersistentVolume
3 + metadata:
4 + name: <NAME>-pv
5 + spec:
6 + capacity:
7 + storage: 100Mi
8 + volumeMode: Filesystem
9 + accessModes:
10 + - ReadWriteOnce
11 + persistentVolumeReclaimPolicy: Retain
12 + storageClassName: <STORAGECLASSNAME>
13 + local:
14 + path: /path/to/data/on/host
15 + nodeAffinity:
16 + required:
17 + nodeSelectorTerms:
18 + - matchExpressions:
19 + - key: kubernetes.io/hostname
20 + operator: In
21 + values:
22 + - <HOSTNAME>
23 + ---
24 + apiVersion: v1
25 + kind: PersistentVolumeClaim
26 + metadata:
27 + name: <NAME>-pvc
28 + spec:
29 + storageClassName: <STORAGECLASSNAME>
30 + accessModes:
31 + - ReadWriteOnce
32 + resources:
33 + requests:
34 + storage: 100Mi

jarno's Avatar jarno revised this gist 1726979379. Go to revision

No changes

jarno's Avatar jarno revised this gist 1726979358. Go to revision

No changes

jarno's Avatar jarno revised this gist 1726979317. Go to revision

2 files changed, 45 insertions

Service.yaml(file created)

@@ -0,0 +1,13 @@
1 + apiVersion: v1
2 + kind: Service
3 + metadata:
4 + name: <NAME>-svc
5 + labels:
6 + app: <NAME>
7 + spec:
8 + ports:
9 + - port: 3003
10 + name: <PORT NAME>
11 + clusterIP: None
12 + selector:
13 + app: <NAME>

StatefulSet.yaml(file created)

@@ -0,0 +1,32 @@
1 + apiVersion: apps/v1
2 + kind: StatefulSet
3 + metadata:
4 + name: <NAME>
5 + labels:
6 + app: <NAME>
7 + spec:
8 + serviceName: <NAME>
9 + minReadySeconds: 10
10 + replicas: 1
11 + selector:
12 + matchLabels:
13 + app: <NAME>
14 + template:
15 + metadata:
16 + labels:
17 + app: <NAME>
18 + spec:
19 + volumes:
20 + - name: <NAME>-vol
21 + persistentVolumeClaim:
22 + claimName: <NAME>-pvc
23 + containers:
24 + - image: "<IMAGE>"
25 + #imagePullPolicy: Never
26 + name: app
27 + volumeMounts:
28 + - mountPath: /path
29 + name: <NAME>-vol
30 + ports:
31 + - containerPort: 3003
32 + # hostPort: 8085
Newer Older