devstar-devcontainer-operator/internal/controller/templates/service.yaml
Mingchen Dai 3cf82cb947
Updated resource creation:
* StatefulSet
* PVC
* Service
* Ingress (TODO: SSH port forwarding)
2024-09-11 08:54:39 +00:00

14 lines
266 B
YAML

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