volumes
This commit is contained in:
1 parent
a8468619f6
commit
1550a2395c
5 files changed
+34
-53
No files matched your search
@@ -72,4 +72,18 @@ function run-template() {
|
||||
popd &> /dev/null
|
||||
}
|
||||
|
||||
function run-template-compose-app() {
|
||||
:
|
||||
:
|
||||
pushd $ROOT_FOLDER/charts/compose-app
|
||||
helm template -f values.yaml -f $ROOT_FOLDER/charts/apps/argoapps/compose-apps/$1 . > $ROOT_FOLDER/.tmp/compose-app-$1
|
||||
echo $ROOT_FOLDER/.tmp/compose-app-$1
|
||||
# if [ $? -ne 0 ]; then
|
||||
# echo "Error: helm template failed"
|
||||
# ehco $out
|
||||
# exit 1
|
||||
# fi
|
||||
# echo $out | bat -l yaml
|
||||
}
|
||||
|
||||
start_cli $@
|
||||
@@ -16,8 +16,8 @@ spec:
|
||||
app: {{ $name }}
|
||||
spec:
|
||||
{{ if $data.volumes -}}
|
||||
{{ range $volname, $_ := $data.volumes }}
|
||||
volumes:
|
||||
{{ range $volname, $_ := $data.volumes }}
|
||||
- name: "{{ $volname }}"
|
||||
persistentVolumeClaim:
|
||||
claimName: "{{ $volname }}"
|
||||
@@ -33,8 +33,8 @@ spec:
|
||||
protocol: {{ $p.protocol | default "TCP" | quote }}
|
||||
{{ end }}
|
||||
{{ if $data.volumes }}
|
||||
{{ range $volname, $mountPath := $data.volumes }}
|
||||
volumeMounts:
|
||||
{{ range $volname, $mountPath := $data.volumes }}
|
||||
- name: {{ $volname | quote }}
|
||||
mountPath: {{ $mountPath | quote }}
|
||||
{{ end }}
|
||||
|
||||
@@ -1,3 +1,18 @@
|
||||
global:
|
||||
dns:
|
||||
internalPrefix: k3s.local
|
||||
primary:
|
||||
domain: "bob.cat"
|
||||
root: ""
|
||||
secondary:
|
||||
domain: "tod.cat"
|
||||
root: "gr"
|
||||
tls:
|
||||
acmeServer: "http://acme"
|
||||
enabled: true
|
||||
issuer: "issue"
|
||||
skipTLSVerify: true
|
||||
useWildCard: true
|
||||
services: []
|
||||
|
||||
volumes: {}
|
||||
@@ -8,4 +23,5 @@ externalSecrets:
|
||||
generators: {}
|
||||
secrets: {}
|
||||
|
||||
ingress: {}
|
||||
ingress: {}
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
repositories:
|
||||
- name: prometheus-community
|
||||
url: https://prometheus-community.github.io/helm-charts
|
||||
- name: grafana
|
||||
url: https://grafana.github.io/helm-charts
|
||||
- name: external-secrets
|
||||
url: https://charts.external-secrets.io
|
||||
- name: metallb
|
||||
url: https://metallb.github.io/metallb
|
||||
# helm install metallb
|
||||
releases:
|
||||
- name: external-secrets
|
||||
namespace: plugin-external-secrets
|
||||
chart: external-secrets/external-secrets
|
||||
version: "0.11.0"
|
||||
# - name: metallb
|
||||
# namespace: plugin-metallb
|
||||
# chart: metallb/metallb
|
||||
# version: "0.14.9"
|
||||
# - name: plugin-infrastructure
|
||||
# namespace: metallb
|
||||
# chart: ./k8s/infrastructure
|
||||
# values:
|
||||
# - ./k8s/infrastructure/values.yaml
|
||||
# needs:
|
||||
# - plugin-metallb/metallb
|
||||
# - plugin-external-secrets/external-secrets
|
||||
# - name: loki
|
||||
# namespace: plugin-monitoring
|
||||
# chart: grafana/loki-stack
|
||||
# version: "2.10.2"
|
||||
# values:
|
||||
# - helmfile/values-loki-stack.yaml
|
||||
# - name: kube-prometheus-stack
|
||||
# namespace: plugin-monitoring
|
||||
# chart: prometheus-community/kube-prometheus-stack
|
||||
# version: "68.2.1"
|
||||
# values:
|
||||
# - helmfile/values-kube-prometheus-stack.yaml
|
||||
# needs:
|
||||
# - plugin-monitoring/prometheus-operator-crds
|
||||
# - name: infra
|
||||
# chart: ./charts/infra
|
||||
# namespace: default
|
||||
# values:
|
||||
# - charts/infra/values.yaml
|
||||
# - charts/infra/environments/sibli-gcp-values.yaml
|
||||
# needs:
|
||||
# - plugin-monitoring/kube-prometheus-stack
|
||||
# - plugin-external-secrets/external-secrets
|
||||
@@ -39,6 +39,7 @@ variable "globals" {
|
||||
timezone = string
|
||||
|
||||
dns = object({
|
||||
internalPrefix = string
|
||||
primary = object({
|
||||
domain = string
|
||||
root = optional(string, "")
|
||||
|
||||
Reference in new issue
Block a user