Skip to content
Snippets Groups Projects
Unverified Commit d874aca9 authored by groundhog2k's avatar groundhog2k Committed by GitHub
Browse files

Added pipeline and first base charts (#3)

* Added pipeline and first base charts

* Fixed trailing spaces

* Added new line char

* Fixed trailing spaces

* Fixed new line

* Fixed new line

* Fixed new line

* Fixed crlf

* Removed first line

* Fixed endings

* Added maintainer
parent fadfcb52
Branches
Tags
No related merge requests found
Showing
with 813 additions and 0 deletions
helm-extra-args: --timeout 600
check-version-increment: true
debug: true
name: Release helm chart
on:
push:
branches:
- master
paths:
- 'charts/**'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set git config
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Run Release
uses: helm/chart-releaser-action@master
env:
CR_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
name: Lint test charts
## Lint helm chart on every pull requests
on:
pull_request:
paths:
- 'charts/**'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Run lint
uses: helm/chart-testing-action@master
with:
command: lint
config: .github/test-config.yaml
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
apiVersion: v2
name: mariadb
description: A Helm chart for MariaDB on Kubernetes
type: application
maintainers:
- name: groundhog2k
# This is the chart version.
version: 0.1.0
# This is the version number of the application being deployed.
appVersion: 10.4.14
# MariaDB
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 10.4.14](https://img.shields.io/badge/AppVersion-10.4.14-informational?style=flat-square)
A Helm chart for MariaDB on Kubernetes
## TL;DR
```bash
$ helm repo add groundhog2k https://groundhog2k.github.io/helm-charts/
$ helm install my-release groundhog2k/mariadb
```
## Introduction
This chart uses the original [MariaDB image from Docker Hub](https://hub.docker.com/_/mariadb) to deploy a stateful MariaDB instance in a Kubernetes cluster.
It allows fully supports the deployment of the [ARM64v8 image of MariaDB](https://hub.docker.com/r/arm64v8/mariadb) on a ARM64 based Kubernetes cluster just by exchanging the existing `image.repository` value.
## Prerequisites
- Kubernetes 1.12+
- Helm 3.x
- PV provisioner support in the underlying infrastructure
## Installing the Chart
To install the chart with the release name `my-release`:
```bash
$ helm install my-release groundhog2k/mariadb
```
## Uninstalling the Chart
To uninstall/delete the `my-release` deployment:
```bash
$ helm uninstall my-release
```
## Common parameters
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| fullnameOverride | string | `""` | Fully override the deployment name |
| nameOverride | string | `""` | Partially override the deployment name |
## Deployment parameters
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| image.repository | string | `"mariadb"` | Image name |
| image.tag | string | `""` | Image tag |
| imagePullSecrets | list | `[]` | Image pull secrets |
| livenessProbe | object | `see values.yaml` | Liveness probe configuration |
| readinessProbe | object | `see values.yaml` | Readiness probe configuration |
| resources | object | `{}` | Resource limits and requests |
| nodeSelector."kubernetes.io/arch" | string | `"amd64"` | Deployment node selector |
| podAnnotations | object | `{}` | Additional pod annotations |
| podSecurityContext | object | `{}` | Pod security context |
| securityContext | object | `see values.yaml` | Container security context |
| env | list | `[]` | Additional container environmment variables |
| serviceAccount.annotations | object | `{}` | Additional service account annotations |
| serviceAccount.create | bool | `false` | Enable service account creation |
| serviceAccount.name | string | `""` | Name of the service account |
| affinity | object | `{}` | Affinity for pod assignment |
| tolerations | list | `[]` | Tolerations for pod assignment |
## Service paramters
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| service.port | int | `3306` | MariaDB service port |
## Storage parameters
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| storage.accessModes[0] | string | `"ReadWriteOnce"` | Storage access mode |
| storage.persistentVolumeClaimName | string | `""` | PVC name when existing storage volume should be used |
| storage.requestedSize | string | `""` | Size for new PVC, when no existing PVC is used |
| storage.className | string | `""` | Storage class name |
## MariaDB parameters
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| userDatabase | object | `{}` | Optional MariaDB user database |
| userDatabase.name | string | `""` | Name of the user database |
| userDatabase.user | string | `""` | User name with full access to user database|
| userDatabase.password | string | `""` | Password of created user (Random value if not specified) |
| settings.rootPassword | string | `nil` | MariaDB root password (Random value if not specified) |
| settings.arguments | string | `nil` | Additional arguments for mysqld (entrypoint process) |
| customConfig | string | `""` | Additional MariaDB custom configuration mounted as custom.cnf |
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "mariadb.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "mariadb.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "mariadb.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "mariadb.labels" -}}
helm.sh/chart: {{ include "mariadb.chart" . }}
{{ include "mariadb.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "mariadb.selectorLabels" -}}
app.kubernetes.io/name: {{ include "mariadb.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "mariadb.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "mariadb.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
{{- if .Values.customConfig }}
kind: ConfigMap
apiVersion: v1
metadata:
name: {{ include "mariadb.fullname" . }}
labels:
{{- include "mariadb.labels" . | nindent 4 }}
data:
custom.cnf: |-
{{- .Values.customConfig | nindent 4 }}
{{- end }}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "mariadb.fullname" . }}
labels:
{{- include "mariadb.labels" . | nindent 4 }}
stringData:
MYSQL_ROOT_PASSWORD: {{ .Values.settings.rootPassword | default (randAlphaNum 10) }}
{{- with .Values.userDatabase }}
MYSQL_DATABASE: {{ .name }}
MYSQL_USER: {{ .user }}
MYSQL_PASSWORD: {{ .password | default (randAlphaNum 10) }}
{{- end }}
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: {{ include "mariadb.fullname" . }}
labels:
{{- include "mariadb.labels" . | nindent 4 }}
spec:
clusterIP: None
ports:
- port: {{ .Values.service.port }}
targetPort: sql
protocol: TCP
name: sql
selector:
{{- include "mariadb.selectorLabels" . | nindent 4 }}
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "mariadb.serviceAccountName" . }}
labels:
{{- include "mariadb.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ include "mariadb.fullname" . }}
labels:
{{- include "mariadb.labels" . | nindent 4 }}
spec:
replicas: 1
serviceName: {{ include "mariadb.fullname" . }}
selector:
matchLabels:
{{- include "mariadb.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "mariadb.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "mariadb.serviceAccountName" . }}
{{- with .Values.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: sql
containerPort: 3306
protocol: TCP
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
exec:
command:
- bash
- -c
- mysqladmin status -uroot -p$MYSQL_ROOT_PASSWORD
{{- with .Values.livenessProbe }}
initialDelaySeconds: {{ .initialDelaySeconds }}
timeoutSeconds: {{ .timeoutSeconds }}
failureThreshold: {{ .failureThreshold }}
successThreshold: {{ .successThreshold }}
periodSeconds: {{ .periodSeconds }}
{{- end }}
{{- end }}
{{- if .Values.readinessProbe.enabled }}
readinessProbe:
exec:
command:
- bash
- -c
- mysqladmin status -uroot -p$MYSQL_ROOT_PASSWORD
{{- with .Values.readinessProbe }}
initialDelaySeconds: {{ .initialDelaySeconds }}
timeoutSeconds: {{ .timeoutSeconds }}
failureThreshold: {{ .failureThreshold }}
successThreshold: {{ .successThreshold }}
periodSeconds: {{ .periodSeconds }}
{{- end }}
{{- end }}
{{- with .Values.resources }}
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- mountPath: /var/lib/mysql
name: db-volume
- mountPath: /tmp
name: tmp-volume
- mountPath: /var/run/mysqld
name: tmp-volume
{{- if .Values.customConfig }}
- mountPath: /etc/mysql/conf.d
name: customConfig-volume
{{- end }}
{{- if .Values.settings.arguments }}
args:
{{- range .Values.settings.arguments }}
- {{ . }}
{{- end }}
{{- end }}
{{- with .Values.env }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
envFrom:
- secretRef:
name: {{ include "mariadb.fullname" . }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: tmp-volume
emptyDir: {}
{{- if .Values.customConfig }}
- name: customConfig-volume
configMap:
name: {{ include "mariadb.fullname" . }}
{{- end }}
{{- $fullname := include "mariadb.fullname" . }}
{{- with .Values.storage }}
{{- $createPvc := and (empty .persistentVolumeClaimName) .requestedSize }}
{{- if not $createPvc }}
- name: db-volume
{{- if .persistentVolumeClaimName }}
persistentVolumeClaim:
claimName: {{ .persistentVolumeClaimName }}
{{- else }}
emptyDir: {}
{{- end }}
{{- else }}
volumeClaimTemplates:
- metadata:
name: db-volume
spec:
{{- with .accessModes }}
accessModes:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- if .className }}
storageClassName: {{ .className }}
{{- end }}
resources:
requests:
storage: {{ .requestedSize }}
{{- end }}
{{- end }}
\ No newline at end of file
## Default values for MariaDB deployment
## MariaDB docker image
## use arm64v8/mariadb for the same image on ARM64v8
image:
repository: mariadb
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
## Pull secrets and name override options
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
## Optional service account
serviceAccount:
# Specifies whether a service account should be created
create: false
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
## Default node type for the image
## use arm64v8 for the arm64v8/mariadb image
nodeSelector:
kubernetes.io/arch: amd64
## Additional pod annotations
podAnnotations: {}
## Pod security options
podSecurityContext: {}
## Default security options to run MariaDB as non-root, read only container without privilege escalation
securityContext:
allowPrivilegeEscalation: false
privileged: false
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsGroup: 999
runAsUser: 999
## Default database service port (default MySQL/MariaDB port)
service:
port: 3306
## Resource limits and requests
resources: {}
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
tolerations: []
affinity: {}
## Default liveness probe
livenessProbe:
enabled: true
initialDelaySeconds: 120
timeoutSeconds: 5
failureThreshold: 3
successThreshold: 1
periodSeconds: 10
## Default readiness probe
readinessProbe:
enabled: true
initialDelaySeconds: 30
timeoutSeconds: 5
failureThreshold: 3
successThreshold: 1
periodSeconds: 10
## Additional environment variables
env: []
## Database configuration
settings:
## Arguments for the container entrypoint process
arguments:
# - --character-set-server=utf8mb4
# - --collation-server=utf8mb4_unicode_ci
## The root user password (default: a 10 char. alpahnumerical random password will be generated)
rootPassword:
## Optional user database which is created during first startup with user and password
userDatabase: {}
## Name of the user database
# name:
## Database user with full access rights
# user:
## Password of the database user (default: a 10 char. alpahnumerical random password will be generated)
# password:
## Optional custom configuration block that will be mounted as file in /etc/mysql/conf.d/custom.cnf
customConfig: |-
## Storage parameters
storage:
## Set persistentVolumenClaimName to reference an existing PVC
# persistentVolumeClaimName: <own-pvc-name>
## Alternative set requestedSize to define a size for a dynmaically created PVC
# requestedSize: <volume-size>
## the storage class name
# className:
## Default access mode (ReadWriteOnce)
accessModes:
- ReadWriteOnce
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
apiVersion: v2
name: postgres
description: A Helm chart for PostgreSQL on Kubernetes
type: application
maintainers:
- name: groundhog2k
# This is the chart version
version: 0.1.0
# This is the version number of the application being deployed.
appVersion: "12.4"
# PostgreSQL
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 12.4](https://img.shields.io/badge/AppVersion-12.4-informational?style=flat-square)
A Helm chart for PostgreSQL on Kubernetes
## TL;DR
```bash
$ helm repo add groundhog2k https://groundhog2k.github.io/helm-charts/
$ helm install my-release groundhog2k/postgres
```
## Introduction
This chart uses the original [PostgreSQL image from Docker Hub](https://hub.docker.com/_/postgres/) to deploy a stateful PostgreSQL instance in a Kubernetes cluster.
It allows fully supports the deployment of the [ARM64v8 image of PostgreSQL](https://hub.docker.com/r/arm64v8/postres/) on a ARM64 based Kubernetes cluster just by exchanging the existing `image.repository` value.
## Prerequisites
- Kubernetes 1.12+
- Helm 3.x
- PV provisioner support in the underlying infrastructure
## Installing the Chart
To install the chart with the release name `my-release`:
```bash
$ helm install my-release groundhog2k/postgres
```
## Uninstalling the Chart
To uninstall/delete the `my-release` deployment:
```bash
$ helm uninstall my-release
```
## Common parameters
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| fullnameOverride | string | `""` | Fully override the deployment name |
| nameOverride | string | `""` | Partially override the deployment name |
## Deployment parameters
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| image.repository | string | `"mariadb"` | Image name |
| image.tag | string | `""` | Image tag |
| imagePullSecrets | list | `[]` | Image pull secrets |
| livenessProbe | object | `see values.yaml` | Liveness probe configuration |
| readinessProbe | object | `see values.yaml` | Readiness probe configuration |
| resources | object | `{}` | Resource limits and requests |
| nodeSelector."kubernetes.io/arch" | string | `"amd64"` | Deployment node selector |
| podAnnotations | object | `{}` | Additional pod annotations |
| podSecurityContext | object | `see values.yaml` | Pod security context |
| securityContext | object | `see values.yaml` | Container security context |
| env | list | `[]` | Additional container environmment variables |
| serviceAccount.annotations | object | `{}` | Additional service account annotations |
| serviceAccount.create | bool | `false` | Enable service account creation |
| serviceAccount.name | string | `""` | Name of the service account |
| affinity | object | `{}` | |
| tolerations | list | `[]` | |
## Service paramters
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| service.port | int | `5432` | PostreSQL service port |
## Storage parameters
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| storage.accessModes[0] | string | `"ReadWriteOnce"` | Storage access mode |
| storage.persistentVolumeClaimName | string | `""` | PVC name when existing storage volume should be used |
| storage.requestedSize | string | `""` | Size for new PVC, when no existing PVC is used |
| storage.className | string | `""` | Storage class name |
## PostgreSQL parameters
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| arguments | string | `nil` | Arguments for the container entrypoint process |
| customConfig | string | `""` | Optional custom configuration block that will be mounted as file in /etc/postgresql/postgresql.conf |
| settings.authMethod | string | `"md5"` | Postgres database authentication method |
| settings.initDbArgs | string | `nil` | Optional init database arguments |
| settings.superuserPassword | string | `nil` | Password of superuser (Random value if not specified) |
| userDatabase | object | `{}` | Optional PostgreSQL user database |
| userDatabase.name | string | `""` | Name of the user database |
| userDatabase.user | string | `""` | User name with full access to user database|
| userDatabase.password | string | `""` | Password of created user (Random value if not specified) |
{{/*
Expand the name of the chart.
*/}}
{{- define "postgres.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "postgres.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "postgres.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "postgres.labels" -}}
helm.sh/chart: {{ include "postgres.chart" . }}
{{ include "postgres.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "postgres.selectorLabels" -}}
app.kubernetes.io/name: {{ include "postgres.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "postgres.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "postgres.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
{{- if or (.Values.customConfig) (.Values.userDatabase) }}
kind: ConfigMap
apiVersion: v1
metadata:
name: {{ include "postgres.fullname" . }}
labels:
{{- include "postgres.labels" . | nindent 4 }}
data:
{{- if .Values.customConfig }}
custom.cnf: |-
{{- .Values.database.customConfig | nindent 4 }}
{{- end }}
{{- with .Values.userDatabase }}
init-user-db.sh: |-
#!/bin/bash
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" -v USERDBNAME="$USERDB_NAME" -v USERDBUSER="$USERDB_USER" -v USERDBPASSWORD="'$USERDB_PASSWORD'" <<-EOSQL
CREATE USER :USERDBUSER WITH PASSWORD :USERDBPASSWORD;
CREATE DATABASE :USERDBNAME;
GRANT ALL PRIVILEGES ON DATABASE :USERDBNAME TO :USERDBUSER;
EOSQL
{{- end }}
{{- end }}
\ No newline at end of file
apiVersion: v1
kind: Secret
metadata:
name: {{ include "postgres.fullname" . }}
labels:
{{- include "postgres.labels" . | nindent 4 }}
stringData:
{{- with .Values.settings }}
POSTGRES_PASSWORD: {{ .superuserPassword | default (randAlphaNum 10) }}
POSTGRES_USER: "postgres"
POSTGRES_HOST_AUTH_METHOD: {{ .authMethod }}
{{- end }}
{{- with .Values.userDatabase }}
USERDB_PASSWORD: {{ .password | default (randAlphaNum 10) }}
USERDB_USER: {{ .user }}
USERDB_NAME: {{ .name }}
{{- end }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "postgres.fullname" . }}
labels:
{{- include "postgres.labels" . | nindent 4 }}
spec:
clusterIP: None
ports:
- port: {{ .Values.service.port }}
targetPort: postgres
protocol: TCP
name: postgres
selector:
{{- include "postgres.selectorLabels" . | nindent 4 }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment