initial commit
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 2m21s
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 2m21s
This commit is contained in:
commit
4dbcde381f
20 changed files with 1151 additions and 0 deletions
34
k8s/service.yaml
Normal file
34
k8s/service.yaml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue