- apiVersion: v1
- kind: Service
- metadata:
- name: gogs-ssh
- namespace: git
- spec:
- type: LoadBalancer # Use NodePort if you don't have a LoadBalancer
- selector:
- app: gogs
- ports:
- - name: ssh
- port: 22
- targetPort: 22
- # nodePort: 30022 # Uncomment if using NodePort
|