Skip to content

Commit

Permalink
Expose the gitea ssh port on 32222
Browse files Browse the repository at this point in the history
Sets up gitea ssh to be exposed at 32222 on the host network, docker
container, and cluster service layers.

Signed-off-by: Caleb Boylan <[email protected]>
  • Loading branch information
squidboylan committed Jan 24, 2025
1 parent 765404b commit 7b2cbde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/controllers/localbuild/resources/gitea/k8s/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ stringData:
ROOT_URL={{- if .UsePathRouting }} {{- .Protocol }}://{{ .Host }}:{{ .Port }}/gitea {{- else }} {{- .Protocol }}://gitea.{{ .Host }}:{{ .Port }} {{- end }}
SSH_DOMAIN={{- if .UsePathRouting -}} {{ .Host }} {{- else -}} gitea.{{- .Host }} {{- end }}
SSH_LISTEN_PORT=2222
SSH_PORT=22
SSH_PORT=32222
START_SSH_SERVER=true
session: |-
PROVIDER=memory
Expand Down Expand Up @@ -381,7 +381,7 @@ spec:
externalTrafficPolicy: Local
ports:
- name: ssh
port: 22
port: 32222
targetPort: 2222
protocol: TCP
nodePort: 32222
Expand Down Expand Up @@ -539,7 +539,7 @@ spec:
- name: SSH_LISTEN_PORT
value: "2222"
- name: SSH_PORT
value: "22"
value: "32222"
- name: GITEA_APP_INI
value: /data/gitea/conf/app.ini
- name: GITEA_CUSTOM
Expand Down
3 changes: 3 additions & 0 deletions pkg/kind/resources/kind.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ nodes:
- containerPort: {{ if (eq .Protocol "http") -}} 80 {{- else -}} 443 {{- end }}
hostPort: {{ .Port }}
protocol: TCP
- containerPort: 32222
hostPort: 32222
protocol: TCP
{{ range .ExtraPortsMapping -}}
- containerPort: {{ .ContainerPort }}
hostPort: {{ .HostPort }}
Expand Down

0 comments on commit 7b2cbde

Please sign in to comment.