apiVersion: v1 kind: Service metadata: name: {{ template "gitea.fullname" . }} labels: {{- include "gitea.labels" . | nindent 4 }} app.kubernetes.io/component: application spec: type: {{ .Values.gitea.service.type }} ports: - port: {{ .Values.gitea.service.httpPort }} targetPort: http protocol: TCP name: http # Si vous voulez exposer SSH via un service (ex: LoadBalancer), ajoutez un port ici. # Sinon, l'Ingress ne gère que HTTP/S. Pour SSH, une config différente est nécessaire (Service Type LoadBalancer sur le port SSH, ou NodePort) # - port: 22 # Port externe pour SSH # targetPort: ssh # Le nom du port dans le pod Gitea # protocol: TCP # name: ssh selector: {{- include "gitea.selectorLabels" . | nindent 4 }} app.kubernetes.io/component: application