Start refactoring
This commit is contained in:
20
helmfile/common/values.certificate.yaml
Normal file
20
helmfile/common/values.certificate.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
certificate:
|
||||
templates:
|
||||
- |
|
||||
{{ range .Values.certificate }}
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: {{ .name }}
|
||||
spec:
|
||||
dnsNames:
|
||||
{{- range .dnsNames }}
|
||||
- {{ . | quote }}
|
||||
{{- end }}
|
||||
issuerRef:
|
||||
kind: {{ .issuer.kind }}
|
||||
name: {{ .issuer.name }}
|
||||
secretName: {{ .secretName }}
|
||||
{{ end }}
|
16
helmfile/common/values.database.yaml
Normal file
16
helmfile/common/values.database.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
ext-database:
|
||||
templates:
|
||||
- |
|
||||
---
|
||||
apiVersion: kinda.rocks/v1beta1
|
||||
kind: Database
|
||||
metadata:
|
||||
name: "{{ .Values.name }}"
|
||||
spec:
|
||||
secretName: "{{ .Values.name }}-creds"
|
||||
instance: "{{ .Values.instance }}"
|
||||
deletionProtected: false
|
||||
backup:
|
||||
enable: false
|
||||
cron: 0 0 * * *
|
16
helmfile/common/values.istio-gateway.yaml
Normal file
16
helmfile/common/values.istio-gateway.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
istio-gateway:
|
||||
templates:
|
||||
- |
|
||||
{{ range .Values.gateways }}
|
||||
---
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: Gateway
|
||||
metadata:
|
||||
name: {{ .name }}
|
||||
spec:
|
||||
selector:
|
||||
istio: ingressgateway
|
||||
servers:
|
||||
{{ toYaml .servers | indent 4 }}
|
||||
{{ end }}
|
36
helmfile/common/values.istio.yaml
Normal file
36
helmfile/common/values.istio.yaml
Normal file
@ -0,0 +1,36 @@
|
||||
---
|
||||
istio:
|
||||
templates:
|
||||
- |
|
||||
{{ range .Values.istio }}
|
||||
---
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: {{ .name }}
|
||||
spec:
|
||||
gateways:
|
||||
- "{{ .gateway }}"
|
||||
hosts:
|
||||
- {{ .hostname | quote }}
|
||||
{{- if eq .kind "http" }}
|
||||
http:
|
||||
- match:
|
||||
- uri:
|
||||
prefix: /
|
||||
route:
|
||||
- destination:
|
||||
host: {{ .service }}
|
||||
port:
|
||||
number: {{ .port }}
|
||||
{{- else if eq .kind "tcp" }}
|
||||
tcp:
|
||||
- match:
|
||||
- port: {{ .port_match }}
|
||||
route:
|
||||
- destination:
|
||||
host: {{ .service }}
|
||||
port:
|
||||
number: {{ .port }}
|
||||
{{ end }}
|
||||
{{ end }}
|
4
helmfile/common/values.metrics-server.yaml
Normal file
4
helmfile/common/values.metrics-server.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiService:
|
||||
insecureSkipTLSVerify: true
|
||||
args:
|
||||
- --kubelet-insecure-tls
|
8
helmfile/common/values.ns.yaml
Normal file
8
helmfile/common/values.ns.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
ns:
|
||||
templates:
|
||||
- |
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: {{ .Values.name }}
|
||||
|
16
helmfile/common/values.service-monitor.yaml
Normal file
16
helmfile/common/values.service-monitor.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
service-monitor:
|
||||
templates:
|
||||
- |
|
||||
{{ range .Values.service-monitor.resources }}
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ .name }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ .label.app }}
|
||||
endpoints:
|
||||
- port: {{ .endpoints.port }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user