Skip to content

Commit 61bba82

Browse files
Feature add host alias (#58)
* feature_add_hostAliases wip * wip * remove redis tgz * bump version to 5.0.7 * Update Chart.yaml Co-authored-by: Pierluigi Lenoci <[email protected]>
1 parent 8a81dcf commit 61bba82

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 5.2.1
2+
version: 5.3.0
33
apiVersion: v2
44
appVersion: 7.2.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/

helm/oauth2-proxy/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ Parameter | Description | Default
106106
`extraEnv` | key:value list of extra environment variables to give the binary | `[]`
107107
`extraVolumes` | list of extra volumes | `[]`
108108
`extraVolumeMounts` | list of extra volumeMounts | `[]`
109+
`hostAlias.enabled` | provide extra ip:hostname alias for network name resolution.
110+
`hostAlias.ip` | `ip` address `hostAliases.hostname` should resolve to.
111+
`hostAlias.hostname` | `hostname` associated to `hostAliases.ip`.
109112
`htpasswdFile.enabled` | enable htpasswd-file option | `false`
110113
`htpasswdFile.entries` | list of [SHA encrypted user:passwords](https://oauth2-proxy.github.io/oauth2-proxy/docs/configuration/overview#command-line-options) | `{}`
111114
`htpasswdFile.existingSecret` | existing Kubernetes secret to use for OAuth2 htpasswd file | `""`

helm/oauth2-proxy/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ spec:
3939
{{- toYaml . | nindent 8 }}
4040
{{- end }}
4141
serviceAccountName: {{ template "oauth2-proxy.serviceAccountName" . }}
42+
{{- if .Values.hostAlias.enabled }}
43+
hostAliases:
44+
- ip: {{ .Values.hostAlias.ip }}
45+
hostnames:
46+
- {{ .Values.hostAlias.hostname }}
47+
{{- end }}
4248
containers:
4349
- name: {{ .Chart.Name }}
4450
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"

helm/oauth2-proxy/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ extraVolumeMounts: []
147147

148148
priorityClassName: ""
149149

150+
# Host aliases, useful when working "on premise" where (public) DNS resolver does not know about my hosts.
151+
hostAlias:
152+
enabled: false
153+
# ip: "10.xxx.xxx.xxx"
154+
# hostname: "auth.example.com"
155+
150156
# Affinity for pod assignment
151157
# Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
152158
# affinity: {}

0 commit comments

Comments
 (0)