-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tde
committed
Feb 22, 2022
1 parent
8e47d6b
commit 413fd29
Showing
8 changed files
with
66 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test configuration file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
{{- define "configmap" -}} | ||
{{- if .Values.volumes.configMaps }} | ||
{{ $header := .Values.configFileCommonHeader | default "" }} | ||
{{ $root := . }} | ||
{{ range $cm := .Values.volumes.configMaps}} | ||
{{- if $cm.data }} | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ $cm.name }} | ||
data: | ||
{{- if $cm.data }} | ||
{{- range $filename, $content := $cm.data }} | ||
# property-like keys; each key maps to a simple value | ||
{{ $filename }}: {{ $content }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- if $cm.files }} | ||
{{- range $file := $cm.files }} | ||
{{ $file.destination }}: | | ||
{{ $header }} | ||
{{ $root.Files.Get $file.source }} | ||
{{- end}} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
{{- if .Values.imageCredentials }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: docker-credentials | ||
name: {{ include "microservice.name" . }}-docker-credentials | ||
namespace: {{ .Release.Namespace }} | ||
type: kubernetes.io/dockerconfigjson | ||
data: | ||
.dockerconfigjson: {{ template "docker_credentials_tpl" . }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,10 +28,16 @@ fullnameOverride: "" | |
## Secret must be manually created in the namespace. | ||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ | ||
## | ||
# imagePullSecrets: myRegistrKeySecretName | ||
imagePullSecrets: myRegistrKeySecretName | ||
imageCredentials: | ||
registry: https://index.docker.io/v1/ | ||
username: username | ||
password: password | ||
email: [email protected] | ||
|
||
|
||
# serviceAccount: | ||
serviceAccount: microservice-sa | ||
createServiceAccount: true | ||
rbac: true | ||
|
||
# Annotation for the Deployment | ||
annotations: {} | ||
|
@@ -68,7 +74,7 @@ readiness: | |
failureThreshold: 3 | ||
|
||
volumes: | ||
enabled: false | ||
enabled: true | ||
pvc: | ||
enabled: false | ||
existing_claim: | ||
|
@@ -79,12 +85,27 @@ volumes: | |
accessModes: | ||
- ReadWriteOnce | ||
|
||
configFileCommonHeader: commonValue | ||
configMaps: | ||
# - name: test | ||
# mountPath: /test | ||
# data: | ||
# test.conf: | | ||
# hello | ||
- name: test | ||
mountPath: /test | ||
data: | ||
test.conf: | | ||
hello | ||
- name: test-from-file | ||
mountPath: /test2 | ||
files: | ||
- source: config.conf | ||
destination: application.conf | ||
- name: test-mixed | ||
mountPath: /test3 | ||
data: | ||
test2.conf: | | ||
another hello | ||
files: | ||
- source: config.conf | ||
destination: application2.conf | ||
|
||
|
||
ingress: | ||
enabled: false | ||
|