Update settings dor ArgoCD #20

Merged
allanger merged 6 commits from refs/pull/20/head into main 2023-02-26 17:38:10 +00:00
4 changed files with 42 additions and 11 deletions
Showing only changes of commit bd34ef8d40 - Show all commits

View File

@ -1,26 +1,36 @@
ns:
enabled: true
name: gitea-service
istio: istio:
enabled: true enabled: true
hostname: git.badhouseplants.net istio:
- name: gitea-http
gateway: badhouseplants-net
hostname: git.badhouseplants.net
service: gitea-http
port: 3000
templates: templates:
- | - |
{{ range .Values.istio }}
apiVersion: networking.istio.io/v1beta1 apiVersion: networking.istio.io/v1beta1
kind: VirtualService kind: VirtualService
metadata: metadata:
name: gitea-http name: {{ .name }}
spec: spec:
gateways: gateways:
- istio-system/badhouseplants-net - "istio-system/{{ .gateway }}"
hosts: hosts:
- {{ .Values.hostname }} - {{ .hostname }}
http: http:
- match: - match:
- uri: - uri:
prefix: / prefix: /
route: route:
- destination: - destination:
host: gitea-http host: {{ .service }}
port: port:
number: 3000 number: {{ .port }}
{{ end }}
replicaCount: 1 replicaCount: 1
clusterDomain: cluster.local clusterDomain: cluster.local

8
common/values.ns.yaml Normal file
View File

@ -0,0 +1,8 @@
ns:
templates:
- |
apiVersion: v1
kind: Namespace
metadata:
name: {{ .Values.name }}

View File

@ -1,5 +1,5 @@
environments: environments:
badhouseplants: badhouseplants:
kubeContext: allanger@badhouseplants-microk8s # kubeContext: allanger@badhouseplants-microk8s
etersoft: etersoft:
kubeContext: allanger@etersoft kubeContext: allanger@etersoft

View File

@ -26,6 +26,9 @@ templates:
# ---------------------------- # ----------------------------
# -- Configs # -- Configs
# ---------------------------- # ----------------------------
default-common-values:
values:
- "{{ requiredEnv \"PWD\" }}/commmon/values.{{ .Release.Name }}.yaml"
default-env-values: default-env-values:
values: values:
- "{{ requiredEnv \"PWD\" }}/{{ .Environment.Name }}/values/values.{{ .Release.Name }}.yaml" - "{{ requiredEnv \"PWD\" }}/{{ .Environment.Name }}/values/values.{{ .Release.Name }}.yaml"
@ -40,6 +43,13 @@ templates:
- chart: bedag/raw - chart: bedag/raw
version: 2.0.0 version: 2.0.0
alias: istio alias: istio
namespace:
dependencies:
- chart: bedag/raw
version: 2.0.0
alias: ns
values:
- "{{ requiredEnv \"PWD\" }}/common/values.ns.yaml"
# ---------------------------- # ----------------------------
# -- Releases # -- Releases
# ---------------------------- # ----------------------------
@ -76,7 +86,9 @@ templates:
# ---------------------------- # ----------------------------
# -- Istio # -- Istio
# ---------------------------- # ----------------------------
istio-version: istio-common:
labels:
bundle: istio
version: 1.16.1 version: 1.16.1
istio-base: &istio-base istio-base: &istio-base
@ -84,20 +96,20 @@ templates:
chart: istio/base chart: istio/base
inherit: inherit:
- template: crd-management-hook - template: crd-management-hook
- template: istio-version - template: istio-common
istio-gateway: &istio-gateway istio-gateway: &istio-gateway
name: istio-ingressgateway name: istio-ingressgateway
chart: istio/gateway chart: istio/gateway
inherit: inherit:
- template: istio-version - template: istio-common
- template: default-env-values - template: default-env-values
istiod: &istiod istiod: &istiod
name: istiod name: istiod
chart: istio/istiod chart: istio/istiod
inherit: inherit:
- template: istio-version - template: istio-common
- template: default-env-values - template: default-env-values
# ---------------------------- # ----------------------------
@ -154,6 +166,7 @@ templates:
chart: gitea/gitea chart: gitea/gitea
version: 7.0.2 version: 7.0.2
inherit: inherit:
- template: namespace
- template: default-env-values - template: default-env-values
- template: default-env-secrets - template: default-env-secrets
- template: istio-resource - template: istio-resource