[bitnami/kiam] Add hostAliases (#5250)

This commit is contained in:
Javier J. Salmerón-García
2021-01-27 09:46:59 +01:00
committed by GitHub
parent fb0e9f81cf
commit ef0ea0507b
6 changed files with 23 additions and 2 deletions

View File

@@ -23,4 +23,4 @@ name: kiam
sources: sources:
- https://github.com/bitnami/bitnami-docker-kiam - https://github.com/bitnami/bitnami-docker-kiam
- https://github.com/uswitch/kiam - https://github.com/uswitch/kiam
version: 0.2.4 version: 0.3.0

View File

@@ -97,6 +97,7 @@ The following tables lists the configurable parameters of the kiam chart and the
| `server.tlsFiles.cert` | Base64-encoded certificate to use with the container | `nil` | | `server.tlsFiles.cert` | Base64-encoded certificate to use with the container | `nil` |
| `server.tlsFiles.key` | Base64-encoded key to use with the container | `nil` | | `server.tlsFiles.key` | Base64-encoded key to use with the container | `nil` |
| `server.tlsCerts.certFileName` | Name of the certificate filename | `cert.pem` | | `server.tlsCerts.certFileName` | Name of the certificate filename | `cert.pem` |
| `server.hostAliases` | Add deployment host aliases | `[]` |
| `server.tlsCerts.keyFileName` | Name of the certificate filename | `key.pem` | | `server.tlsCerts.keyFileName` | Name of the certificate filename | `key.pem` |
| `server.tlsCerts.caFileName` | Name of the certificate filename | `ca.pem` | | `server.tlsCerts.caFileName` | Name of the certificate filename | `ca.pem` |
| `server.gatewayTimeoutCreation` | Timeout when creating the kiam gateway | `1s` | | `server.gatewayTimeoutCreation` | Timeout when creating the kiam gateway | `1s` |
@@ -157,6 +158,7 @@ The following tables lists the configurable parameters of the kiam chart and the
| `agent.extraArgs` | Extra arguments to add to the default kiam command | `[]` | | `agent.extraArgs` | Extra arguments to add to the default kiam command | `[]` |
| `agent.command` | Override kiam default command | `[]` | | `agent.command` | Override kiam default command | `[]` |
| `agent.args` | Override kiam default args | `[]` | | `agent.args` | Override kiam default args | `[]` |
| `agent.hostAliases` | Add deployment host aliases | `[]` |
| `agent.logLevel` | Logging level | `info` | | `agent.logLevel` | Logging level | `info` |
| `agent.sslCertHostPath` | Path to the host system SSL certificates (necessary for contacting the AWS metadata agent) | `/etc/ssl/certs` | | `agent.sslCertHostPath` | Path to the host system SSL certificates (necessary for contacting the AWS metadata agent) | `/etc/ssl/certs` |
| `agent.tlsFiles.ca` | Base64-encoded CA to use with the container | `nil` | | `agent.tlsFiles.ca` | Base64-encoded CA to use with the container | `nil` |
@@ -237,7 +239,7 @@ The following tables lists the configurable parameters of the kiam chart and the
| Parameter | Description | Default | | Parameter | Description | Default |
|---------------------------------------------------|------------------------------------------------------------------------------|--------------------------------------------------------------| |---------------------------------------------------|------------------------------------------------------------------------------|--------------------------------------------------------------|
| `agent.metrics.enabled` | Enable exposing kiam statistics | `false` | | `agent.metrics.enabled` | Enable exposing kiam statistics | `false` |
| `agent.metrics.port` | Service HTTP management port | `9990` | | `agent.metrics.port` | Service HTTP management port | `9990` |
| `agent.metrics.syncInterval` | Metrics synchronization interval statistics | `5s` | | `agent.metrics.syncInterval` | Metrics synchronization interval statistics | `5s` |
| `agent.metrics.annotations` | Annotations for enabling prometheus to access the metrics endpoints | `{prometheus.io/scrape: "true", prometheus.io/port: "9990"}` | | `agent.metrics.annotations` | Annotations for enabling prometheus to access the metrics endpoints | `{prometheus.io/scrape: "true", prometheus.io/port: "9990"}` |
| `agent.metrics.serviceMonitor.enabled` | Create ServiceMonitor Resource for scraping metrics using PrometheusOperator | `false` | | `agent.metrics.serviceMonitor.enabled` | Create ServiceMonitor Resource for scraping metrics using PrometheusOperator | `false` |

View File

@@ -30,6 +30,9 @@ spec:
{{- end }} {{- end }}
spec: spec:
{{- include "kiam.imagePullSecrets" . | nindent 6 }} {{- include "kiam.imagePullSecrets" . | nindent 6 }}
{{- if .Values.agent.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.agent.hostAliases "context" $) | nindent 8 }}
{{- end }}
serviceAccountName: {{ template "kiam.agent.serviceAccountName" . }} serviceAccountName: {{ template "kiam.agent.serviceAccountName" . }}
dnsPolicy: {{ .Values.agent.dnsPolicy }} dnsPolicy: {{ .Values.agent.dnsPolicy }}
hostNetwork: {{ .Values.agent.useHostNetwork }} hostNetwork: {{ .Values.agent.useHostNetwork }}

View File

@@ -30,6 +30,9 @@ spec:
{{- end }} {{- end }}
spec: spec:
{{- include "kiam.imagePullSecrets" . | nindent 6 }} {{- include "kiam.imagePullSecrets" . | nindent 6 }}
{{- if .Values.server.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.server.hostAliases "context" $) | nindent 8 }}
{{- end }}
serviceAccountName: {{ template "kiam.server.serviceAccountName" . }} serviceAccountName: {{ template "kiam.server.serviceAccountName" . }}
dnsPolicy: {{ .Values.server.dnsPolicy }} dnsPolicy: {{ .Values.server.dnsPolicy }}
hostNetwork: {{ .Values.server.useHostNetwork }} hostNetwork: {{ .Values.server.useHostNetwork }}

View File

@@ -31,6 +31,9 @@ spec:
{{- end }} {{- end }}
spec: spec:
{{- include "kiam.imagePullSecrets" . | nindent 6 }} {{- include "kiam.imagePullSecrets" . | nindent 6 }}
{{- if .Values.server.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.server.hostAliases "context" $) | nindent 8 }}
{{- end }}
serviceAccountName: {{ template "kiam.server.serviceAccountName" . }} serviceAccountName: {{ template "kiam.server.serviceAccountName" . }}
dnsPolicy: {{ .Values.server.dnsPolicy }} dnsPolicy: {{ .Values.server.dnsPolicy }}
hostNetwork: {{ .Values.server.useHostNetwork }} hostNetwork: {{ .Values.server.useHostNetwork }}

View File

@@ -91,6 +91,11 @@ server:
## ##
resourceType: daemonset resourceType: daemonset
## Deployment pod host aliases
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
##
hostAliases: []
## Whether the kiam server should use host network ## Whether the kiam server should use host network
## ##
useHostNetwork: false useHostNetwork: false
@@ -443,6 +448,11 @@ agent:
## ##
allowRouteRegExp: allowRouteRegExp:
## Deployment pod host aliases
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
##
hostAliases: []
## Host networking settings ## Host networking settings
## ##
containerPort: 8183 containerPort: 8183