mirror of https://github.com/coder/code-server.git
feature: add ability to attach ports to code server (#6015)
This commit is contained in:
parent
36daac3031
commit
4fb87f920f
|
@ -15,7 +15,7 @@ type: application
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 3.4.1
|
version: 3.5.1
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
|
|
@ -114,6 +114,11 @@ spec:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 8080
|
containerPort: 8080
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
{{- range .Values.extraPorts }}
|
||||||
|
- name: {{ .name }}
|
||||||
|
containerPort: {{ .port }}
|
||||||
|
protocol: {{ .protocol }}
|
||||||
|
{{- end }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /
|
||||||
|
|
|
@ -14,6 +14,12 @@ spec:
|
||||||
targetPort: http
|
targetPort: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: http
|
name: http
|
||||||
|
{{- range .Values.extraPorts }}
|
||||||
|
- port: {{ .port }}
|
||||||
|
targetPort: {{ .port }}
|
||||||
|
protocol: {{ .protocol }}
|
||||||
|
name: {{ .name }}
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: {{ include "code-server.name" . }}
|
app.kubernetes.io/name: {{ include "code-server.name" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
|
|
@ -196,3 +196,8 @@ extraConfigmapMounts: []
|
||||||
# subPath: certificates.crt # (optional)
|
# subPath: certificates.crt # (optional)
|
||||||
# configMap: certs-configmap
|
# configMap: certs-configmap
|
||||||
# readOnly: true
|
# readOnly: true
|
||||||
|
|
||||||
|
extraPorts: []
|
||||||
|
# - name: minecraft
|
||||||
|
# port: 25565
|
||||||
|
# protocol: tcp
|
||||||
|
|
Loading…
Reference in New Issue