k8s-mgmt-pod/k8s/service.yaml
Michael Trip 4dbcde381f
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 2m21s
initial commit
2026-06-23 15:06:17 +02:00

34 lines
703 B
YAML

apiVersion: v1
kind: Service
metadata:
name: k8s-mgmt-pod
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: k8s-mgmt-pod
ports:
- name: ssh
port: 22
targetPort: ssh
protocol: TCP
- name: webssh
port: 3000
targetPort: webssh
protocol: TCP
# Expose externally only if you explicitly want SSH and web SSH reachable from outside the cluster.
# apiVersion: v1
# kind: Service
# metadata:
# name: k8s-mgmt-pod-external
# spec:
# type: LoadBalancer
# selector:
# app.kubernetes.io/name: k8s-mgmt-pod
# ports:
# - name: ssh
# port: 22
# targetPort: ssh
# - name: webssh
# port: 3000
# targetPort: webssh