Updated resource creation:

* StatefulSet
* PVC
* Service
* Ingress (TODO: SSH port forwarding)
This commit is contained in:
Mingchen Dai
2024-09-11 08:54:39 +00:00
parent dd2ff56190
commit 3cf82cb947
9 changed files with 142 additions and 40 deletions

View File

@@ -1,13 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: {{.ObjectMeta.Name}}
name: {{.ObjectMeta.Name}}-svc
namespace: {{.ObjectMeta.Namespace}}
spec:
selector:
app: {{.ObjectMeta.Name}}
ports:
- name: ssh
port: {{.Spec.Ingress.Port}}
targetPort: ssh-port
protocol: TCP
port: 22
targetPort: 22