mirror of
https://gitee.com/devstar/devstar-devcontainer-operator
synced 2025-04-21 09:42:22 +00:00

All checks were successful
DevStar DevContainer Operator CI Pipeline - main branch / build-and-push-devstar-devcontainer-operator (push) Successful in 1m8s
19 lines
425 B
YAML
19 lines
425 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{.ObjectMeta.Name}}-svc
|
|
namespace: {{.ObjectMeta.Namespace}}
|
|
spec:
|
|
selector:
|
|
app: {{.ObjectMeta.Name}}
|
|
devstar-resource-type: devstar-devcontainer
|
|
type: NodePort
|
|
ports:
|
|
- name: ssh-port
|
|
protocol: TCP
|
|
port: 22
|
|
targetPort: {{.Spec.StatefulSet.ContainerPort}}
|
|
{{ if .Spec.Service.NodePort}}
|
|
nodePort: {{.Spec.Service.NodePort}}
|
|
{{ end }}
|