add support to expose via NodePort for vault, argoCD and Grafana
This commit is contained in:
13
config.yaml
13
config.yaml
@@ -140,9 +140,9 @@ modules:
|
|||||||
grafana:
|
grafana:
|
||||||
enabled: true
|
enabled: true
|
||||||
expose:
|
expose:
|
||||||
type: ingress
|
type: ingress # ingress or NodePort
|
||||||
|
|
||||||
domain: grafana.disk.lt.t1.cloud
|
domain: grafana.disk.lt.t1.cloud
|
||||||
|
node_port_http: 30007
|
||||||
|
|
||||||
tls:
|
tls:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -155,9 +155,12 @@ modules:
|
|||||||
|
|
||||||
argo_cd:
|
argo_cd:
|
||||||
expose:
|
expose:
|
||||||
type: ingress
|
type: ingress # ingress or NodePort
|
||||||
domain: argocd.disk.lt.t1.cloud
|
domain: argocd.disk.lt.t1.cloud
|
||||||
|
|
||||||
|
node_port_http: 30005
|
||||||
|
node_port_https: 30006
|
||||||
|
|
||||||
tls:
|
tls:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
@@ -196,7 +199,7 @@ modules:
|
|||||||
secrets_storage:
|
secrets_storage:
|
||||||
enabled: true
|
enabled: true
|
||||||
expose:
|
expose:
|
||||||
type: ingress # NodePort
|
type: ingress # ingress or NodePort
|
||||||
domain: vault.disk.lt.t1.cloud
|
domain: vault.disk.lt.t1.cloud
|
||||||
node_port: 30004
|
node_port: 30004
|
||||||
|
|
||||||
@@ -223,7 +226,7 @@ modules:
|
|||||||
registry:
|
registry:
|
||||||
enabled: true
|
enabled: true
|
||||||
expose:
|
expose:
|
||||||
type: ingress # ingress or NodePort
|
type: ingress # ingress or nodePort
|
||||||
# if expose_type is "ingress"
|
# if expose_type is "ingress"
|
||||||
domain: harbor.disk.lt.t1.cloud
|
domain: harbor.disk.lt.t1.cloud
|
||||||
|
|
||||||
|
|||||||
@@ -3585,6 +3585,7 @@ releases:
|
|||||||
enabled: true
|
enabled: true
|
||||||
serviceMonitor: true
|
serviceMonitor: true
|
||||||
domain: &grafanaDomain grafana.disk.lt.t1.cloud
|
domain: &grafanaDomain grafana.disk.lt.t1.cloud
|
||||||
|
serviceNodePort: 30007
|
||||||
image:
|
image:
|
||||||
repository: grafana/grafana
|
repository: grafana/grafana
|
||||||
tag: 10.4.1
|
tag: 10.4.1
|
||||||
@@ -3649,7 +3650,7 @@ releases:
|
|||||||
exporters: [otlphttp]
|
exporters: [otlphttp]
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: false
|
||||||
accountEmail: reversstorm@gmail.com
|
accountEmail: reversstorm@gmail.com
|
||||||
class: nginx
|
class: nginx
|
||||||
annotations:
|
annotations:
|
||||||
@@ -4205,7 +4206,7 @@ releases:
|
|||||||
server.insecure: true
|
server.insecure: true
|
||||||
|
|
||||||
secret:
|
secret:
|
||||||
argocdServerAdminPassword: $2a$10$uCcC.iMBL3IXOHeIB/HSLOvB8WpZprJPA4dEmaNjU4wmDbPXxwMvK
|
argocdServerAdminPassword: $2a$10$AORf9Nnyuc.XVCI2XvmVFuU6mo5TMMert83XfUCjepoIZBETe9hWe
|
||||||
|
|
||||||
repositories:
|
repositories:
|
||||||
# add default helm-repository from harbor
|
# add default helm-repository from harbor
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ type Cicd struct {
|
|||||||
Expose struct {
|
Expose struct {
|
||||||
Type string `yaml:"type"`
|
Type string `yaml:"type"`
|
||||||
Domain string `yaml:"domain"`
|
Domain string `yaml:"domain"`
|
||||||
|
NodePortHttp int `yaml:"node_port_http" env-default:"30005"`
|
||||||
|
NodePortHttps int `yaml:"node_port_https" env-default:"30006"`
|
||||||
Tls struct {
|
Tls struct {
|
||||||
Enabled bool `yaml:"enabled"`
|
Enabled bool `yaml:"enabled"`
|
||||||
} `yaml:"tls"`
|
} `yaml:"tls"`
|
||||||
|
|||||||
@@ -138,6 +138,7 @@ type Visualization struct {
|
|||||||
Expose struct {
|
Expose struct {
|
||||||
Type string `yaml:"type" env-default:"ingress"`
|
Type string `yaml:"type" env-default:"ingress"`
|
||||||
Domain string `yaml:"domain" env-default:""`
|
Domain string `yaml:"domain" env-default:""`
|
||||||
|
NodePortHttp int `yaml:"node_port_http" env-default:"30007"`
|
||||||
Tls struct {
|
Tls struct {
|
||||||
Enabled bool `yaml:"enabled"`
|
Enabled bool `yaml:"enabled"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,12 @@
|
|||||||
server:
|
server:
|
||||||
certificateSecret:
|
certificateSecret:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
{{- if eq .Modules.Cicd.ArgoCd.Expose.Type "NodePort" }}
|
||||||
|
service:
|
||||||
|
type: "NodePort"
|
||||||
|
nodePortHttp: {{ .Modules.Cicd.ArgoCd.Expose.NodePortHttp }}
|
||||||
|
nodePortHttps: {{ .Modules.Cicd.ArgoCd.Expose.NodePortHttps }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Modules.Cicd.ArgoCd.Ha.Enabled }}
|
{{- if .Modules.Cicd.ArgoCd.Ha.Enabled }}
|
||||||
{{- if .Modules.Cicd.ArgoCd.Ha.Autoscaling }}
|
{{- if .Modules.Cicd.ArgoCd.Ha.Autoscaling }}
|
||||||
autoscaling:
|
autoscaling:
|
||||||
|
|||||||
@@ -208,6 +208,10 @@
|
|||||||
enabled: {{ and .Modules.Observability.Enabled .Modules.Observability.Visualization.Grafana.Enabled }}
|
enabled: {{ and .Modules.Observability.Enabled .Modules.Observability.Visualization.Grafana.Enabled }}
|
||||||
serviceMonitor: {{ .Modules.Observability.Monitoring.Enabled }}
|
serviceMonitor: {{ .Modules.Observability.Monitoring.Enabled }}
|
||||||
domain: &grafanaDomain {{ .Modules.Observability.Visualization.Grafana.Expose.Domain }}
|
domain: &grafanaDomain {{ .Modules.Observability.Visualization.Grafana.Expose.Domain }}
|
||||||
|
{{- if eq .Modules.Observability.Visualization.Grafana.Expose.Type "NodePort" }}
|
||||||
|
serviceNodePort: {{ .Modules.Observability.Visualization.Grafana.Expose.NodePortHttp }}
|
||||||
|
|
||||||
|
{{- end }}
|
||||||
image:
|
image:
|
||||||
repository: {{ .Modules.Observability.Visualization.Grafana.Image }}
|
repository: {{ .Modules.Observability.Visualization.Grafana.Image }}
|
||||||
tag: {{ .Modules.Observability.Visualization.Grafana.Tag }}
|
tag: {{ .Modules.Observability.Visualization.Grafana.Tag }}
|
||||||
@@ -281,6 +285,8 @@
|
|||||||
ingress:
|
ingress:
|
||||||
{{- if eq .Modules.Observability.Visualization.Grafana.Expose.Type "ingress" }}
|
{{- if eq .Modules.Observability.Visualization.Grafana.Expose.Type "ingress" }}
|
||||||
enabled: true
|
enabled: true
|
||||||
|
{{- else }}
|
||||||
|
enabled: false
|
||||||
{{- end }}
|
{{- end }}
|
||||||
accountEmail: {{ .Modules.Additional.CertManager.AccountEmail }}
|
accountEmail: {{ .Modules.Additional.CertManager.AccountEmail }}
|
||||||
class: {{ .Modules.Additional.Ingress.Type }}
|
class: {{ .Modules.Additional.Ingress.Type }}
|
||||||
|
|||||||
Reference in New Issue
Block a user