Compare commits

...

57 commits

Author SHA1 Message Date
0604e5b575 chore: update helm release argo-cd to v7.4.3 2024-08-14 09:23:41 +02:00
c82b80a998 chore: update helm release argo-cd to v7.4.2 2024-08-14 09:23:41 +02:00
40384212ec chore: update helm release argo-cd to v7.4.1 2024-08-14 09:23:41 +02:00
9a67d25386 chore: update dependency k3s-io/k3s to v1.30.3+k3s1 2024-08-14 09:23:41 +02:00
24a72326f4 chore: update helm release argo-cd to v7.3.11 2024-08-14 09:23:41 +02:00
62191620e9 chore: update helm release argo-cd to v7.3.10 2024-08-14 09:23:41 +02:00
2f743da4a4 chore: update helm release argo-cd to v7.3.9 2024-08-14 09:23:41 +02:00
16857fc498 chore: update helm release argo-cd to v7.3.8 2024-08-14 09:23:41 +02:00
0f6706e975 chore: update helm release argo-cd to v7.3.6 2024-08-14 09:23:41 +02:00
f5238a882f chore: update helm release ingress-nginx to 4.11.* 2024-08-14 09:23:41 +02:00
19f1426176 chore: update helm release argo-cd to v7.3.4 2024-08-14 09:23:41 +02:00
5465481d63 chore: update dependency k3s-io/k3s to v1.30.2+k3s1 2024-08-14 09:23:41 +02:00
9075198e78 chore: update helm release argo-cd to v7.3.1 2024-08-14 09:23:41 +02:00
50fb295b15 chore: update helm release argo-cd to v7.2.0 2024-08-14 09:23:41 +02:00
571b2e150e feat(zabbix-proxy): update helm chart repository to v7 2024-08-14 09:23:41 +02:00
c44c8dff57 chore: update helm release argo-cd to v7.1.5 2024-08-14 09:23:41 +02:00
c23cf23b50 chore: update helm release argo-cd to v7.1.4 2024-08-14 09:23:41 +02:00
bf4519bd77 chore: update helm release argo-cd to v7.1.2 2024-08-14 09:23:41 +02:00
2dc99cc971 break(cert-manager): adjust chart values for CRDs 2024-08-14 09:23:41 +02:00
a52797a5f2 chore: update helm release cert-manager to 1.15.* 2024-08-14 09:23:41 +02:00
40202745db chore: update helm release argo-cd to v7 2024-08-14 09:23:41 +02:00
a88c2c8c03 chore: update dependency k3s-io/k3s to v1.30.1+k3s1 2024-08-14 09:23:41 +02:00
63bdf27ef7 chore: update helm release argo-cd to v6.11.1 2024-08-14 09:23:41 +02:00
7a4402a775 chore: update dependency k3s-io/k3s to v1.30.0+k3s1 2024-08-14 09:23:41 +02:00
d9f4f6aa09 chore: update helm release argo-cd to v6.9.2 2024-08-14 09:23:41 +02:00
11e13ed5d3 chore: update helm release argo-cd to v6.8.0 2024-08-14 09:23:41 +02:00
06c0b90ee0 chore: update helm release argo-cd to v6.7.18 2024-08-14 09:23:41 +02:00
fe9166fbea chore: update dependency k3s-io/k3s to v1.29.4+k3s1 2024-08-14 09:23:41 +02:00
07507b276c chore: update helm release argo-cd to v6.7.15 2024-08-14 09:23:41 +02:00
e8df949f2d fix: consistent jsonnet format for renovate 2024-08-14 09:23:41 +02:00
59ed1f53e5 chore: update helm release argo-cd to v6.7.14 2024-08-14 09:23:41 +02:00
5fcd757adb feat(argocd): force-set server replicas 2024-08-14 09:23:41 +02:00
781a77555a chore: update helm release argo-cd to v6.7.11 2024-08-14 09:23:41 +02:00
47304c84db chore: update helm release argo-cd to v6.7.10 2024-08-14 09:23:41 +02:00
2d9de25e2e fix: downgrade k3s to v1.29.2+k3s1
v1.29.3+k3s1 breaks patching the ingress controller

This reverts commit 638f1a7a46.
2024-08-14 09:23:41 +02:00
9b8adc3958 fix(init): update argocd app definition format
update project an application definition based an this (mostly useless)
changelog entry:

> make the chart use maps instead of lists

Usefull hints on the new structure can be found in then git diff:
https://github.com/argoproj/argo-helm/compare/argo-events-2.4.4...argocd-apps-2.0.0

or in the new valuesContent:
https://artifacthub.io/packages/helm/argo/argocd-apps?modal=values
2024-08-14 09:23:41 +02:00
3cc0d6665e chore: update helm release argocd-apps to v2 2024-08-14 09:23:41 +02:00
71d8d42904 chore: update helm release argo-cd to v6.7.9 2024-08-14 09:23:41 +02:00
faa055e5f3 chore: update dependency k3s-io/k3s to v1.29.3+k3s1 2024-08-14 09:23:41 +02:00
db14d28bf7 feat: add task to create a monthly cronjob for restarting k3s 2024-08-14 09:23:41 +02:00
b51baf055e chore: update dependency k3s-io/k3s to v1.29.2+k3s1 2024-08-14 09:23:41 +02:00
4c1aaf4bec chore: update helm release ingress-nginx to 4.10.* 2024-08-14 09:23:41 +02:00
bcccb65946 chore: update helm release argo-cd to v6.7.1 2024-08-14 09:23:41 +02:00
8b1b5f5ee1 chore: update helm release argo-cd to v6.4.0 2024-08-14 09:23:41 +02:00
0e92a240b4 chore: update helm release argocd-apps to v1.6.2 2024-08-14 09:23:41 +02:00
cc7a50046a chore: update helm release argo-cd to v6.3.1 2024-08-14 09:23:41 +02:00
e19977bf8a chore: update dependency k3s-io/k3s to v1.29.1+k3s2 2024-08-14 09:23:41 +02:00
34cf0b5e20 chore: update helm release argo-cd to v6 2024-08-14 09:23:41 +02:00
4d497570fd chore: update helm release argo-cd to v5.55.0 2024-08-14 09:23:41 +02:00
586c4267fb chore: update helm release cert-manager to 1.14.* 2024-08-14 09:23:41 +02:00
6e6b14e8bb chore: update helm release argo-cd to v5.54.0 2024-08-14 09:23:41 +02:00
dc3bd9fb01 chore: update helm release argocd-apps to v1.6.1 2024-08-14 09:23:41 +02:00
249f9c5b8f chore: update helm release argo-cd to v5.53.8 2024-08-14 09:23:41 +02:00
c893965731 chore: update helm release argo-cd to v5.52.0 2024-08-14 09:23:41 +02:00
cdd7dfe2ce chore: update dependency k3s-io/k3s to v1.29.0+k3s1 2024-08-14 09:23:41 +02:00
8d14dc880c chore: update helm release ingress-nginx to 4.9.* 2024-08-14 09:23:41 +02:00
9b45d13ba1 break(monitoring): remove prometheus-stack and loki 2024-08-14 09:23:41 +02:00
10 changed files with 30 additions and 1588 deletions

View file

@ -23,7 +23,7 @@
"argocd-init\\.yml$"
],
"matchStrings": [
"\\s+repo:\\s(?<registryUrl>.*)\\n\\s+chart:\\s(?<depName>.*)\\n\\s+version:\\s(?<currentValue>.*)\\n"
"\\s+chart:\\s(?<depName>.*)\\n\\s+repo:\\s(?<registryUrl>.*)\\n\\s+version:\\s(?<currentValue>.*)\\n"
],
"datasourceTemplate": "helm"
},
@ -35,8 +35,8 @@
],
"matchStrings": [
"\\s+chart::\\s\\\"(?<depName>.*)\\\",",
"\\s+version::\\s\\\"(?<currentValue>.*)\\\",",
"\\s+repo::\\s\\\"(?<registryUrl>.*)\\\","
"\\s+repo::\\s\\\"(?<registryUrl>.*)\\\",",
"\\s+version::\\s\\\"(?<currentValue>.*)\\\","
],
"matchStringsStrategy": "combination",
"datasourceTemplate": "helm"
@ -49,8 +49,8 @@
],
"matchStrings": [
"\\s+chart::\\s\\\"(?<depName>.*)\\\",",
"\\s+\\\"version\\\":\\s\\\"(?<currentValue>.*)\\\",",
"\\s+repo::\\s\\\"(?<registryUrl>.*)\\\","
"\\s+repo::\\s\\\"(?<registryUrl>.*)\\\",",
"\\s+\\\"version\\\":\\s\\\"(?<currentValue>.*)\\\","
],
"matchStringsStrategy": "combination",
"datasourceTemplate": "helm"

View file

@ -5,7 +5,6 @@
* [cert-manager](https://cert-manager.io/)
* selfsigned issuer
* LetsEncrypt issuers (Prod and Staging)
* [prometheus and grafana](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack)
* [zabbix-proxy](https://git.zabbix.com/projects/ZT/repos/kubernetes-helm/browse?at=refs%2Fheads%2Frelease%2F6.4)
* [loki](https://grafana.com/docs/loki/latest/)
* [keel](https://keel.sh)

View file

@ -11,11 +11,13 @@ metadata:
namespace: kube-system
spec:
# do not change order! (needed for renovate)
repo: https://argoproj.github.io/argo-helm
chart: argo-cd
version: 5.51.6
repo: https://argoproj.github.io/argo-helm
version: 7.4.3
targetNamespace: argocd
valuesContent: |-
server:
replicas: 1
applicationSet:
enabled: false
notifications:
@ -30,13 +32,13 @@ metadata:
namespace: kube-system
spec:
# do not change order! (needed for renovate)
repo: https://argoproj.github.io/argo-helm
chart: argocd-apps
version: 1.4.1
repo: https://argoproj.github.io/argo-helm
version: 2.0.0
targetNamespace: argocd
valuesContent: |-
projects:
- name: baseline
baseline:
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
@ -49,8 +51,7 @@ spec:
- group: '*'
kind: '*'
applications:
- name: baseline
namespace: argocd
baseline:
project: baseline
finalizers:
- resources-finalizer.argocd.argoproj.io

View file

@ -4,9 +4,11 @@ local app = import "../_templates/argocd_app.libsonnet";
app + {
chart:: "cert-manager",
repo:: "https://charts.jetstack.io",
version:: "1.13.*",
version:: "1.15.*",
values:: |||
installCRDs: true
crds:
enabled: true
keep: false
|||
},
]

View file

@ -4,7 +4,7 @@ local app = import "../_templates/argocd_app.libsonnet";
app + {
chart:: "ingress-nginx",
repo:: "https://kubernetes.github.io/ingress-nginx",
version:: "4.8.*",
version:: "4.11.*",
values:: |||
defaultBackend:
enabled: true
@ -19,12 +19,6 @@ app + {
pullPolicy: Always
service:
externalTrafficPolicy: Local
metrics:
enabled: true
serviceMonitor:
enabled: true
additionalLabels:
release: prometheus-grafana # same as prometheus-community chart name
|||
}
]

File diff suppressed because it is too large Load diff

View file

@ -1,39 +0,0 @@
local app = import "../../_templates/argocd_app.libsonnet";
[
app + {
name:: "loki",
namespace:: "metrics",
chart:: "loki-stack",
repo:: "https://grafana.github.io/helm-charts",
version:: "2.9.*",
syncOptions:: ["CreateNamespace=true", "Force=true"],
values:: |||
loki:
isDefault: false
promtail:
extraScrapeConfigs:
- job_name: journal
journal:
path: /var/log/journal
max_age: 12h
labels:
job: systemd-journal
relabel_configs:
- source_labels:
- '__journal__systemd_unit'
target_label: 'unit'
- source_labels:
- '__journal__hostname'
target_label: 'hostname'
extraVolumes:
- name: journal
hostPath:
path: /var/log/journal
extraVolumeMounts:
- name: journal
mountPath: /var/log/journal
readOnly: true
|||
}
]

View file

@ -1,47 +0,0 @@
# see https://blog.ediri.io/kube-prometheus-stack-and-argocd-23-how-to-remove-a-workaround
local app = import "../../_templates/argocd_app.libsonnet";
local vars = {
"version": "55.3.1",
"namespace": "metrics"
};
[
app + {
name:: "prometheus-crds",
namespace:: vars.namespace,
path:: "charts/kube-prometheus-stack/charts/crds/crds",
repo:: "https://github.com/prometheus-community/helm-charts.git",
version:: "kube-prometheus-stack-" + vars.version,
syncOptions:: ["CreateNamespace=true", "Replace=true"],
sync_wave:: -1,
},
app + {
name:: "prometheus-grafana",
namespace: vars.namespace,
chart:: "kube-prometheus-stack",
repo:: "https://prometheus-community.github.io/helm-charts",
version:: vars.version,
skipCrds:: true,
values:: |||
fullnameOverride: prometheus-stack
kubeProxy:
enabled: false
kubeScheduler:
enabled: false
kubeControllerManager:
enabled: false
alertmanager:
enabled: false
prometheus:
prometheusSpec:
storageSpec:
volumeClaimTemplate:
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 10Gi
|||
}
]

View file

@ -5,8 +5,8 @@ app + {
name:: "zabbix-proxy",
namespace:: "monitoring",
chart:: "zabbix-helm-chrt",
repo:: "https://cdn.zabbix.com/zabbix/integrations/kubernetes-helm/6.4",
version:: "1.3.*",
repo:: "https://cdn.zabbix.com/zabbix/integrations/kubernetes-helm/7.0",
version:: "0.0.*",
values:: |||
zabbixAgent:
enabled: false

View file

@ -1,7 +1,7 @@
---
- hosts: all
- name: Install k3s server
hosts: all
gather_facts: false
name: Install k3s server
tags: k3s-server
tasks:
- name: Download k3s install script
@ -12,7 +12,7 @@
- name: Install k3s server
ansible.builtin.command: "k3s_install.sh"
environment:
INSTALL_K3S_CHANNEL: v1.28.4+k3s1
INSTALL_K3S_CHANNEL: v1.30.3+k3s1
INSTALL_K3S_EXEC: "--disable traefik"
changed_when: false
- name: Start and enable k3s server
@ -20,15 +20,20 @@
name: k3s
state: started
enabled: true
- name: Add restart cronjob
ansible.builtin.cron:
name: "restart k3s (and regenerate certs if necessary)"
special_time: monthly
job: "systemctl restart k3s"
- name: Get kubeconfig
ansible.builtin.fetch:
src: /etc/rancher/k3s/k3s.yaml
dest: kubeconfig_{{ ansible_host }}.yml
flat: true
- hosts: all
- name: Deploy baseline
hosts: all
gather_facts: false
name: Deploy baseline
tags: baseline
tasks:
- name: Copy manifest