-
Notifications
You must be signed in to change notification settings - Fork 60
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
Showing
234 changed files
with
53,130 additions
and
1,750 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
54 changes: 54 additions & 0 deletions
54
packages/apps/kubernetes/templates/helmreleases/cert-manager-crds.yaml
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,54 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: {{ .Release.Name }}-cert-manager-crds | ||
labels: | ||
cozystack.io/repository: system | ||
coztstack.io/target-cluster-name: {{ .Release.Name }} | ||
spec: | ||
interval: 5m | ||
releaseName: cert-manager-crds | ||
chart: | ||
spec: | ||
chart: cozy-cert-manager-crds | ||
reconcileStrategy: Revision | ||
sourceRef: | ||
kind: HelmRepository | ||
name: cozystack-system | ||
namespace: cozy-system | ||
kubeConfig: | ||
secretRef: | ||
name: {{ .Release.Name }}-kubeconfig | ||
targetNamespace: cozy-cert-manager-crds | ||
storageNamespace: cozy-cert-manager-crds | ||
install: | ||
createNamespace: true | ||
remediation: | ||
retries: -1 | ||
upgrade: | ||
remediation: | ||
retries: -1 | ||
{{- if .Values.addons.certManager.valuesOverride }} | ||
valuesFrom: | ||
- kind: Secret | ||
name: {{ .Release.Name }}-cert-manager-crds-values-override | ||
valuesKey: values | ||
{{- end }} | ||
|
||
dependsOn: | ||
{{- if lookup "helm.toolkit.fluxcd.io/v2" "HelmRelease" .Release.Namespace .Release.Name }} | ||
- name: {{ .Release.Name }} | ||
namespace: {{ .Release.Namespace }} | ||
{{- end }} | ||
- name: {{ .Release.Name }}-cilium | ||
namespace: {{ .Release.Namespace }} | ||
{{- if .Values.addons.certManager.valuesOverride }} | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ .Release.Name }}-cert-manager-crds-values-override | ||
stringData: | ||
values: | | ||
{{- toYaml .Values.addons.certManager.valuesOverride | nindent 4 }} | ||
{{- 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
105 changes: 105 additions & 0 deletions
105
packages/apps/kubernetes/templates/helmreleases/monitoring-agents.yaml
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,105 @@ | ||
{{- $myNS := lookup "v1" "Namespace" "" .Release.Namespace }} | ||
{{- $targetTenant := index $myNS.metadata.annotations "namespace.cozystack.io/monitoring" }} | ||
{{- if .Values.addons.monitoringAgents.enabled }} | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: {{ .Release.Name }}-monitoring-agents | ||
labels: | ||
cozystack.io/repository: system | ||
coztstack.io/target-cluster-name: {{ .Release.Name }} | ||
spec: | ||
interval: 5m | ||
releaseName: cozy-monitoring-agents | ||
chart: | ||
spec: | ||
chart: cozy-monitoring-agents | ||
reconcileStrategy: Revision | ||
sourceRef: | ||
kind: HelmRepository | ||
name: cozystack-system | ||
namespace: cozy-system | ||
kubeConfig: | ||
secretRef: | ||
name: {{ .Release.Name }}-kubeconfig | ||
targetNamespace: cozy-monitoring-agents | ||
storageNamespace: cozy-monitoring-agents | ||
install: | ||
createNamespace: true | ||
timeout: "300s" | ||
remediation: | ||
retries: -1 | ||
upgrade: | ||
remediation: | ||
retries: -1 | ||
dependsOn: | ||
{{- if lookup "helm.toolkit.fluxcd.io/v2" "HelmRelease" .Release.Namespace .Release.Name }} | ||
- name: {{ .Release.Name }} | ||
namespace: {{ .Release.Namespace }} | ||
{{- end }} | ||
- name: {{ .Release.Name }}-cilium | ||
namespace: {{ .Release.Namespace }} | ||
- name: {{ .Release.Name }}-cozy-victoria-metrics-operator | ||
namespace: {{ .Release.Namespace }} | ||
values: | ||
vmagent: | ||
externalLabels: | ||
cluster: {{ .Release.Name }} | ||
tenant: {{ $targetTenant }} | ||
remoteWrite: | ||
url: http://vminsert-shortterm.{{ $targetTenant }}.svc:8480/insert/0/prometheus | ||
|
||
fluent-bit: | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
daemonSetVolumes: | ||
- name: varlog | ||
hostPath: | ||
path: /var/log | ||
- name: varlibdockercontainers | ||
hostPath: | ||
path: /var/lib/docker/containers | ||
daemonSetVolumeMounts: | ||
- name: varlog | ||
mountPath: /var/log | ||
- name: varlibdockercontainers | ||
mountPath: /var/lib/docker/containers | ||
readOnly: true | ||
config: | ||
outputs: | | ||
[OUTPUT] | ||
Name http | ||
Match kube.* | ||
Host vlogs-generic.{{ $targetTenant }}.svc | ||
port 9428 | ||
compress gzip | ||
uri /insert/jsonline?_stream_fields=stream,kubernetes_pod_name,kubernetes_container_name,kubernetes_namespace_name&_msg_field=log&_time_field=date | ||
format json_lines | ||
json_date_format iso8601 | ||
header AccountID 0 | ||
header ProjectID 0 | ||
filters: | | ||
[FILTER] | ||
Name kubernetes | ||
Match kube.* | ||
Merge_Log On | ||
Keep_Log On | ||
K8S-Logging.Parser On | ||
K8S-Logging.Exclude On | ||
[FILTER] | ||
Name nest | ||
Match * | ||
Wildcard pod_name | ||
Operation lift | ||
Nested_under kubernetes | ||
Add_prefix kubernetes_ | ||
[FILTER] | ||
Name modify | ||
Match * | ||
Add tenant {{ $targetTenant }} | ||
[FILTER] | ||
Name modify | ||
Match * | ||
Add cluster {{ .Release.Name }} | ||
{{- end }} |
41 changes: 41 additions & 0 deletions
41
packages/apps/kubernetes/templates/helmreleases/victoria-metrics-operator.yaml
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,41 @@ | ||
{{- if .Values.addons.monitoringAgents.enabled }} | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: {{ .Release.Name }}-cozy-victoria-metrics-operator | ||
labels: | ||
cozystack.io/repository: system | ||
coztstack.io/target-cluster-name: {{ .Release.Name }} | ||
spec: | ||
interval: 5m | ||
releaseName: cozy-victoria-metrics-operator | ||
chart: | ||
spec: | ||
chart: cozy-victoria-metrics-operator | ||
reconcileStrategy: Revision | ||
sourceRef: | ||
kind: HelmRepository | ||
name: cozystack-system | ||
namespace: cozy-system | ||
kubeConfig: | ||
secretRef: | ||
name: {{ .Release.Name }}-kubeconfig | ||
targetNamespace: cozy-victoria-metrics-operator | ||
storageNamespace: cozy-victoria-metrics-operator | ||
install: | ||
createNamespace: true | ||
remediation: | ||
retries: -1 | ||
upgrade: | ||
remediation: | ||
retries: -1 | ||
dependsOn: | ||
{{- if lookup "helm.toolkit.fluxcd.io/v2" "HelmRelease" .Release.Namespace .Release.Name }} | ||
- name: {{ .Release.Name }} | ||
namespace: {{ .Release.Namespace }} | ||
{{- end }} | ||
- name: {{ .Release.Name }}-cilium | ||
namespace: {{ .Release.Namespace }} | ||
- name: {{ .Release.Name }}-cert-manager-crds | ||
namespace: {{ .Release.Namespace }} | ||
{{- 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
File renamed without changes
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,2 +1,2 @@ | ||
cozystack: | ||
image: ghcr.io/aenix-io/cozystack/cozystack:v0.17.1@sha256:7c83bf1a31096cecc78da2a10b0bb4e2c1723bdcbfd79cd523516d737fa1f952 | ||
image: kklinch0/cozystack:12.3.9@sha256:952e757f12e49e064763e6e6d3814b69bf0ea383abe418c18cddcc727acf7f58 |
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
Oops, something went wrong.