31 lines
759 B
YAML
31 lines
759 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
annotations:
|
|
kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"labels":{"app":"gitea"},"name":"gitea","namespace":"gitea"},"spec":{"ports":[{"name":"http","port":3000,"targetPort":3000},{"name":"ssh","port":22,"targetPort":22}],"selector":{"app":"gitea"},"type":"ClusterIP"}}
|
|
|
|
'
|
|
labels:
|
|
app: gitea
|
|
name: gitea
|
|
namespace: gitea
|
|
spec:
|
|
internalTrafficPolicy: Cluster
|
|
ipFamilies:
|
|
- IPv4
|
|
ipFamilyPolicy: SingleStack
|
|
ports:
|
|
- name: http
|
|
port: 3000
|
|
protocol: TCP
|
|
targetPort: 3000
|
|
- name: ssh
|
|
port: 22
|
|
protocol: TCP
|
|
targetPort: 22
|
|
selector:
|
|
app: gitea
|
|
sessionAffinity: None
|
|
type: ClusterIP
|
|
|