Merge pull request #9 from holysoles/add_target_port_value
fix(chart): add parameter for service.targetPort
This commit is contained in:
@@ -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: 0.2.3
|
version: 0.3.0
|
||||||
|
|
||||||
# This is the version number of the application being deployed.
|
# This is the version number of the application being deployed.
|
||||||
# renovate:image=ghcr.io/mattlqx/docker-pixelfed
|
# renovate:image=ghcr.io/mattlqx/docker-pixelfed
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# pixelfed
|
# pixelfed
|
||||||
|
|
||||||
  
|
  
|
||||||
|
|
||||||
A Helm chart for deploying Pixelfed on Kubernetes
|
A Helm chart for deploying Pixelfed on Kubernetes
|
||||||
|
|
||||||
@@ -162,6 +162,7 @@ A Helm chart for deploying Pixelfed on Kubernetes
|
|||||||
| resources | object | `{}` | |
|
| resources | object | `{}` | |
|
||||||
| securityContext | object | `{}` | |
|
| securityContext | object | `{}` | |
|
||||||
| service.port | int | `80` | This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports |
|
| service.port | int | `80` | This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports |
|
||||||
|
| service.targetPort | int | `80` | Port to attach to on the pods. Also sets what port nginx listens on inside the container. |
|
||||||
| service.type | string | `"ClusterIP"` | This sets the service type more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types |
|
| service.type | string | `"ClusterIP"` | This sets the service type more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types |
|
||||||
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account |
|
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account |
|
||||||
| serviceAccount.automount | bool | `true` | Automatically mount a ServiceAccount's API credentials? |
|
| serviceAccount.automount | bool | `true` | Automatically mount a ServiceAccount's API credentials? |
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ data:
|
|||||||
# app config vars
|
# app config vars
|
||||||
APP_NAME={{ .Values.pixelfed.app.name }}
|
APP_NAME={{ .Values.pixelfed.app.name }}
|
||||||
APP_ENV={{ .Values.pixelfed.app.env }}
|
APP_ENV={{ .Values.pixelfed.app.env }}
|
||||||
|
APP_PORT={{ .Values.service.targetPort }}
|
||||||
APP_URL={{ .Values.pixelfed.app.url }}
|
APP_URL={{ .Values.pixelfed.app.url }}
|
||||||
APP_LOCALE={{ .Values.pixelfed.app.locale }}
|
APP_LOCALE={{ .Values.pixelfed.app.locale }}
|
||||||
{{- with .Values.pixelfed.app.domain }}
|
{{- with .Values.pixelfed.app.domain }}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ spec:
|
|||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: {{ .Values.service.port }}
|
containerPort: {{ .Values.service.targetPort }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
env:
|
env:
|
||||||
# app data
|
# app data
|
||||||
@@ -46,6 +46,8 @@ spec:
|
|||||||
value: {{ .Values.pixelfed.app.name }}
|
value: {{ .Values.pixelfed.app.name }}
|
||||||
- name: APP_ENV
|
- name: APP_ENV
|
||||||
value: {{ .Values.pixelfed.app.env }}
|
value: {{ .Values.pixelfed.app.env }}
|
||||||
|
- name: APP_PORT
|
||||||
|
value: {{ .Values.service.targetPort | quote}}
|
||||||
- name: APP_URL
|
- name: APP_URL
|
||||||
value: {{ .Values.pixelfed.app.url }}
|
value: {{ .Values.pixelfed.app.url }}
|
||||||
- name: APP_LOCALE
|
- name: APP_LOCALE
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
type: {{ .Values.service.type }}
|
type: {{ .Values.service.type }}
|
||||||
ports:
|
ports:
|
||||||
- port: {{ .Values.service.port }}
|
- port: {{ .Values.service.port }}
|
||||||
targetPort: http
|
targetPort: {{ .Values.service.targetPort }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: http
|
name: http
|
||||||
selector:
|
selector:
|
||||||
|
|||||||
@@ -56,6 +56,8 @@ service:
|
|||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
# -- This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports
|
# -- This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports
|
||||||
port: 80
|
port: 80
|
||||||
|
# -- Port to attach to on the pods. Also sets what port nginx listens on inside the container.
|
||||||
|
targetPort: 80
|
||||||
|
|
||||||
# This block is for setting up the ingress for more information can be found here: https://kubernetes.io/docs/concepts/services-networking/ingress/
|
# This block is for setting up the ingress for more information can be found here: https://kubernetes.io/docs/concepts/services-networking/ingress/
|
||||||
ingress:
|
ingress:
|
||||||
|
|||||||
Reference in New Issue
Block a user