From 352221eb264a0969271e10180543c03235e8cb4d Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Mon, 28 Oct 2024 16:20:49 +0000 Subject: [PATCH] Squashed '.ci/' changes from 2c44e4fd..a3928364 a3928364 feat: migrate all buildah cmds to podman only d67a80e9 feat: make push and rm-image more resilient, prevent exit codes 8e202d4f fix: do not add non-existent images 6ef8d28d feat: ensure bash and safe exec 06fcff50 feat: improve image cleanup to incl. all tags and repositories 47b4da4b feat: add suport for trivyignore file git-subtree-dir: .ci git-subtree-split: a3928364782156003f828ee4639d12b51bb5d9d9 --- .ci/README.md | 25 - .gitattributes | 1 - .gitignore | 11 - .helmdocsignore | 2 - .versionrc | 2 - CHANGELOG.md | 46 - Dockerfile | 38 - .ci/LICENSE => LICENSE | 0 LICENSE.md | 651 - Makefile | 25 - README.md | 116 +- admin/README.md | 12 - admin/dev_apply.sh | 84 - admin/kubezero.sh | 406 - admin/libhelm.sh | 309 - admin/migrate_argo_values.py | 88 - admin/upgrade_cluster.sh | 65 - charts/clamav/.helmignore | 24 - charts/clamav/Chart.yaml | 19 - charts/clamav/README.md | 41 - charts/clamav/templates/configmap.yaml | 52 - charts/clamav/templates/service.yaml | 15 - charts/clamav/templates/statefulset.yaml | 78 - charts/clamav/update.sh | 9 - charts/clamav/values.yaml | 41 - charts/kubeadm/.helmignore | 2 - charts/kubeadm/Chart.yaml | 14 - charts/kubeadm/README.md | 57 - charts/kubeadm/README.md.gotmpl | 31 - charts/kubeadm/create_audit_policy.sh | 159 - .../templates/ClusterConfiguration.yaml | 97 - .../kubeadm/templates/InitConfiguration.yaml | 24 - .../kubeadm/templates/JoinConfiguration.yaml | 6 - .../templates/KubeProxyConfiguration.yaml | 7 - .../templates/KubeletConfiguration.yaml | 37 - charts/kubeadm/templates/README.md | 2 - charts/kubeadm/templates/_helpers.tpl | 28 - charts/kubeadm/templates/admin-aws-iam.yaml | 27 - .../apiserver/admission-configuration.yaml | 7 - .../templates/apiserver/audit-policy-off.yaml | 7 - .../templates/apiserver/audit-policy.yaml | 164 - .../templates/apiserver/audit-webhook.yaml | 14 - .../apiserver/aws-iam-authenticator.yaml | 19 - .../templates/apiserver/event-config.yaml | 13 - .../kubeadm/templates/patches/coredns0.yaml | 14 - charts/kubeadm/templates/patches/etcd0.yaml | 8 - .../templates/patches/kube-apiserver0.yaml | 8 - .../patches/kube-apiserver1+json.yaml | 10 - .../patches/kube-controller-manager0.yaml | 7 - .../kube-controller-manager1+json.yaml | 10 - .../templates/patches/kube-scheduler0.yaml | 7 - .../patches/kube-scheduler1+json.yaml | 10 - .../templates/resources/10-runtimeClass.yaml | 8 - .../resources/20-oicd-public-rbac.yaml | 13 - .../50-aws-iam-authenticator-crds.yaml | 46 - .../51-aws-iam-authenticator-deployment.yaml | 155 - .../52-aws-iam-authenticator-mappings.yaml | 23 - .../resources/80-apiserver-dns-service.yaml | 14 - charts/kubeadm/values.yaml | 38 - charts/kubezero-addons/Chart.yaml | 47 - charts/kubezero-addons/README.md | 175 - charts/kubezero-addons/README.md.gotmpl | 28 - .../aws-eks-asg-rolling-update-handler.patch | 30 - .../aws-node-termination-handler.patch | 29 - .../Chart.yaml | 8 - .../README.md | 16 - .../templates/_helpers.tpl | 31 - .../templates/cluster-role-binding.yaml | 15 - .../templates/cluster-role.yaml | 41 - .../templates/deployment.yaml | 71 - .../templates/service-account.yaml | 13 - .../values.yaml | 51 - .../aws-node-termination-handler/.helmignore | 23 - .../aws-node-termination-handler/Chart.yaml | 24 - .../aws-node-termination-handler/README.md | 179 - .../templates/NOTES.txt | 8 - .../templates/_helpers.tpl | 124 - .../templates/clusterrole.yaml | 52 - .../templates/clusterrolebinding.yaml | 16 - .../templates/daemonset.linux.yaml | 210 - .../templates/daemonset.windows.yaml | 204 - .../templates/deployment.yaml | 227 - .../templates/pdb.yaml | 14 - .../templates/podmonitor.yaml | 29 - .../templates/psp.yaml | 70 - .../templates/service.yaml | 18 - .../templates/serviceaccount.yaml | 13 - .../templates/servicemonitor.yaml | 29 - .../aws-node-termination-handler/values.yaml | 300 - .../templates/cluster-backup/cronjob.yaml | 63 - .../templates/cluster-backup/secret.yaml | 11 - .../device-plugins/aws-neuron-ds.yaml | 80 - .../device-plugins/aws-neuron-rbac.yaml | 59 - .../device-plugins/fuse-device-plugin.yaml | 38 - .../templates/forseti/deployment.yaml | 84 - .../templates/forseti/rbac.yaml | 104 - .../templates/forseti/service.yaml | 16 - charts/kubezero-addons/update.sh | 12 - charts/kubezero-addons/values.yaml | 272 - charts/kubezero-argo/Chart.yaml | 36 - charts/kubezero-argo/README.md | 92 - charts/kubezero-argo/README.md.gotmpl | 21 - charts/kubezero-argo/dashboards.yaml | 9 - .../templates/argo-cd/grafana-dashboards.yaml | 15 - .../argo-cd/istio-authorization-policy.yaml | 28 - .../templates/argo-cd/istio-service.yaml | 31 - charts/kubezero-argo/update.sh | 10 - charts/kubezero-argo/values.yaml | 186 - charts/kubezero-auth/Chart.yaml | 23 - charts/kubezero-auth/README.md | 63 - charts/kubezero-auth/README.md.gotmpl | 28 - charts/kubezero-auth/dashboards-keycloak.yaml | 9 - charts/kubezero-auth/docs/keycloak.md | 14 - charts/kubezero-auth/docs/postgres.md | 49 - .../keycloak/grafana-dashboards.yaml | 13 - .../keycloak/istio-authorization-policy.yaml | 37 - .../templates/keycloak/istio-service.yaml | 44 - charts/kubezero-auth/update.sh | 12 - charts/kubezero-auth/values.yaml | 48 - charts/kubezero-cert-manager/.gitignore | 1 - charts/kubezero-cert-manager/.helmignore | 25 - charts/kubezero-cert-manager/Chart.yaml | 21 - charts/kubezero-cert-manager/README.md | 59 - charts/kubezero-cert-manager/README.md.gotmpl | 23 - charts/kubezero-cert-manager/backup-all.sh | 7 - .../cert-manager-rules.yaml | 4 - charts/kubezero-cert-manager/dashboards.yaml | 9 - charts/kubezero-cert-manager/jsonnetfile.json | 24 - .../jsonnetfile.lock.json | 241 - charts/kubezero-cert-manager/rules.jsonnet | 9 - .../rules/cert-manager-mixin-prometheusRule | 80 - .../templates/cluster-ca.yaml | 64 - .../templates/cluster-issuer.yaml | 16 - .../templates/grafana-dashboards.yaml | 15 - .../templates/prometheus-rules.yaml | 55 - charts/kubezero-cert-manager/update.sh | 21 - charts/kubezero-cert-manager/values.yaml | 97 - charts/kubezero-ci/Chart.yaml | 36 - charts/kubezero-ci/README.md | 165 - charts/kubezero-ci/README.md.gotmpl | 36 - charts/kubezero-ci/dashboard-gitea.yaml | 9 - charts/kubezero-ci/dashboard-jenkins.yaml | 9 - .../files/gitea/themes/theme-github-dark.css | 1034 -- .../templates/gitea/grafana-dashboard.yaml | 15 - .../gitea/istio-authorization-policy.yaml | 26 - .../templates/gitea/istio-service.yaml | 33 - .../kubezero-ci/templates/gitea/secrets.yaml | 12 - .../templates/gitea/themes-cm.yaml | 8 - .../templates/jenkins/grafana-dashboard.yaml | 15 - .../jenkins/istio-authorization-policy.yaml | 26 - .../templates/jenkins/istio-service.yaml | 68 - charts/kubezero-ci/update.sh | 13 - charts/kubezero-ci/values.yaml | 296 - charts/kubezero-falco/Chart.yaml | 23 - charts/kubezero-falco/README.md | 64 - .../files/rules/k8s_audit_rules.yaml | 804 - .../templates/k8saudit-rules-cm.yaml | 10 - charts/kubezero-falco/update.sh | 12 - charts/kubezero-falco/values.yaml | 82 - charts/kubezero-istio-gateway/Chart.yaml | 22 - charts/kubezero-istio-gateway/README.md | 53 - .../kubezero-istio-gateway/README.md.gotmpl | 24 - .../charts/gateway/Chart.yaml | 12 - .../charts/gateway/README.md | 170 - .../charts/gateway/files/profile-ambient.yaml | 25 - .../profile-compatibility-version-1.20.yaml | 6 - .../charts/gateway/files/profile-demo.yaml | 69 - .../gateway/files/profile-openshift.yaml | 18 - .../charts/gateway/files/profile-preview.yaml | 9 - .../charts/gateway/templates/NOTES.txt | 9 - .../charts/gateway/templates/_helpers.tpl | 61 - .../charts/gateway/templates/deployment.yaml | 124 - .../charts/gateway/templates/hpa.yaml | 42 - .../templates/poddisruptionbudget.yaml | 16 - .../charts/gateway/templates/role.yaml | 33 - .../charts/gateway/templates/service.yaml | 71 - .../gateway/templates/serviceaccount.yaml | 13 - .../charts/gateway/templates/zzz_profile.yaml | 34 - .../charts/gateway/values.schema.json | 301 - .../charts/gateway/values.yaml | 152 - charts/kubezero-istio-gateway/gateway.patch | 32 - .../templates/_gateway.tpl | 53 - .../templates/bootstrap-config.yaml | 59 - .../templates/envoyfilter-hardening.yaml | 48 - .../templates/envoyfilter-keepalive-nlb.yaml | 29 - .../templates/envoyfilter-listener.yaml | 25 - .../templates/ingress-certificate.yaml | 19 - .../templates/ingress-gateway.yaml | 15 - .../templates/podmonitor.yaml | 37 - charts/kubezero-istio-gateway/update.sh | 13 - charts/kubezero-istio-gateway/values.yaml | 45 - charts/kubezero-istio/.gitignore | 3 - charts/kubezero-istio/.helmignore | 32 - charts/kubezero-istio/Chart.yaml | 28 - charts/kubezero-istio/README.md | 79 - charts/kubezero-istio/README.md.gotmpl | 30 - charts/kubezero-istio/dashboards.yaml | 22 - .../templates/grafana-dashboards.yaml | 21 - .../templates/kiali/istio-service.yaml | 18 - .../ratelimit/config-statds-exporter.yaml | 106 - .../templates/ratelimit/config.yaml | 19 - .../ratelimit/envoyfilter-cluster.yaml | 116 - .../ratelimit/rate-limit-service.yaml | 154 - .../templates/ratelimit/servicemonitor.yaml | 17 - .../templates/servicemonitor.yaml | 17 - charts/kubezero-istio/update.sh | 18 - charts/kubezero-istio/values.yaml | 92 - charts/kubezero-lib/.helmignore | 23 - charts/kubezero-lib/Chart.yaml | 13 - charts/kubezero-lib/README.md | 11 - charts/kubezero-lib/templates/_helpers.tpl | 45 - charts/kubezero-logging/.helmignore | 23 - charts/kubezero-logging/Chart.yaml | 30 - charts/kubezero-logging/README.md | 135 - charts/kubezero-logging/README.md.gotmpl | 54 - .../charts/fluent-bit/.helmignore | 23 - .../charts/fluent-bit/Chart.yaml | 27 - .../charts/fluent-bit/README.md | 57 - .../charts/fluent-bit/ci/ci-values.yaml | 7 - .../fluent-bit/dashboards/fluent-bit.json | 1565 -- .../charts/fluent-bit/templates/NOTES.txt | 6 - .../charts/fluent-bit/templates/_helpers.tpl | 138 - .../charts/fluent-bit/templates/_pod.tpl | 151 - .../fluent-bit/templates/clusterrole.yaml | 45 - .../templates/clusterrolebinding.yaml | 16 - .../templates/configmap-dashboards.yaml | 21 - .../templates/configmap-luascripts.yaml | 13 - .../fluent-bit/templates/configmap.yaml | 25 - .../fluent-bit/templates/daemonset.yaml | 48 - .../fluent-bit/templates/deployment.yaml | 51 - .../charts/fluent-bit/templates/hpa.yaml | 40 - .../charts/fluent-bit/templates/ingress.yaml | 65 - .../fluent-bit/templates/networkpolicy.yaml | 23 - .../charts/fluent-bit/templates/pdb.yaml | 21 - .../fluent-bit/templates/prometheusrule.yaml | 18 - .../charts/fluent-bit/templates/psp.yaml | 42 - .../charts/fluent-bit/templates/scc.yaml | 41 - .../charts/fluent-bit/templates/service.yaml | 54 - .../fluent-bit/templates/serviceaccount.yaml | 13 - .../fluent-bit/templates/servicemonitor.yaml | 51 - .../templates/tests/test-connection.yaml | 26 - .../charts/fluent-bit/templates/vpa.yaml | 39 - .../charts/fluent-bit/values.yaml | 497 - .../charts/fluentd/.helmignore | 23 - .../charts/fluentd/Chart.yaml | 15 - .../kubezero-logging/charts/fluentd/README.md | 187 - .../charts/fluentd/dashboards/fluentd.json | 3185 ---- .../charts/fluentd/templates/NOTES.txt | 5 - .../charts/fluentd/templates/_helpers.tpl | 104 - .../charts/fluentd/templates/_pod.tpl | 130 - .../charts/fluentd/templates/clusterrole.yaml | 28 - .../fluentd/templates/clusterrolebinding.yaml | 16 - .../templates/configmap-dashboards.yaml | 18 - .../charts/fluentd/templates/daemonset.yaml | 40 - .../charts/fluentd/templates/deployment.yaml | 41 - .../templates/files.conf/prometheus.yaml | 25 - .../templates/fluentd-configurations-cm.yaml | 38 - .../charts/fluentd/templates/hpa.yaml | 39 - .../charts/fluentd/templates/ingress.yaml | 44 - .../fluentd/templates/podsecuritypolicy.yaml | 42 - .../fluentd/templates/prometheusrules.yaml | 21 - .../charts/fluentd/templates/service.yaml | 35 - .../fluentd/templates/serviceaccount.yaml | 12 - .../fluentd/templates/servicemonitor.yaml | 44 - .../charts/fluentd/templates/statefulset.yaml | 55 - .../templates/tests/test-connection.yaml | 31 - .../charts/fluentd/values.yaml | 406 - charts/kubezero-logging/dashboards-es.yaml | 9 - charts/kubezero-logging/dashboards.yaml | 10 - charts/kubezero-logging/fluentd.patch | 44 - .../templates/eck/elasticsearch.yaml | 134 - .../templates/eck/grafana-dashboards.yaml | 15 - .../templates/eck/istio-virtualservice.yaml | 18 - .../templates/eck/kibana.yaml | 52 - .../templates/eck/secrets.yaml | 29 - .../templates/eck/servicemonitor.yaml | 28 - .../fluent-bit/grafana-dashboards.yaml | 13 - .../templates/fluentd/istio-service.yaml | 28 - charts/kubezero-logging/update.sh | 22 - charts/kubezero-logging/values-all.yaml | 43 - charts/kubezero-logging/values-fluentbit.yaml | 8 - charts/kubezero-logging/values-fluentd.yaml | 22 - charts/kubezero-logging/values.yaml | 390 - charts/kubezero-metrics/.helmignore | 29 - charts/kubezero-metrics/Chart.yaml | 32 - charts/kubezero-metrics/README.md | 220 - charts/kubezero-metrics/README.md.gotmpl | 27 - .../kube-prometheus-stack/.editorconfig | 5 - .../charts/kube-prometheus-stack/.helmignore | 29 - .../kube-prometheus-stack/CONTRIBUTING.md | 12 - .../charts/kube-prometheus-stack/Chart.yaml | 65 - .../charts/kube-prometheus-stack/README.md | 1067 -- .../charts/crds/Chart.yaml | 3 - .../charts/crds/README.md | 3 - .../crds/crds/crd-alertmanagerconfigs.yaml | 4302 ----- .../charts/crds/crds/crd-alertmanagers.yaml | 4772 ----- .../charts/crds/crds/crd-podmonitors.yaml | 571 - .../charts/crds/crds/crd-probes.yaml | 604 - .../crds/crds/crd-prometheusagents.yaml | 5733 ------ .../charts/crds/crds/crd-prometheuses.yaml | 6769 -------- .../charts/crds/crds/crd-prometheusrules.yaml | 112 - .../charts/crds/crds/crd-scrapeconfigs.yaml | 3153 ---- .../charts/crds/crds/crd-servicemonitors.yaml | 588 - .../charts/crds/crds/crd-thanosrulers.yaml | 4559 ----- .../charts/grafana/.helmignore | 23 - .../charts/grafana/Chart.yaml | 33 - .../charts/grafana/README.md | 770 - .../charts/grafana/ci/default-values.yaml | 1 - .../grafana/ci/with-affinity-values.yaml | 16 - .../ci/with-dashboard-json-values.yaml | 53 - .../grafana/ci/with-dashboard-values.yaml | 19 - .../ci/with-extraconfigmapmounts-values.yaml | 7 - .../ci/with-image-renderer-values.yaml | 19 - .../charts/grafana/ci/with-persistence.yaml | 3 - .../grafana/dashboards/custom-dashboard.json | 1 - .../charts/grafana/templates/NOTES.txt | 55 - .../charts/grafana/templates/_config.tpl | 171 - .../charts/grafana/templates/_helpers.tpl | 278 - .../charts/grafana/templates/_pod.tpl | 1296 -- .../charts/grafana/templates/clusterrole.yaml | 25 - .../grafana/templates/clusterrolebinding.yaml | 24 - .../grafana/templates/configSecret.yaml | 43 - .../configmap-dashboard-provider.yaml | 15 - .../charts/grafana/templates/configmap.yaml | 15 - .../templates/dashboards-json-configmap.yaml | 38 - .../charts/grafana/templates/deployment.yaml | 53 - .../grafana/templates/extra-manifests.yaml | 4 - .../grafana/templates/headless-service.yaml | 22 - .../charts/grafana/templates/hpa.yaml | 52 - .../templates/image-renderer-deployment.yaml | 131 - .../grafana/templates/image-renderer-hpa.yaml | 47 - .../image-renderer-network-policy.yaml | 79 - .../templates/image-renderer-service.yaml | 31 - .../image-renderer-servicemonitor.yaml | 48 - .../charts/grafana/templates/ingress.yaml | 78 - .../grafana/templates/networkpolicy.yaml | 61 - .../templates/poddisruptionbudget.yaml | 22 - .../grafana/templates/podsecuritypolicy.yaml | 49 - .../charts/grafana/templates/pvc.yaml | 36 - .../charts/grafana/templates/role.yaml | 32 - .../charts/grafana/templates/rolebinding.yaml | 25 - .../charts/grafana/templates/secret-env.yaml | 14 - .../charts/grafana/templates/secret.yaml | 16 - .../charts/grafana/templates/service.yaml | 61 - .../grafana/templates/serviceaccount.yaml | 17 - .../grafana/templates/servicemonitor.yaml | 52 - .../charts/grafana/templates/statefulset.yaml | 56 - .../templates/tests/test-configmap.yaml | 20 - .../tests/test-podsecuritypolicy.yaml | 32 - .../grafana/templates/tests/test-role.yaml | 17 - .../templates/tests/test-rolebinding.yaml | 20 - .../templates/tests/test-serviceaccount.yaml | 12 - .../charts/grafana/templates/tests/test.yaml | 49 - .../charts/grafana/values.yaml | 1321 -- .../charts/kube-state-metrics/.helmignore | 21 - .../charts/kube-state-metrics/Chart.yaml | 26 - .../charts/kube-state-metrics/README.md | 85 - .../kube-state-metrics/templates/NOTES.txt | 23 - .../kube-state-metrics/templates/_helpers.tpl | 156 - .../templates/ciliumnetworkpolicy.yaml | 33 - .../templates/clusterrolebinding.yaml | 20 - .../templates/crs-configmap.yaml | 16 - .../templates/deployment.yaml | 314 - .../templates/extra-manifests.yaml | 4 - .../templates/kubeconfig-secret.yaml | 12 - .../templates/networkpolicy.yaml | 43 - .../kube-state-metrics/templates/pdb.yaml | 18 - .../templates/podsecuritypolicy.yaml | 39 - .../templates/psp-clusterrole.yaml | 19 - .../templates/psp-clusterrolebinding.yaml | 16 - .../templates/rbac-configmap.yaml | 22 - .../kube-state-metrics/templates/role.yaml | 212 - .../templates/rolebinding.yaml | 24 - .../kube-state-metrics/templates/service.yaml | 49 - .../templates/serviceaccount.yaml | 17 - .../templates/servicemonitor.yaml | 120 - .../templates/stsdiscovery-role.yaml | 26 - .../templates/stsdiscovery-rolebinding.yaml | 17 - .../templates/verticalpodautoscaler.yaml | 44 - .../charts/kube-state-metrics/values.yaml | 489 - .../prometheus-node-exporter/.helmignore | 21 - .../prometheus-node-exporter/Chart.yaml | 25 - .../charts/prometheus-node-exporter/README.md | 96 - .../ci/port-values.yaml | 3 - .../templates/NOTES.txt | 29 - .../templates/_helpers.tpl | 202 - .../templates/clusterrole.yaml | 19 - .../templates/clusterrolebinding.yaml | 20 - .../templates/daemonset.yaml | 311 - .../templates/endpoints.yaml | 18 - .../templates/extra-manifests.yaml | 4 - .../templates/networkpolicy.yaml | 23 - .../templates/podmonitor.yaml | 91 - .../templates/psp-clusterrole.yaml | 14 - .../templates/psp-clusterrolebinding.yaml | 16 - .../templates/psp.yaml | 49 - .../templates/rbac-configmap.yaml | 16 - .../templates/service.yaml | 29 - .../templates/serviceaccount.yaml | 17 - .../templates/servicemonitor.yaml | 61 - .../templates/verticalpodautoscaler.yaml | 40 - .../prometheus-node-exporter/values.yaml | 531 - .../prometheus-windows-exporter/.helmignore | 21 - .../prometheus-windows-exporter/Chart.yaml | 17 - .../prometheus-windows-exporter/README.md | 42 - .../templates/_helpers.tpl | 185 - .../templates/config.yaml | 14 - .../templates/daemonset.yaml | 192 - .../templates/podmonitor.yaml | 91 - .../templates/service.yaml | 32 - .../templates/serviceaccount.yaml | 17 - .../templates/servicemonitor.yaml | 61 - .../prometheus-windows-exporter/values.yaml | 369 - .../kube-prometheus-stack/templates/NOTES.txt | 4 - .../templates/_helpers.tpl | 315 - .../templates/alertmanager/alertmanager.yaml | 189 - .../templates/alertmanager/extrasecret.yaml | 20 - .../templates/alertmanager/ingress.yaml | 78 - .../alertmanager/ingressperreplica.yaml | 67 - .../alertmanager/podDisruptionBudget.yaml | 21 - .../templates/alertmanager/psp-role.yaml | 23 - .../alertmanager/psp-rolebinding.yaml | 20 - .../templates/alertmanager/psp.yaml | 47 - .../templates/alertmanager/secret.yaml | 29 - .../templates/alertmanager/service.yaml | 68 - .../alertmanager/serviceaccount.yaml | 21 - .../alertmanager/servicemonitor.yaml | 93 - .../alertmanager/serviceperreplica.yaml | 49 - .../templates/exporters/core-dns/service.yaml | 24 - .../exporters/core-dns/servicemonitor.yaml | 48 - .../kube-api-server/servicemonitor.yaml | 47 - .../kube-controller-manager/endpoints.yaml | 22 - .../kube-controller-manager/service.yaml | 29 - .../servicemonitor.yaml | 59 - .../templates/exporters/kube-dns/service.yaml | 28 - .../exporters/kube-dns/servicemonitor.yaml | 61 - .../exporters/kube-etcd/endpoints.yaml | 20 - .../exporters/kube-etcd/service.yaml | 27 - .../exporters/kube-etcd/servicemonitor.yaml | 65 - .../exporters/kube-proxy/endpoints.yaml | 20 - .../exporters/kube-proxy/service.yaml | 27 - .../exporters/kube-proxy/servicemonitor.yaml | 53 - .../exporters/kube-scheduler/endpoints.yaml | 22 - .../exporters/kube-scheduler/service.yaml | 29 - .../kube-scheduler/servicemonitor.yaml | 59 - .../exporters/kubelet/servicemonitor.yaml | 233 - .../templates/extra-objects.yaml | 4 - .../grafana/configmap-dashboards.yaml | 24 - .../grafana/configmaps-datasources.yaml | 81 - .../_prometheus-operator.tpl | 7 - .../_prometheus-operator-webhook.tpl | 6 - .../deployment/deployment.yaml | 143 - .../admission-webhooks/deployment/pdb.yaml | 15 - .../deployment/service.yaml | 58 - .../deployment/serviceaccount.yaml | 15 - .../ciliumnetworkpolicy-createSecret.yaml | 36 - .../ciliumnetworkpolicy-patchWebhook.yaml | 36 - .../job-patch/clusterrole.yaml | 33 - .../job-patch/clusterrolebinding.yaml | 20 - .../job-patch/job-createSecret.yaml | 73 - .../job-patch/job-patchWebhook.yaml | 74 - .../job-patch/networkpolicy-createSecret.yaml | 33 - .../job-patch/networkpolicy-patchWebhook.yaml | 33 - .../admission-webhooks/job-patch/psp.yaml | 47 - .../admission-webhooks/job-patch/role.yaml | 21 - .../job-patch/rolebinding.yaml | 21 - .../job-patch/serviceaccount.yaml | 17 - .../mutatingWebhookConfiguration.yaml | 77 - .../validatingWebhookConfiguration.yaml | 77 - .../aggregate-clusterroles.yaml | 29 - .../prometheus-operator/certmanager.yaml | 55 - .../ciliumnetworkpolicy.yaml | 40 - .../prometheus-operator/clusterrole.yaml | 109 - .../clusterrolebinding.yaml | 16 - .../prometheus-operator/deployment.yaml | 203 - .../prometheus-operator/networkpolicy.yaml | 29 - .../prometheus-operator/psp-clusterrole.yaml | 21 - .../psp-clusterrolebinding.yaml | 18 - .../templates/prometheus-operator/psp.yaml | 46 - .../prometheus-operator/service.yaml | 57 - .../prometheus-operator/serviceaccount.yaml | 14 - .../prometheus-operator/servicemonitor.yaml | 47 - .../verticalpodautoscaler.yaml | 40 - .../templates/prometheus/_rules.tpl | 44 - .../additionalAlertRelabelConfigs.yaml | 16 - .../additionalAlertmanagerConfigs.yaml | 16 - .../prometheus/additionalPrometheusRules.yaml | 43 - .../prometheus/additionalScrapeConfigs.yaml | 20 - .../prometheus/ciliumnetworkpolicy.yaml | 27 - .../templates/prometheus/clusterrole.yaml | 37 - .../prometheus/clusterrolebinding.yaml | 18 - .../templates/prometheus/csi-secret.yaml | 12 - .../templates/prometheus/extrasecret.yaml | 20 - .../templates/prometheus/ingress.yaml | 77 - .../prometheus/ingressThanosSidecar.yaml | 77 - .../prometheus/ingressperreplica.yaml | 67 - .../templates/prometheus/networkpolicy.yaml | 34 - .../prometheus/podDisruptionBudget.yaml | 25 - .../templates/prometheus/podmonitors.yaml | 38 - .../templates/prometheus/prometheus.yaml | 470 - .../templates/prometheus/psp-clusterrole.yaml | 22 - .../prometheus/psp-clusterrolebinding.yaml | 19 - .../templates/prometheus/psp.yaml | 58 - .../templates/prometheus/secret.yaml | 15 - .../templates/prometheus/service.yaml | 80 - .../prometheus/serviceThanosSidecar.yaml | 39 - .../serviceThanosSidecarExternal.yaml | 46 - .../templates/prometheus/serviceaccount.yaml | 21 - .../templates/prometheus/servicemonitor.yaml | 86 - .../servicemonitorThanosSidecar.yaml | 45 - .../templates/prometheus/servicemonitors.yaml | 47 - .../prometheus/serviceperreplica.yaml | 54 - .../templates/thanos-ruler/extrasecret.yaml | 20 - .../templates/thanos-ruler/ingress.yaml | 77 - .../thanos-ruler/podDisruptionBudget.yaml | 21 - .../templates/thanos-ruler/ruler.yaml | 189 - .../templates/thanos-ruler/secret.yaml | 26 - .../templates/thanos-ruler/service.yaml | 53 - .../thanos-ruler/serviceaccount.yaml | 20 - .../thanos-ruler/servicemonitor.yaml | 72 - .../charts/kube-prometheus-stack/values.yaml | 4619 ----- charts/kubezero-metrics/jsonnet/.gitignore | 2 - charts/kubezero-metrics/jsonnet/Makefile | 31 - charts/kubezero-metrics/jsonnet/build.sh | 13 - .../jsonnet/dashboards.libsonnet | 15 - .../jsonnet/dashboards/apiserver.json | 857 - .../jsonnet/dashboards/cluster-total.json | 1686 -- .../dashboards/controller-manager.json | 1018 -- .../dashboards/k8s-resources-cluster.json | 2564 --- .../dashboards/k8s-resources-namespace.json | 2324 --- .../dashboards/k8s-resources-node.json | 839 - .../jsonnet/dashboards/k8s-resources-pod.json | 2050 --- .../dashboards/k8s-resources-workload.json | 1670 -- .../k8s-resources-workloads-namespace.json | 1811 -- .../jsonnet/dashboards/kubelet.json | 1980 --- .../jsonnet/dashboards/namespace-by-pod.json | 1308 -- .../dashboards/namespace-by-workload.json | 1548 -- .../dashboards/persistentvolumesusage.json | 489 - .../jsonnet/dashboards/pod-total.json | 1102 -- .../jsonnet/dashboards/proxy.json | 1086 -- .../jsonnet/dashboards/scheduler.json | 953 - .../jsonnet/dashboards/workload-total.json | 1288 -- .../kubezero-metrics/jsonnet/jsonnetfile.json | 15 - .../jsonnet/jsonnetfile.lock.json | 231 - .../jsonnet/k8s-dashboards.yaml | 49 - .../kubezero-metrics/jsonnet/k8s-rules.yaml | 18 - .../jsonnet/metrics-dashboards.yaml | 10 - .../kubezero-metrics/jsonnet/rules.libsonnet | 49 - .../jsonnet/rules/alertmanager-prometheusRule | 130 - .../jsonnet/rules/etcd-mixin-prometheusRule | 177 - .../rules/kube-prometheus-prometheusRule | 121 - .../rules/kube-state-metrics-prometheusRule | 77 - .../jsonnet/rules/kubernetes-prometheusRule | 1242 -- .../rules/node-exporter-prometheusRule | 396 - .../rules/prometheus-operator-prometheusRule | 147 - .../jsonnet/rules/prometheus-prometheusRule | 312 - .../jsonnet/zdt-dashboards.yaml | 12 - charts/kubezero-metrics/jsonnet/zdt/crio.json | 414 - .../jsonnet/zdt/docker-registry.json | 1515 -- charts/kubezero-metrics/jsonnet/zdt/home.json | 136 - .../sync_grafana_dashboards.py | 151 - .../kubezero-metrics/sync_prometheus_rules.py | 90 - .../templates/dashboard-gunzip-cm.yaml | 11 - .../templates/grafana-dashboards-k8s.yaml | 51 - .../templates/grafana-dashboards-metrics.yaml | 15 - .../templates/grafana-dashboards-zdt.yaml | 17 - .../templates/istio-authorization-policy.yaml | 30 - .../templates/istio-service.yaml | 25 - .../templates/rules/alertmanager.yaml | 90 - .../templates/rules/etcd-mixin.yaml | 151 - .../templates/rules/kube-prometheus.yaml | 92 - .../templates/rules/kube-state-metrics.yaml | 50 - .../templates/rules/kubernetes.yaml | 927 - .../templates/rules/node-exporter.yaml | 314 - .../templates/rules/prometheus-operator.yaml | 115 - .../templates/rules/prometheus.yaml | 248 - .../templates/rules/zdt-inhibitors.yaml | 19 - charts/kubezero-metrics/update.sh | 38 - charts/kubezero-metrics/values.yaml | 403 - charts/kubezero-mq/Chart.yaml | 32 - charts/kubezero-mq/README.md | 74 - charts/kubezero-mq/README.md.gotmpl | 21 - charts/kubezero-mq/charts/nats/.helmignore | 22 - charts/kubezero-mq/charts/nats/Chart.yaml | 19 - charts/kubezero-mq/charts/nats/README.md | 596 - charts/kubezero-mq/charts/nats/accounts.conf | 21 - charts/kubezero-mq/charts/nats/deploy.yaml | 24 - charts/kubezero-mq/charts/nats/deploy2.yaml | 9 - charts/kubezero-mq/charts/nats/foo.conf | 0 charts/kubezero-mq/charts/nats/foo.dhall | 9 - charts/kubezero-mq/charts/nats/resolver.conf | 21 - .../charts/nats/templates/NOTES.txt | 26 - .../charts/nats/templates/_helpers.tpl | 98 - .../charts/nats/templates/_mem_resolver.yaml | 15 - .../charts/nats/templates/configmap.yaml | 398 - .../charts/nats/templates/nats-box.yaml | 95 - .../charts/nats/templates/pdb.yaml | 22 - .../charts/nats/templates/rbac.yaml | 31 - .../charts/nats/templates/service.yaml | 67 - .../charts/nats/templates/serviceMonitor.yaml | 40 - .../charts/nats/templates/statefulset.yaml | 477 - charts/kubezero-mq/charts/nats/values.yaml | 405 - charts/kubezero-mq/dashboards-nats.yaml | 8 - charts/kubezero-mq/dashboards-rabbitmq.yaml | 8 - charts/kubezero-mq/example-nats-argocd.yaml | 35 - .../kubezero-mq/example-rabbitmq-argocd.yaml | 44 - .../templates/nats/grafana-dashboards.yaml | 13 - .../templates/nats/istio-service.yaml | 22 - .../templates/rabbitmq/_secret.yaml.txt | 11 - .../rabbitmq/grafana-dashboards.yaml | 13 - .../templates/rabbitmq/istio-service.yaml | 55 - .../rabbitmq/server-certificate.yaml | 16 - charts/kubezero-mq/update.sh | 13 - charts/kubezero-mq/values.yaml | 108 - charts/kubezero-network/Chart.yaml | 29 - charts/kubezero-network/README.md | 70 - charts/kubezero-network/README.md.gotmpl | 16 - charts/kubezero-network/crds/multus.yaml | 44 - charts/kubezero-network/dashboards.yaml | 15 - .../templates/grafana-dashboards.yaml | 17 - .../templates/metallb/config.yaml | 27 - .../templates/multus/cilium-network.yaml | 14 - .../templates/multus/config.yaml | 25 - .../templates/multus/daemonset.yaml | 74 - .../templates/multus/rbac.yaml | 48 - charts/kubezero-network/update.sh | 12 - charts/kubezero-network/values.yaml | 111 - charts/kubezero-operators/Chart.yaml | 27 - charts/kubezero-operators/README.md | 44 - .../charts/eck-operator/.helmignore | 24 - .../charts/eck-operator/Chart.yaml | 21 - .../charts/eck-operator/LICENSE | 93 - .../charts/eck-operator/README.md | 20 - .../charts/eck-operator/crds/all-crds.yaml | 10558 ----------- .../charts/eck-operator/profile-global.yaml | 6 - .../charts/eck-operator/profile-istio.yaml | 11 - .../eck-operator/profile-restricted.yaml | 12 - .../profile-soft-multi-tenancy.yaml | 18 - .../charts/eck-operator/templates/NOTES.txt | 2 - .../eck-operator/templates/_helpers.tpl | 379 - .../templates/auth-proxy-service.yaml | 22 - .../eck-operator/templates/cluster-roles.yaml | 121 - .../eck-operator/templates/configmap.yaml | 84 - .../templates/managed-namespaces.yaml | 13 - .../templates/managed-ns-network-policy.yaml | 228 - .../templates/operator-namespace.yaml | 9 - .../templates/operator-network-policy.yaml | 59 - .../charts/eck-operator/templates/pdb.yaml | 19 - .../eck-operator/templates/podMonitor.yaml | 42 - .../eck-operator/templates/role-bindings.yaml | 98 - .../templates/service-account.yaml | 14 - .../templates/serviceMonitor.yaml | 31 - .../eck-operator/templates/statefulset.yaml | 176 - .../templates/validate-chart.yaml | 29 - .../eck-operator/templates/webhook.yaml | 473 - .../charts/eck-operator/values.yaml | 338 - charts/kubezero-operators/update.sh | 19 - charts/kubezero-operators/values.yaml | 29 - charts/kubezero-redis/.helmignore | 23 - charts/kubezero-redis/Chart.yaml | 28 - charts/kubezero-redis/README.md | 55 - charts/kubezero-redis/README.md.gotmpl | 27 - charts/kubezero-redis/dashboards.yaml | 9 - charts/kubezero-redis/redis-client.yaml | 24 - .../envoyfilter-custom-redis-cluster.yaml | 36 - .../templates/envoyfilter-redis-proxy.yaml | 35 - .../templates/grafana-dashboards.yaml | 13 - .../templates/istio-authorization-policy.yaml | 26 - .../templates/istio-service.yaml | 22 - .../templates/snapshotgroup.yaml | 13 - charts/kubezero-redis/update.sh | 4 - charts/kubezero-redis/values.yaml | 53 - charts/kubezero-sql/Chart.yaml | 28 - charts/kubezero-sql/README.md | 58 - charts/kubezero-sql/README.md.gotmpl | 27 - charts/kubezero-sql/cr.yaml | 591 - charts/kubezero-sql/dashboards-mariadb.yaml | 8 - .../kubezero-sql/example-mariadb-galera.yaml | 28 - charts/kubezero-sql/files/mariadb/my.cnf | 124 - .../templates/mariadb/grafana-dashboards.yaml | 13 - .../templates/mariadb/istio-service.yaml | 22 - .../templates/mariadb/mycnf-cm.yaml | 9 - charts/kubezero-sql/update.sh | 9 - charts/kubezero-sql/values.yaml | 50 - charts/kubezero-storage/.gitignore | 2 - charts/kubezero-storage/.helmignore | 1 - charts/kubezero-storage/Chart.yaml | 42 - charts/kubezero-storage/README.md | 144 - charts/kubezero-storage/README.md.gotmpl | 23 - .../kubezero-storage/aws-efs-csi-driver.patch | 32 - .../charts/aws-ebs-csi-driver/.helmignore | 22 - .../charts/aws-ebs-csi-driver/CHANGELOG.md | 360 - .../charts/aws-ebs-csi-driver/Chart.yaml | 16 - .../aws-ebs-csi-driver/templates/NOTES.txt | 5 - .../aws-ebs-csi-driver/templates/_helpers.tpl | 85 - .../templates/_node-windows.tpl | 211 - .../aws-ebs-csi-driver/templates/_node.tpl | 244 - .../templates/clusterrole-attacher.yaml | 26 - .../templates/clusterrole-csi-node.yaml | 17 - .../templates/clusterrole-provisioner.yaml | 41 - .../templates/clusterrole-resizer.yaml | 37 - .../templates/clusterrole-snapshotter.yaml | 30 - .../clusterrolebinding-attacher.yaml | 15 - .../clusterrolebinding-csi-node.yaml | 15 - .../clusterrolebinding-provisioner.yaml | 15 - .../templates/clusterrolebinding-resizer.yaml | 15 - .../clusterrolebinding-snapshotter.yaml | 15 - .../templates/controller.yaml | 503 - .../templates/csidriver.yaml | 12 - .../aws-ebs-csi-driver/templates/metrics.yaml | 42 - .../templates/node-windows.yaml | 13 - .../aws-ebs-csi-driver/templates/node.yaml | 46 - .../poddisruptionbudget-controller.yaml | 17 - .../templates/role-leases.yaml | 11 - .../templates/rolebinding-leases.yaml | 15 - .../serviceaccount-csi-controller.yaml | 21 - .../templates/serviceaccount-csi-node.yaml | 16 - .../templates/storageclass.yaml | 15 - .../templates/tests/helm-tester.yaml | 235 - .../templates/volumesnapshotclass.yaml | 20 - .../charts/aws-ebs-csi-driver/values.yaml | 470 - .../charts/aws-efs-csi-driver/.helmignore | 22 - .../charts/aws-efs-csi-driver/CHANGELOG.md | 213 - .../charts/aws-efs-csi-driver/Chart.yaml | 18 - .../aws-efs-csi-driver/templates/NOTES.txt | 3 - .../aws-efs-csi-driver/templates/_helpers.tpl | 56 - .../templates/controller-deployment.yaml | 178 - .../templates/controller-serviceaccount.yaml | 86 - .../templates/csidriver.yaml | 10 - .../templates/node-daemonset.yaml | 184 - .../templates/node-serviceaccount.yaml | 39 - .../templates/storageclass.yaml | 26 - .../charts/aws-efs-csi-driver/values.yaml | 200 - .../kubezero-storage/charts/gemini/Chart.yaml | 10 - .../kubezero-storage/charts/gemini/README.md | 50 - .../charts/gemini/README.md.gotmpl | 36 - .../charts/gemini/ci/test-values.yaml | 1 - .../charts/gemini/crds/crd.yaml | 87 - .../kubezero-storage/charts/gemini/logo.png | 3 - .../charts/gemini/templates/NOTES.txt | 30 - .../charts/gemini/templates/_helpers.tpl | 56 - .../charts/gemini/templates/deployment.yaml | 67 - .../charts/gemini/templates/rbac.yaml | 62 - .../charts/gemini/templates/test_crd.yaml | 44 - .../charts/gemini/values.yaml | 55 - .../charts/lvm-localpv/.helmignore | 23 - .../charts/lvm-localpv/Chart.yaml | 27 - .../charts/lvm-localpv/README.md | 162 - .../lvm-localpv/charts/crds/.helmignore | 23 - .../charts/lvm-localpv/charts/crds/Chart.yaml | 4 - .../charts/crds/templates/_helpers.tpl | 17 - .../templates/csi-volume-snapshot-class.yaml | 152 - .../csi-volume-snapshot-content.yaml | 490 - .../crds/templates/csi-volume-snapshot.yaml | 392 - .../charts/crds/templates/lvmnode.yaml | 180 - .../charts/crds/templates/lvmsnapshot.yaml | 88 - .../charts/crds/templates/lvmvolume.yaml | 156 - .../lvm-localpv/charts/crds/values.yaml | 8 - .../charts/lvm-localpv/templates/NOTES.txt | 5 - .../charts/lvm-localpv/templates/_helpers.tpl | 138 - .../lvm-localpv/templates/csidriver.yaml | 10 - .../lvm-localpv/templates/lvm-controller.yaml | 152 - .../templates/lvm-node-service.yaml | 18 - .../lvm-localpv/templates/lvm-node.yaml | 158 - .../lvm-localpv/templates/priority-class.yaml | 19 - .../charts/lvm-localpv/templates/psp.yaml | 24 - .../charts/lvm-localpv/templates/rbac.yaml | 195 - .../charts/lvm-localpv/values.yaml | 193 - charts/kubezero-storage/gemini.patch | 15 - charts/kubezero-storage/jsonnet/Makefile | 36 - charts/kubezero-storage/jsonnet/build.sh | 1 - .../kubezero-storage/jsonnet/config.libsonnet | 24 - .../jsonnet/dashboards.libsonnet | 10 - .../kubezero-storage/jsonnet/dashboards.yaml | 10 - .../dashboards/openebs-lvmlocalpv-pool.json | 3087 ---- .../kubezero-storage/jsonnet/jsonnetfile.json | 24 - .../jsonnet/jsonnetfile.lock.json | 241 - .../jsonnet/prometheusRules.libsonnet | 9 - charts/kubezero-storage/jsonnet/rules.yaml | 4 - .../rules/openebs-mixin-prometheusRules | 156 - charts/kubezero-storage/lvm-localpv.patch | 20 - .../templates/ebs/volumesnapshotclass.yaml | 12 - charts/kubezero-storage/templates/efs/pv.yaml | 30 - .../kubezero-storage/templates/k8up/crds.yaml | 14424 ---------------- .../templates/lvm/grafana-dashboards.yaml | 15 - .../templates/lvm/prometheus-rules.yaml | 104 - .../templates/lvm/servicemonitor.yaml | 18 - .../templates/lvm/storageclass.yaml | 19 - .../templates/lvm/volumesnapshotclass.yaml | 12 - .../snapshot-controller/controller.yaml | 69 - .../templates/snapshot-controller/rbac.yaml | 105 - .../volumesnapshotclasses-crd.yaml | 138 - .../volumesnapshotcontents-crd.yaml | 405 - .../volumesnapshots-crd.yaml | 316 - charts/kubezero-storage/update.sh | 46 - charts/kubezero-storage/values.yaml | 268 - charts/kubezero-telemetry/Chart.yaml | 32 - charts/kubezero-telemetry/README.md | 62 - .../charts/fluentd/.helmignore | 23 - .../charts/fluentd/Chart.yaml | 15 - .../charts/fluentd/README.md | 187 - .../charts/fluentd/dashboards/fluentd.json | 3185 ---- .../charts/fluentd/templates/NOTES.txt | 5 - .../charts/fluentd/templates/_helpers.tpl | 104 - .../charts/fluentd/templates/_pod.tpl | 130 - .../charts/fluentd/templates/clusterrole.yaml | 28 - .../fluentd/templates/clusterrolebinding.yaml | 16 - .../templates/configmap-dashboards.yaml | 18 - .../charts/fluentd/templates/daemonset.yaml | 40 - .../charts/fluentd/templates/deployment.yaml | 41 - .../templates/files.conf/prometheus.yaml | 25 - .../templates/fluentd-configurations-cm.yaml | 38 - .../charts/fluentd/templates/hpa.yaml | 39 - .../charts/fluentd/templates/ingress.yaml | 44 - .../fluentd/templates/podsecuritypolicy.yaml | 42 - .../fluentd/templates/prometheusrules.yaml | 21 - .../charts/fluentd/templates/service.yaml | 35 - .../fluentd/templates/serviceaccount.yaml | 12 - .../fluentd/templates/servicemonitor.yaml | 44 - .../charts/fluentd/templates/statefulset.yaml | 55 - .../templates/tests/test-connection.yaml | 29 - .../charts/fluentd/values.yaml | 403 - charts/kubezero-telemetry/dashboards.yaml | 21 - .../templates/grafana-dashboards.yaml | 17 - .../jaeger/istio-authorization-policy.yaml | 28 - .../templates/jaeger/istio-service.yaml | 20 - .../templates/opensearch/certificates.yaml | 70 - .../templates/opensearch/cluster.yaml | 99 - .../istio-authorization-policy.yaml | 28 - .../opensearch/istio-virtualservice.yaml | 20 - charts/kubezero-telemetry/update.sh | 22 - charts/kubezero-telemetry/values-nodes.yaml | 79 - charts/kubezero-telemetry/values.yaml | 82 - charts/kubezero/.gitignore | 3 - charts/kubezero/.helmignore | 24 - charts/kubezero/Chart.yaml | 18 - charts/kubezero/Makefile | 5 - charts/kubezero/README.md | 85 - charts/kubezero/docs/app.yaml | 30 - charts/kubezero/docs/applicationSet.yaml | 41 - charts/kubezero/scripts/argocd_password.py | 13 - charts/kubezero/scripts/delete_istio_17.sh | 19 - charts/kubezero/scripts/patch_vs.sh | 19 - charts/kubezero/scripts/remove_argo_ns.sh | 7 - charts/kubezero/scripts/remove_old_eck.sh | 25 - charts/kubezero/templates/_app.tpl | 45 - charts/kubezero/templates/addons.yaml | 191 - charts/kubezero/templates/argo.yaml | 104 - charts/kubezero/templates/cert-manager.yaml | 49 - charts/kubezero/templates/falco.yaml | 15 - charts/kubezero/templates/istio-ingress.yaml | 102 - .../templates/istio-private-ingress.yaml | 97 - charts/kubezero/templates/istio.yaml | 41 - charts/kubezero/templates/logging.yaml | 106 - charts/kubezero/templates/metrics.yaml | 161 - charts/kubezero/templates/network.yaml | 51 - charts/kubezero/templates/operators.yaml | 20 - charts/kubezero/templates/storage.yaml | 98 - charts/kubezero/templates/telemetry.yaml | 49 - charts/kubezero/values.yaml | 122 - charts/manticore/.helmignore | 23 - charts/manticore/Chart.yaml | 22 - charts/manticore/README.md | 32 - .../charts/manticoresearch/Chart.yaml | 23 - .../manticoresearch/templates/NOTES.txt | 37 - .../manticoresearch/templates/_helpers.tpl | 58 - .../templates/balancer-config-map.yaml | 10 - .../templates/manticore-balancer.yaml | 111 - .../templates/manticore-worker.yaml | 126 - .../templates/rolebinding.yaml | 35 - .../templates/service-balancer.yaml | 20 - .../templates/service-worker.yaml | 18 - .../templates/worker-config-map.yaml | 10 - .../charts/manticoresearch/values.yaml | 132 - charts/manticore/values.yaml | 5 - charts/uptime-kuma/Chart.yaml | 19 - charts/uptime-kuma/README.md | 39 - charts/uptime-kuma/README.md.gotmpl | 21 - charts/uptime-kuma/dashboards.yaml | 8 - charts/uptime-kuma/download | 364 - .../templates/grafana-dashboards.yaml | 15 - .../uptime-kuma/templates/istio-service.yaml | 18 - charts/uptime-kuma/templates/service.yaml | 15 - .../uptime-kuma/templates/servicemonitor.yaml | 63 - charts/uptime-kuma/templates/statefulset.yaml | 69 - charts/uptime-kuma/update.sh | 3 - charts/uptime-kuma/values.yaml | 38 - cliff.toml | 53 - docs/Quickstart.md | 37 - docs/SA_OIDC.yaml | 15 - docs/_release_hugo.md | 12 - docs/aws_architecture.png | 3 - docs/aws_sidecar.md | 22 - docs/etcd_hackery.md | 11 - docs/expand-control-plane.md | 5 - docs/misc.md | 47 - docs/notes.md | 62 - docs/nvidia-test.yaml | 19 - docs/upgrade.md | 29 - docs/v1.19.md | 54 - docs/v1.20.md | 121 - docs/v1.22.md | 109 - docs/v1.23.md | 42 - docs/v1.24.md | 65 - docs/v1.25.md | 60 - docs/v1.27.md | 25 - docs/v1.28.md | 21 - ...ic_lifecycle.py => ecr_public_lifecycle.py | 0 .ci/podman.mk => podman.mk | 45 +- renovate.json | 21 - scripts/decode_jwt.sh | 3 - scripts/exec_each_node.sh | 8 - scripts/git-pre-receive-hook.sh | 33 - scripts/lib-update.sh | 78 - scripts/pod_mem_cgroup_limit.sh | 9 - scripts/publish.sh | 60 - scripts/reencrypted_all_sealed_secrets.sh | 19 - scripts/run_cluster_gc_cgroups.sh | 106 - scripts/updateWorkerIamRole.sh | 26 - scripts/update_helm.sh | 32 - {.ci/vars => vars}/buildPodman.groovy | 0 921 files changed, 43 insertions(+), 160677 deletions(-) delete mode 100644 .ci/README.md delete mode 100644 .gitattributes delete mode 100644 .gitignore delete mode 100644 .helmdocsignore delete mode 100644 .versionrc delete mode 100644 CHANGELOG.md delete mode 100644 Dockerfile rename .ci/LICENSE => LICENSE (100%) delete mode 100644 LICENSE.md delete mode 100644 Makefile delete mode 100644 admin/README.md delete mode 100755 admin/dev_apply.sh delete mode 100755 admin/kubezero.sh delete mode 100644 admin/libhelm.sh delete mode 100755 admin/migrate_argo_values.py delete mode 100755 admin/upgrade_cluster.sh delete mode 100644 charts/clamav/.helmignore delete mode 100644 charts/clamav/Chart.yaml delete mode 100644 charts/clamav/README.md delete mode 100644 charts/clamav/templates/configmap.yaml delete mode 100644 charts/clamav/templates/service.yaml delete mode 100644 charts/clamav/templates/statefulset.yaml delete mode 100755 charts/clamav/update.sh delete mode 100644 charts/clamav/values.yaml delete mode 100644 charts/kubeadm/.helmignore delete mode 100644 charts/kubeadm/Chart.yaml delete mode 100644 charts/kubeadm/README.md delete mode 100644 charts/kubeadm/README.md.gotmpl delete mode 100755 charts/kubeadm/create_audit_policy.sh delete mode 100644 charts/kubeadm/templates/ClusterConfiguration.yaml delete mode 100644 charts/kubeadm/templates/InitConfiguration.yaml delete mode 100644 charts/kubeadm/templates/JoinConfiguration.yaml delete mode 100644 charts/kubeadm/templates/KubeProxyConfiguration.yaml delete mode 100644 charts/kubeadm/templates/KubeletConfiguration.yaml delete mode 100644 charts/kubeadm/templates/README.md delete mode 100644 charts/kubeadm/templates/_helpers.tpl delete mode 100644 charts/kubeadm/templates/admin-aws-iam.yaml delete mode 100644 charts/kubeadm/templates/apiserver/admission-configuration.yaml delete mode 100644 charts/kubeadm/templates/apiserver/audit-policy-off.yaml delete mode 100644 charts/kubeadm/templates/apiserver/audit-policy.yaml delete mode 100644 charts/kubeadm/templates/apiserver/audit-webhook.yaml delete mode 100644 charts/kubeadm/templates/apiserver/aws-iam-authenticator.yaml delete mode 100644 charts/kubeadm/templates/apiserver/event-config.yaml delete mode 100644 charts/kubeadm/templates/patches/coredns0.yaml delete mode 100644 charts/kubeadm/templates/patches/etcd0.yaml delete mode 100644 charts/kubeadm/templates/patches/kube-apiserver0.yaml delete mode 100644 charts/kubeadm/templates/patches/kube-apiserver1+json.yaml delete mode 100644 charts/kubeadm/templates/patches/kube-controller-manager0.yaml delete mode 100644 charts/kubeadm/templates/patches/kube-controller-manager1+json.yaml delete mode 100644 charts/kubeadm/templates/patches/kube-scheduler0.yaml delete mode 100644 charts/kubeadm/templates/patches/kube-scheduler1+json.yaml delete mode 100644 charts/kubeadm/templates/resources/10-runtimeClass.yaml delete mode 100644 charts/kubeadm/templates/resources/20-oicd-public-rbac.yaml delete mode 100644 charts/kubeadm/templates/resources/50-aws-iam-authenticator-crds.yaml delete mode 100644 charts/kubeadm/templates/resources/51-aws-iam-authenticator-deployment.yaml delete mode 100644 charts/kubeadm/templates/resources/52-aws-iam-authenticator-mappings.yaml delete mode 100644 charts/kubeadm/templates/resources/80-apiserver-dns-service.yaml delete mode 100644 charts/kubeadm/values.yaml delete mode 100644 charts/kubezero-addons/Chart.yaml delete mode 100644 charts/kubezero-addons/README.md delete mode 100644 charts/kubezero-addons/README.md.gotmpl delete mode 100644 charts/kubezero-addons/aws-eks-asg-rolling-update-handler.patch delete mode 100644 charts/kubezero-addons/aws-node-termination-handler.patch delete mode 100644 charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/Chart.yaml delete mode 100644 charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/README.md delete mode 100644 charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/_helpers.tpl delete mode 100644 charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/cluster-role-binding.yaml delete mode 100644 charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/cluster-role.yaml delete mode 100644 charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/deployment.yaml delete mode 100644 charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/service-account.yaml delete mode 100644 charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/values.yaml delete mode 100644 charts/kubezero-addons/charts/aws-node-termination-handler/.helmignore delete mode 100644 charts/kubezero-addons/charts/aws-node-termination-handler/Chart.yaml delete mode 100644 charts/kubezero-addons/charts/aws-node-termination-handler/README.md delete mode 100644 charts/kubezero-addons/charts/aws-node-termination-handler/templates/NOTES.txt delete mode 100644 charts/kubezero-addons/charts/aws-node-termination-handler/templates/_helpers.tpl delete mode 100644 charts/kubezero-addons/charts/aws-node-termination-handler/templates/clusterrole.yaml delete mode 100644 charts/kubezero-addons/charts/aws-node-termination-handler/templates/clusterrolebinding.yaml delete mode 100644 charts/kubezero-addons/charts/aws-node-termination-handler/templates/daemonset.linux.yaml delete mode 100644 charts/kubezero-addons/charts/aws-node-termination-handler/templates/daemonset.windows.yaml delete mode 100644 charts/kubezero-addons/charts/aws-node-termination-handler/templates/deployment.yaml delete mode 100644 charts/kubezero-addons/charts/aws-node-termination-handler/templates/pdb.yaml delete mode 100644 charts/kubezero-addons/charts/aws-node-termination-handler/templates/podmonitor.yaml delete mode 100644 charts/kubezero-addons/charts/aws-node-termination-handler/templates/psp.yaml delete mode 100644 charts/kubezero-addons/charts/aws-node-termination-handler/templates/service.yaml delete mode 100644 charts/kubezero-addons/charts/aws-node-termination-handler/templates/serviceaccount.yaml delete mode 100644 charts/kubezero-addons/charts/aws-node-termination-handler/templates/servicemonitor.yaml delete mode 100644 charts/kubezero-addons/charts/aws-node-termination-handler/values.yaml delete mode 100644 charts/kubezero-addons/templates/cluster-backup/cronjob.yaml delete mode 100644 charts/kubezero-addons/templates/cluster-backup/secret.yaml delete mode 100644 charts/kubezero-addons/templates/device-plugins/aws-neuron-ds.yaml delete mode 100644 charts/kubezero-addons/templates/device-plugins/aws-neuron-rbac.yaml delete mode 100644 charts/kubezero-addons/templates/device-plugins/fuse-device-plugin.yaml delete mode 100644 charts/kubezero-addons/templates/forseti/deployment.yaml delete mode 100644 charts/kubezero-addons/templates/forseti/rbac.yaml delete mode 100644 charts/kubezero-addons/templates/forseti/service.yaml delete mode 100755 charts/kubezero-addons/update.sh delete mode 100644 charts/kubezero-addons/values.yaml delete mode 100644 charts/kubezero-argo/Chart.yaml delete mode 100644 charts/kubezero-argo/README.md delete mode 100644 charts/kubezero-argo/README.md.gotmpl delete mode 100644 charts/kubezero-argo/dashboards.yaml delete mode 100644 charts/kubezero-argo/templates/argo-cd/grafana-dashboards.yaml delete mode 100644 charts/kubezero-argo/templates/argo-cd/istio-authorization-policy.yaml delete mode 100644 charts/kubezero-argo/templates/argo-cd/istio-service.yaml delete mode 100755 charts/kubezero-argo/update.sh delete mode 100644 charts/kubezero-argo/values.yaml delete mode 100644 charts/kubezero-auth/Chart.yaml delete mode 100644 charts/kubezero-auth/README.md delete mode 100644 charts/kubezero-auth/README.md.gotmpl delete mode 100644 charts/kubezero-auth/dashboards-keycloak.yaml delete mode 100644 charts/kubezero-auth/docs/keycloak.md delete mode 100644 charts/kubezero-auth/docs/postgres.md delete mode 100644 charts/kubezero-auth/templates/keycloak/grafana-dashboards.yaml delete mode 100644 charts/kubezero-auth/templates/keycloak/istio-authorization-policy.yaml delete mode 100644 charts/kubezero-auth/templates/keycloak/istio-service.yaml delete mode 100755 charts/kubezero-auth/update.sh delete mode 100644 charts/kubezero-auth/values.yaml delete mode 100644 charts/kubezero-cert-manager/.gitignore delete mode 100644 charts/kubezero-cert-manager/.helmignore delete mode 100644 charts/kubezero-cert-manager/Chart.yaml delete mode 100644 charts/kubezero-cert-manager/README.md delete mode 100644 charts/kubezero-cert-manager/README.md.gotmpl delete mode 100755 charts/kubezero-cert-manager/backup-all.sh delete mode 100644 charts/kubezero-cert-manager/cert-manager-rules.yaml delete mode 100644 charts/kubezero-cert-manager/dashboards.yaml delete mode 100644 charts/kubezero-cert-manager/jsonnetfile.json delete mode 100644 charts/kubezero-cert-manager/jsonnetfile.lock.json delete mode 100644 charts/kubezero-cert-manager/rules.jsonnet delete mode 100644 charts/kubezero-cert-manager/rules/cert-manager-mixin-prometheusRule delete mode 100644 charts/kubezero-cert-manager/templates/cluster-ca.yaml delete mode 100644 charts/kubezero-cert-manager/templates/cluster-issuer.yaml delete mode 100644 charts/kubezero-cert-manager/templates/grafana-dashboards.yaml delete mode 100644 charts/kubezero-cert-manager/templates/prometheus-rules.yaml delete mode 100755 charts/kubezero-cert-manager/update.sh delete mode 100644 charts/kubezero-cert-manager/values.yaml delete mode 100644 charts/kubezero-ci/Chart.yaml delete mode 100644 charts/kubezero-ci/README.md delete mode 100644 charts/kubezero-ci/README.md.gotmpl delete mode 100644 charts/kubezero-ci/dashboard-gitea.yaml delete mode 100644 charts/kubezero-ci/dashboard-jenkins.yaml delete mode 100644 charts/kubezero-ci/files/gitea/themes/theme-github-dark.css delete mode 100644 charts/kubezero-ci/templates/gitea/grafana-dashboard.yaml delete mode 100644 charts/kubezero-ci/templates/gitea/istio-authorization-policy.yaml delete mode 100644 charts/kubezero-ci/templates/gitea/istio-service.yaml delete mode 100644 charts/kubezero-ci/templates/gitea/secrets.yaml delete mode 100644 charts/kubezero-ci/templates/gitea/themes-cm.yaml delete mode 100644 charts/kubezero-ci/templates/jenkins/grafana-dashboard.yaml delete mode 100644 charts/kubezero-ci/templates/jenkins/istio-authorization-policy.yaml delete mode 100644 charts/kubezero-ci/templates/jenkins/istio-service.yaml delete mode 100755 charts/kubezero-ci/update.sh delete mode 100644 charts/kubezero-ci/values.yaml delete mode 100644 charts/kubezero-falco/Chart.yaml delete mode 100644 charts/kubezero-falco/README.md delete mode 100644 charts/kubezero-falco/files/rules/k8s_audit_rules.yaml delete mode 100644 charts/kubezero-falco/templates/k8saudit-rules-cm.yaml delete mode 100755 charts/kubezero-falco/update.sh delete mode 100644 charts/kubezero-falco/values.yaml delete mode 100644 charts/kubezero-istio-gateway/Chart.yaml delete mode 100644 charts/kubezero-istio-gateway/README.md delete mode 100644 charts/kubezero-istio-gateway/README.md.gotmpl delete mode 100644 charts/kubezero-istio-gateway/charts/gateway/Chart.yaml delete mode 100644 charts/kubezero-istio-gateway/charts/gateway/README.md delete mode 100644 charts/kubezero-istio-gateway/charts/gateway/files/profile-ambient.yaml delete mode 100644 charts/kubezero-istio-gateway/charts/gateway/files/profile-compatibility-version-1.20.yaml delete mode 100644 charts/kubezero-istio-gateway/charts/gateway/files/profile-demo.yaml delete mode 100644 charts/kubezero-istio-gateway/charts/gateway/files/profile-openshift.yaml delete mode 100644 charts/kubezero-istio-gateway/charts/gateway/files/profile-preview.yaml delete mode 100644 charts/kubezero-istio-gateway/charts/gateway/templates/NOTES.txt delete mode 100644 charts/kubezero-istio-gateway/charts/gateway/templates/_helpers.tpl delete mode 100644 charts/kubezero-istio-gateway/charts/gateway/templates/deployment.yaml delete mode 100644 charts/kubezero-istio-gateway/charts/gateway/templates/hpa.yaml delete mode 100644 charts/kubezero-istio-gateway/charts/gateway/templates/poddisruptionbudget.yaml delete mode 100644 charts/kubezero-istio-gateway/charts/gateway/templates/role.yaml delete mode 100644 charts/kubezero-istio-gateway/charts/gateway/templates/service.yaml delete mode 100644 charts/kubezero-istio-gateway/charts/gateway/templates/serviceaccount.yaml delete mode 100644 charts/kubezero-istio-gateway/charts/gateway/templates/zzz_profile.yaml delete mode 100644 charts/kubezero-istio-gateway/charts/gateway/values.schema.json delete mode 100644 charts/kubezero-istio-gateway/charts/gateway/values.yaml delete mode 100644 charts/kubezero-istio-gateway/gateway.patch delete mode 100644 charts/kubezero-istio-gateway/templates/_gateway.tpl delete mode 100644 charts/kubezero-istio-gateway/templates/bootstrap-config.yaml delete mode 100644 charts/kubezero-istio-gateway/templates/envoyfilter-hardening.yaml delete mode 100644 charts/kubezero-istio-gateway/templates/envoyfilter-keepalive-nlb.yaml delete mode 100644 charts/kubezero-istio-gateway/templates/envoyfilter-listener.yaml delete mode 100644 charts/kubezero-istio-gateway/templates/ingress-certificate.yaml delete mode 100644 charts/kubezero-istio-gateway/templates/ingress-gateway.yaml delete mode 100644 charts/kubezero-istio-gateway/templates/podmonitor.yaml delete mode 100755 charts/kubezero-istio-gateway/update.sh delete mode 100644 charts/kubezero-istio-gateway/values.yaml delete mode 100644 charts/kubezero-istio/.gitignore delete mode 100644 charts/kubezero-istio/.helmignore delete mode 100644 charts/kubezero-istio/Chart.yaml delete mode 100644 charts/kubezero-istio/README.md delete mode 100644 charts/kubezero-istio/README.md.gotmpl delete mode 100644 charts/kubezero-istio/dashboards.yaml delete mode 100644 charts/kubezero-istio/templates/grafana-dashboards.yaml delete mode 100644 charts/kubezero-istio/templates/kiali/istio-service.yaml delete mode 100644 charts/kubezero-istio/templates/ratelimit/config-statds-exporter.yaml delete mode 100644 charts/kubezero-istio/templates/ratelimit/config.yaml delete mode 100644 charts/kubezero-istio/templates/ratelimit/envoyfilter-cluster.yaml delete mode 100644 charts/kubezero-istio/templates/ratelimit/rate-limit-service.yaml delete mode 100644 charts/kubezero-istio/templates/ratelimit/servicemonitor.yaml delete mode 100644 charts/kubezero-istio/templates/servicemonitor.yaml delete mode 100755 charts/kubezero-istio/update.sh delete mode 100644 charts/kubezero-istio/values.yaml delete mode 100644 charts/kubezero-lib/.helmignore delete mode 100644 charts/kubezero-lib/Chart.yaml delete mode 100644 charts/kubezero-lib/README.md delete mode 100644 charts/kubezero-lib/templates/_helpers.tpl delete mode 100644 charts/kubezero-logging/.helmignore delete mode 100644 charts/kubezero-logging/Chart.yaml delete mode 100644 charts/kubezero-logging/README.md delete mode 100644 charts/kubezero-logging/README.md.gotmpl delete mode 100644 charts/kubezero-logging/charts/fluent-bit/.helmignore delete mode 100644 charts/kubezero-logging/charts/fluent-bit/Chart.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/README.md delete mode 100644 charts/kubezero-logging/charts/fluent-bit/ci/ci-values.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/dashboards/fluent-bit.json delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/NOTES.txt delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/_helpers.tpl delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/_pod.tpl delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/clusterrole.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/clusterrolebinding.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/configmap-dashboards.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/configmap-luascripts.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/configmap.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/daemonset.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/deployment.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/hpa.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/ingress.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/networkpolicy.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/pdb.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/prometheusrule.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/psp.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/scc.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/service.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/serviceaccount.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/servicemonitor.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/tests/test-connection.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/templates/vpa.yaml delete mode 100644 charts/kubezero-logging/charts/fluent-bit/values.yaml delete mode 100644 charts/kubezero-logging/charts/fluentd/.helmignore delete mode 100644 charts/kubezero-logging/charts/fluentd/Chart.yaml delete mode 100644 charts/kubezero-logging/charts/fluentd/README.md delete mode 100644 charts/kubezero-logging/charts/fluentd/dashboards/fluentd.json delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/NOTES.txt delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/_helpers.tpl delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/_pod.tpl delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/clusterrole.yaml delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/clusterrolebinding.yaml delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/configmap-dashboards.yaml delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/daemonset.yaml delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/deployment.yaml delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/files.conf/prometheus.yaml delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/fluentd-configurations-cm.yaml delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/hpa.yaml delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/ingress.yaml delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/podsecuritypolicy.yaml delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/prometheusrules.yaml delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/service.yaml delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/serviceaccount.yaml delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/servicemonitor.yaml delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/statefulset.yaml delete mode 100644 charts/kubezero-logging/charts/fluentd/templates/tests/test-connection.yaml delete mode 100644 charts/kubezero-logging/charts/fluentd/values.yaml delete mode 100644 charts/kubezero-logging/dashboards-es.yaml delete mode 100644 charts/kubezero-logging/dashboards.yaml delete mode 100644 charts/kubezero-logging/fluentd.patch delete mode 100644 charts/kubezero-logging/templates/eck/elasticsearch.yaml delete mode 100644 charts/kubezero-logging/templates/eck/grafana-dashboards.yaml delete mode 100644 charts/kubezero-logging/templates/eck/istio-virtualservice.yaml delete mode 100644 charts/kubezero-logging/templates/eck/kibana.yaml delete mode 100644 charts/kubezero-logging/templates/eck/secrets.yaml delete mode 100644 charts/kubezero-logging/templates/eck/servicemonitor.yaml delete mode 100644 charts/kubezero-logging/templates/fluent-bit/grafana-dashboards.yaml delete mode 100644 charts/kubezero-logging/templates/fluentd/istio-service.yaml delete mode 100755 charts/kubezero-logging/update.sh delete mode 100644 charts/kubezero-logging/values-all.yaml delete mode 100644 charts/kubezero-logging/values-fluentbit.yaml delete mode 100644 charts/kubezero-logging/values-fluentd.yaml delete mode 100644 charts/kubezero-logging/values.yaml delete mode 100644 charts/kubezero-metrics/.helmignore delete mode 100644 charts/kubezero-metrics/Chart.yaml delete mode 100644 charts/kubezero-metrics/README.md delete mode 100644 charts/kubezero-metrics/README.md.gotmpl delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/.editorconfig delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/.helmignore delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/CONTRIBUTING.md delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/Chart.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/README.md delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/crds/Chart.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/crds/README.md delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/crds/crds/crd-alertmanagerconfigs.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/crds/crds/crd-alertmanagers.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/crds/crds/crd-podmonitors.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/crds/crds/crd-probes.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/crds/crds/crd-prometheusagents.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/crds/crds/crd-prometheuses.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/crds/crds/crd-prometheusrules.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/crds/crds/crd-scrapeconfigs.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/crds/crds/crd-servicemonitors.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/crds/crds/crd-thanosrulers.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/.helmignore delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/Chart.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/README.md delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/ci/default-values.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/ci/with-affinity-values.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/ci/with-dashboard-json-values.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/ci/with-dashboard-values.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/ci/with-extraconfigmapmounts-values.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/ci/with-image-renderer-values.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/ci/with-persistence.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/dashboards/custom-dashboard.json delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/NOTES.txt delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/_config.tpl delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/_helpers.tpl delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/_pod.tpl delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/clusterrole.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/clusterrolebinding.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/configSecret.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/configmap-dashboard-provider.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/configmap.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/dashboards-json-configmap.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/deployment.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/extra-manifests.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/headless-service.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/hpa.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/image-renderer-deployment.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/image-renderer-hpa.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/image-renderer-network-policy.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/image-renderer-service.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/image-renderer-servicemonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/ingress.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/networkpolicy.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/poddisruptionbudget.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/podsecuritypolicy.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/pvc.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/role.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/rolebinding.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/secret-env.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/secret.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/service.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/serviceaccount.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/servicemonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/statefulset.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/tests/test-configmap.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/tests/test-podsecuritypolicy.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/tests/test-role.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/tests/test-rolebinding.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/tests/test-serviceaccount.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/tests/test.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/values.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/.helmignore delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/Chart.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/README.md delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/NOTES.txt delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/_helpers.tpl delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/ciliumnetworkpolicy.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/clusterrolebinding.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/crs-configmap.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/deployment.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/extra-manifests.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/kubeconfig-secret.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/networkpolicy.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/pdb.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/podsecuritypolicy.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/psp-clusterrole.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/psp-clusterrolebinding.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/rbac-configmap.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/role.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/rolebinding.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/service.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/serviceaccount.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/servicemonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/stsdiscovery-role.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/stsdiscovery-rolebinding.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/templates/verticalpodautoscaler.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/kube-state-metrics/values.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/.helmignore delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/Chart.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/README.md delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/ci/port-values.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/templates/NOTES.txt delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/templates/_helpers.tpl delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/templates/clusterrole.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/templates/clusterrolebinding.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/templates/daemonset.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/templates/endpoints.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/templates/extra-manifests.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/templates/networkpolicy.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/templates/podmonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/templates/psp-clusterrole.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/templates/psp-clusterrolebinding.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/templates/psp.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/templates/rbac-configmap.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/templates/service.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/templates/serviceaccount.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/templates/servicemonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/templates/verticalpodautoscaler.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-node-exporter/values.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-windows-exporter/.helmignore delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-windows-exporter/Chart.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-windows-exporter/README.md delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-windows-exporter/templates/_helpers.tpl delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-windows-exporter/templates/config.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-windows-exporter/templates/daemonset.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-windows-exporter/templates/podmonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-windows-exporter/templates/service.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-windows-exporter/templates/serviceaccount.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-windows-exporter/templates/servicemonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/charts/prometheus-windows-exporter/values.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/NOTES.txt delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/_helpers.tpl delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/alertmanager/alertmanager.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/alertmanager/extrasecret.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/alertmanager/ingress.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/alertmanager/ingressperreplica.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/alertmanager/podDisruptionBudget.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/alertmanager/psp-role.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/alertmanager/psp-rolebinding.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/alertmanager/psp.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/alertmanager/secret.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/alertmanager/service.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/alertmanager/serviceaccount.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/alertmanager/servicemonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/alertmanager/serviceperreplica.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/exporters/core-dns/service.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/exporters/core-dns/servicemonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/exporters/kube-api-server/servicemonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/exporters/kube-controller-manager/endpoints.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/exporters/kube-controller-manager/service.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/exporters/kube-controller-manager/servicemonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/exporters/kube-dns/service.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/exporters/kube-dns/servicemonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/exporters/kube-etcd/endpoints.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/exporters/kube-etcd/service.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/exporters/kube-etcd/servicemonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/exporters/kube-proxy/endpoints.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/exporters/kube-proxy/service.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/exporters/kube-proxy/servicemonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/exporters/kube-scheduler/endpoints.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/exporters/kube-scheduler/service.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/exporters/kube-scheduler/servicemonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/exporters/kubelet/servicemonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/extra-objects.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/grafana/configmap-dashboards.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/grafana/configmaps-datasources.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/_prometheus-operator.tpl delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/_prometheus-operator-webhook.tpl delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/deployment/deployment.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/deployment/pdb.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/deployment/service.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/deployment/serviceaccount.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/ciliumnetworkpolicy-createSecret.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/ciliumnetworkpolicy-patchWebhook.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/clusterrole.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/clusterrolebinding.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/job-createSecret.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/job-patchWebhook.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/networkpolicy-createSecret.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/networkpolicy-patchWebhook.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/psp.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/role.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/rolebinding.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/job-patch/serviceaccount.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/mutatingWebhookConfiguration.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/admission-webhooks/validatingWebhookConfiguration.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/aggregate-clusterroles.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/certmanager.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/ciliumnetworkpolicy.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/clusterrole.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/clusterrolebinding.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/deployment.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/networkpolicy.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/psp-clusterrole.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/psp-clusterrolebinding.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/psp.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/service.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/serviceaccount.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/servicemonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus-operator/verticalpodautoscaler.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/_rules.tpl delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/additionalAlertRelabelConfigs.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/additionalAlertmanagerConfigs.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/additionalPrometheusRules.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/additionalScrapeConfigs.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/ciliumnetworkpolicy.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/clusterrole.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/clusterrolebinding.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/csi-secret.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/extrasecret.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/ingress.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/ingressThanosSidecar.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/ingressperreplica.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/networkpolicy.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/podDisruptionBudget.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/podmonitors.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/prometheus.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/psp-clusterrole.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/psp-clusterrolebinding.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/psp.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/secret.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/service.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/serviceThanosSidecar.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/serviceThanosSidecarExternal.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/serviceaccount.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/servicemonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/servicemonitorThanosSidecar.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/servicemonitors.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/prometheus/serviceperreplica.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/thanos-ruler/extrasecret.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/thanos-ruler/ingress.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/thanos-ruler/podDisruptionBudget.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/thanos-ruler/ruler.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/thanos-ruler/secret.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/thanos-ruler/service.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/thanos-ruler/serviceaccount.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/templates/thanos-ruler/servicemonitor.yaml delete mode 100644 charts/kubezero-metrics/charts/kube-prometheus-stack/values.yaml delete mode 100644 charts/kubezero-metrics/jsonnet/.gitignore delete mode 100644 charts/kubezero-metrics/jsonnet/Makefile delete mode 100755 charts/kubezero-metrics/jsonnet/build.sh delete mode 100644 charts/kubezero-metrics/jsonnet/dashboards.libsonnet delete mode 100644 charts/kubezero-metrics/jsonnet/dashboards/apiserver.json delete mode 100644 charts/kubezero-metrics/jsonnet/dashboards/cluster-total.json delete mode 100644 charts/kubezero-metrics/jsonnet/dashboards/controller-manager.json delete mode 100644 charts/kubezero-metrics/jsonnet/dashboards/k8s-resources-cluster.json delete mode 100644 charts/kubezero-metrics/jsonnet/dashboards/k8s-resources-namespace.json delete mode 100644 charts/kubezero-metrics/jsonnet/dashboards/k8s-resources-node.json delete mode 100644 charts/kubezero-metrics/jsonnet/dashboards/k8s-resources-pod.json delete mode 100644 charts/kubezero-metrics/jsonnet/dashboards/k8s-resources-workload.json delete mode 100644 charts/kubezero-metrics/jsonnet/dashboards/k8s-resources-workloads-namespace.json delete mode 100644 charts/kubezero-metrics/jsonnet/dashboards/kubelet.json delete mode 100644 charts/kubezero-metrics/jsonnet/dashboards/namespace-by-pod.json delete mode 100644 charts/kubezero-metrics/jsonnet/dashboards/namespace-by-workload.json delete mode 100644 charts/kubezero-metrics/jsonnet/dashboards/persistentvolumesusage.json delete mode 100644 charts/kubezero-metrics/jsonnet/dashboards/pod-total.json delete mode 100644 charts/kubezero-metrics/jsonnet/dashboards/proxy.json delete mode 100644 charts/kubezero-metrics/jsonnet/dashboards/scheduler.json delete mode 100644 charts/kubezero-metrics/jsonnet/dashboards/workload-total.json delete mode 100644 charts/kubezero-metrics/jsonnet/jsonnetfile.json delete mode 100644 charts/kubezero-metrics/jsonnet/jsonnetfile.lock.json delete mode 100644 charts/kubezero-metrics/jsonnet/k8s-dashboards.yaml delete mode 100644 charts/kubezero-metrics/jsonnet/k8s-rules.yaml delete mode 100644 charts/kubezero-metrics/jsonnet/metrics-dashboards.yaml delete mode 100644 charts/kubezero-metrics/jsonnet/rules.libsonnet delete mode 100644 charts/kubezero-metrics/jsonnet/rules/alertmanager-prometheusRule delete mode 100644 charts/kubezero-metrics/jsonnet/rules/etcd-mixin-prometheusRule delete mode 100644 charts/kubezero-metrics/jsonnet/rules/kube-prometheus-prometheusRule delete mode 100644 charts/kubezero-metrics/jsonnet/rules/kube-state-metrics-prometheusRule delete mode 100644 charts/kubezero-metrics/jsonnet/rules/kubernetes-prometheusRule delete mode 100644 charts/kubezero-metrics/jsonnet/rules/node-exporter-prometheusRule delete mode 100644 charts/kubezero-metrics/jsonnet/rules/prometheus-operator-prometheusRule delete mode 100644 charts/kubezero-metrics/jsonnet/rules/prometheus-prometheusRule delete mode 100644 charts/kubezero-metrics/jsonnet/zdt-dashboards.yaml delete mode 100644 charts/kubezero-metrics/jsonnet/zdt/crio.json delete mode 100644 charts/kubezero-metrics/jsonnet/zdt/docker-registry.json delete mode 100644 charts/kubezero-metrics/jsonnet/zdt/home.json delete mode 100755 charts/kubezero-metrics/sync_grafana_dashboards.py delete mode 100755 charts/kubezero-metrics/sync_prometheus_rules.py delete mode 100644 charts/kubezero-metrics/templates/dashboard-gunzip-cm.yaml delete mode 100644 charts/kubezero-metrics/templates/grafana-dashboards-k8s.yaml delete mode 100644 charts/kubezero-metrics/templates/grafana-dashboards-metrics.yaml delete mode 100644 charts/kubezero-metrics/templates/grafana-dashboards-zdt.yaml delete mode 100644 charts/kubezero-metrics/templates/istio-authorization-policy.yaml delete mode 100644 charts/kubezero-metrics/templates/istio-service.yaml delete mode 100644 charts/kubezero-metrics/templates/rules/alertmanager.yaml delete mode 100644 charts/kubezero-metrics/templates/rules/etcd-mixin.yaml delete mode 100644 charts/kubezero-metrics/templates/rules/kube-prometheus.yaml delete mode 100644 charts/kubezero-metrics/templates/rules/kube-state-metrics.yaml delete mode 100644 charts/kubezero-metrics/templates/rules/kubernetes.yaml delete mode 100644 charts/kubezero-metrics/templates/rules/node-exporter.yaml delete mode 100644 charts/kubezero-metrics/templates/rules/prometheus-operator.yaml delete mode 100644 charts/kubezero-metrics/templates/rules/prometheus.yaml delete mode 100644 charts/kubezero-metrics/templates/rules/zdt-inhibitors.yaml delete mode 100755 charts/kubezero-metrics/update.sh delete mode 100644 charts/kubezero-metrics/values.yaml delete mode 100644 charts/kubezero-mq/Chart.yaml delete mode 100644 charts/kubezero-mq/README.md delete mode 100644 charts/kubezero-mq/README.md.gotmpl delete mode 100644 charts/kubezero-mq/charts/nats/.helmignore delete mode 100644 charts/kubezero-mq/charts/nats/Chart.yaml delete mode 100644 charts/kubezero-mq/charts/nats/README.md delete mode 100644 charts/kubezero-mq/charts/nats/accounts.conf delete mode 100644 charts/kubezero-mq/charts/nats/deploy.yaml delete mode 100644 charts/kubezero-mq/charts/nats/deploy2.yaml delete mode 100644 charts/kubezero-mq/charts/nats/foo.conf delete mode 100644 charts/kubezero-mq/charts/nats/foo.dhall delete mode 100644 charts/kubezero-mq/charts/nats/resolver.conf delete mode 100644 charts/kubezero-mq/charts/nats/templates/NOTES.txt delete mode 100644 charts/kubezero-mq/charts/nats/templates/_helpers.tpl delete mode 100644 charts/kubezero-mq/charts/nats/templates/_mem_resolver.yaml delete mode 100644 charts/kubezero-mq/charts/nats/templates/configmap.yaml delete mode 100644 charts/kubezero-mq/charts/nats/templates/nats-box.yaml delete mode 100644 charts/kubezero-mq/charts/nats/templates/pdb.yaml delete mode 100644 charts/kubezero-mq/charts/nats/templates/rbac.yaml delete mode 100644 charts/kubezero-mq/charts/nats/templates/service.yaml delete mode 100644 charts/kubezero-mq/charts/nats/templates/serviceMonitor.yaml delete mode 100644 charts/kubezero-mq/charts/nats/templates/statefulset.yaml delete mode 100644 charts/kubezero-mq/charts/nats/values.yaml delete mode 100644 charts/kubezero-mq/dashboards-nats.yaml delete mode 100644 charts/kubezero-mq/dashboards-rabbitmq.yaml delete mode 100644 charts/kubezero-mq/example-nats-argocd.yaml delete mode 100644 charts/kubezero-mq/example-rabbitmq-argocd.yaml delete mode 100644 charts/kubezero-mq/templates/nats/grafana-dashboards.yaml delete mode 100644 charts/kubezero-mq/templates/nats/istio-service.yaml delete mode 100644 charts/kubezero-mq/templates/rabbitmq/_secret.yaml.txt delete mode 100644 charts/kubezero-mq/templates/rabbitmq/grafana-dashboards.yaml delete mode 100644 charts/kubezero-mq/templates/rabbitmq/istio-service.yaml delete mode 100644 charts/kubezero-mq/templates/rabbitmq/server-certificate.yaml delete mode 100755 charts/kubezero-mq/update.sh delete mode 100644 charts/kubezero-mq/values.yaml delete mode 100644 charts/kubezero-network/Chart.yaml delete mode 100644 charts/kubezero-network/README.md delete mode 100644 charts/kubezero-network/README.md.gotmpl delete mode 100644 charts/kubezero-network/crds/multus.yaml delete mode 100644 charts/kubezero-network/dashboards.yaml delete mode 100644 charts/kubezero-network/templates/grafana-dashboards.yaml delete mode 100644 charts/kubezero-network/templates/metallb/config.yaml delete mode 100644 charts/kubezero-network/templates/multus/cilium-network.yaml delete mode 100644 charts/kubezero-network/templates/multus/config.yaml delete mode 100644 charts/kubezero-network/templates/multus/daemonset.yaml delete mode 100644 charts/kubezero-network/templates/multus/rbac.yaml delete mode 100755 charts/kubezero-network/update.sh delete mode 100644 charts/kubezero-network/values.yaml delete mode 100644 charts/kubezero-operators/Chart.yaml delete mode 100644 charts/kubezero-operators/README.md delete mode 100644 charts/kubezero-operators/charts/eck-operator/.helmignore delete mode 100644 charts/kubezero-operators/charts/eck-operator/Chart.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/LICENSE delete mode 100644 charts/kubezero-operators/charts/eck-operator/README.md delete mode 100644 charts/kubezero-operators/charts/eck-operator/crds/all-crds.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/profile-global.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/profile-istio.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/profile-restricted.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/profile-soft-multi-tenancy.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/templates/NOTES.txt delete mode 100644 charts/kubezero-operators/charts/eck-operator/templates/_helpers.tpl delete mode 100644 charts/kubezero-operators/charts/eck-operator/templates/auth-proxy-service.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/templates/cluster-roles.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/templates/configmap.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/templates/managed-namespaces.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/templates/managed-ns-network-policy.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/templates/operator-namespace.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/templates/operator-network-policy.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/templates/pdb.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/templates/podMonitor.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/templates/role-bindings.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/templates/service-account.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/templates/serviceMonitor.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/templates/statefulset.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/templates/validate-chart.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/templates/webhook.yaml delete mode 100644 charts/kubezero-operators/charts/eck-operator/values.yaml delete mode 100755 charts/kubezero-operators/update.sh delete mode 100644 charts/kubezero-operators/values.yaml delete mode 100644 charts/kubezero-redis/.helmignore delete mode 100644 charts/kubezero-redis/Chart.yaml delete mode 100644 charts/kubezero-redis/README.md delete mode 100644 charts/kubezero-redis/README.md.gotmpl delete mode 100644 charts/kubezero-redis/dashboards.yaml delete mode 100644 charts/kubezero-redis/redis-client.yaml delete mode 100644 charts/kubezero-redis/templates/envoyfilter-custom-redis-cluster.yaml delete mode 100644 charts/kubezero-redis/templates/envoyfilter-redis-proxy.yaml delete mode 100644 charts/kubezero-redis/templates/grafana-dashboards.yaml delete mode 100644 charts/kubezero-redis/templates/istio-authorization-policy.yaml delete mode 100644 charts/kubezero-redis/templates/istio-service.yaml delete mode 100644 charts/kubezero-redis/templates/snapshotgroup.yaml delete mode 100755 charts/kubezero-redis/update.sh delete mode 100644 charts/kubezero-redis/values.yaml delete mode 100644 charts/kubezero-sql/Chart.yaml delete mode 100644 charts/kubezero-sql/README.md delete mode 100644 charts/kubezero-sql/README.md.gotmpl delete mode 100644 charts/kubezero-sql/cr.yaml delete mode 100644 charts/kubezero-sql/dashboards-mariadb.yaml delete mode 100644 charts/kubezero-sql/example-mariadb-galera.yaml delete mode 100644 charts/kubezero-sql/files/mariadb/my.cnf delete mode 100644 charts/kubezero-sql/templates/mariadb/grafana-dashboards.yaml delete mode 100644 charts/kubezero-sql/templates/mariadb/istio-service.yaml delete mode 100644 charts/kubezero-sql/templates/mariadb/mycnf-cm.yaml delete mode 100755 charts/kubezero-sql/update.sh delete mode 100644 charts/kubezero-sql/values.yaml delete mode 100644 charts/kubezero-storage/.gitignore delete mode 100644 charts/kubezero-storage/.helmignore delete mode 100644 charts/kubezero-storage/Chart.yaml delete mode 100644 charts/kubezero-storage/README.md delete mode 100644 charts/kubezero-storage/README.md.gotmpl delete mode 100644 charts/kubezero-storage/aws-efs-csi-driver.patch delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/.helmignore delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/CHANGELOG.md delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/Chart.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/NOTES.txt delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/_helpers.tpl delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/_node-windows.tpl delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/_node.tpl delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/clusterrole-attacher.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/clusterrole-csi-node.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/clusterrole-provisioner.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/clusterrole-resizer.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/clusterrole-snapshotter.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/clusterrolebinding-attacher.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/clusterrolebinding-csi-node.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/clusterrolebinding-provisioner.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/clusterrolebinding-resizer.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/clusterrolebinding-snapshotter.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/controller.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/csidriver.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/metrics.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/node-windows.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/node.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/poddisruptionbudget-controller.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/role-leases.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/rolebinding-leases.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/serviceaccount-csi-controller.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/serviceaccount-csi-node.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/storageclass.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/tests/helm-tester.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/templates/volumesnapshotclass.yaml delete mode 100644 charts/kubezero-storage/charts/aws-ebs-csi-driver/values.yaml delete mode 100644 charts/kubezero-storage/charts/aws-efs-csi-driver/.helmignore delete mode 100644 charts/kubezero-storage/charts/aws-efs-csi-driver/CHANGELOG.md delete mode 100644 charts/kubezero-storage/charts/aws-efs-csi-driver/Chart.yaml delete mode 100644 charts/kubezero-storage/charts/aws-efs-csi-driver/templates/NOTES.txt delete mode 100644 charts/kubezero-storage/charts/aws-efs-csi-driver/templates/_helpers.tpl delete mode 100644 charts/kubezero-storage/charts/aws-efs-csi-driver/templates/controller-deployment.yaml delete mode 100644 charts/kubezero-storage/charts/aws-efs-csi-driver/templates/controller-serviceaccount.yaml delete mode 100644 charts/kubezero-storage/charts/aws-efs-csi-driver/templates/csidriver.yaml delete mode 100644 charts/kubezero-storage/charts/aws-efs-csi-driver/templates/node-daemonset.yaml delete mode 100644 charts/kubezero-storage/charts/aws-efs-csi-driver/templates/node-serviceaccount.yaml delete mode 100644 charts/kubezero-storage/charts/aws-efs-csi-driver/templates/storageclass.yaml delete mode 100644 charts/kubezero-storage/charts/aws-efs-csi-driver/values.yaml delete mode 100644 charts/kubezero-storage/charts/gemini/Chart.yaml delete mode 100644 charts/kubezero-storage/charts/gemini/README.md delete mode 100644 charts/kubezero-storage/charts/gemini/README.md.gotmpl delete mode 100644 charts/kubezero-storage/charts/gemini/ci/test-values.yaml delete mode 100644 charts/kubezero-storage/charts/gemini/crds/crd.yaml delete mode 100644 charts/kubezero-storage/charts/gemini/logo.png delete mode 100644 charts/kubezero-storage/charts/gemini/templates/NOTES.txt delete mode 100644 charts/kubezero-storage/charts/gemini/templates/_helpers.tpl delete mode 100644 charts/kubezero-storage/charts/gemini/templates/deployment.yaml delete mode 100644 charts/kubezero-storage/charts/gemini/templates/rbac.yaml delete mode 100644 charts/kubezero-storage/charts/gemini/templates/test_crd.yaml delete mode 100644 charts/kubezero-storage/charts/gemini/values.yaml delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/.helmignore delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/Chart.yaml delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/README.md delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/charts/crds/.helmignore delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/charts/crds/Chart.yaml delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/charts/crds/templates/_helpers.tpl delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/charts/crds/templates/csi-volume-snapshot-class.yaml delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/charts/crds/templates/csi-volume-snapshot-content.yaml delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/charts/crds/templates/csi-volume-snapshot.yaml delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/charts/crds/templates/lvmnode.yaml delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/charts/crds/templates/lvmsnapshot.yaml delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/charts/crds/templates/lvmvolume.yaml delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/charts/crds/values.yaml delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/templates/NOTES.txt delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/templates/_helpers.tpl delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/templates/csidriver.yaml delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/templates/lvm-controller.yaml delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/templates/lvm-node-service.yaml delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/templates/lvm-node.yaml delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/templates/priority-class.yaml delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/templates/psp.yaml delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/templates/rbac.yaml delete mode 100644 charts/kubezero-storage/charts/lvm-localpv/values.yaml delete mode 100644 charts/kubezero-storage/gemini.patch delete mode 100644 charts/kubezero-storage/jsonnet/Makefile delete mode 120000 charts/kubezero-storage/jsonnet/build.sh delete mode 100644 charts/kubezero-storage/jsonnet/config.libsonnet delete mode 100644 charts/kubezero-storage/jsonnet/dashboards.libsonnet delete mode 100644 charts/kubezero-storage/jsonnet/dashboards.yaml delete mode 100644 charts/kubezero-storage/jsonnet/dashboards/openebs-lvmlocalpv-pool.json delete mode 100644 charts/kubezero-storage/jsonnet/jsonnetfile.json delete mode 100644 charts/kubezero-storage/jsonnet/jsonnetfile.lock.json delete mode 100644 charts/kubezero-storage/jsonnet/prometheusRules.libsonnet delete mode 100644 charts/kubezero-storage/jsonnet/rules.yaml delete mode 100644 charts/kubezero-storage/jsonnet/rules/openebs-mixin-prometheusRules delete mode 100644 charts/kubezero-storage/lvm-localpv.patch delete mode 100644 charts/kubezero-storage/templates/ebs/volumesnapshotclass.yaml delete mode 100644 charts/kubezero-storage/templates/efs/pv.yaml delete mode 100644 charts/kubezero-storage/templates/k8up/crds.yaml delete mode 100644 charts/kubezero-storage/templates/lvm/grafana-dashboards.yaml delete mode 100644 charts/kubezero-storage/templates/lvm/prometheus-rules.yaml delete mode 100644 charts/kubezero-storage/templates/lvm/servicemonitor.yaml delete mode 100644 charts/kubezero-storage/templates/lvm/storageclass.yaml delete mode 100644 charts/kubezero-storage/templates/lvm/volumesnapshotclass.yaml delete mode 100644 charts/kubezero-storage/templates/snapshot-controller/controller.yaml delete mode 100644 charts/kubezero-storage/templates/snapshot-controller/rbac.yaml delete mode 100644 charts/kubezero-storage/templates/snapshot-controller/volumesnapshotclasses-crd.yaml delete mode 100644 charts/kubezero-storage/templates/snapshot-controller/volumesnapshotcontents-crd.yaml delete mode 100644 charts/kubezero-storage/templates/snapshot-controller/volumesnapshots-crd.yaml delete mode 100755 charts/kubezero-storage/update.sh delete mode 100644 charts/kubezero-storage/values.yaml delete mode 100644 charts/kubezero-telemetry/Chart.yaml delete mode 100644 charts/kubezero-telemetry/README.md delete mode 100644 charts/kubezero-telemetry/charts/fluentd/.helmignore delete mode 100644 charts/kubezero-telemetry/charts/fluentd/Chart.yaml delete mode 100644 charts/kubezero-telemetry/charts/fluentd/README.md delete mode 100644 charts/kubezero-telemetry/charts/fluentd/dashboards/fluentd.json delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/NOTES.txt delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/_helpers.tpl delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/_pod.tpl delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/clusterrole.yaml delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/clusterrolebinding.yaml delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/configmap-dashboards.yaml delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/daemonset.yaml delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/deployment.yaml delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/files.conf/prometheus.yaml delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/fluentd-configurations-cm.yaml delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/hpa.yaml delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/ingress.yaml delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/podsecuritypolicy.yaml delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/prometheusrules.yaml delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/service.yaml delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/serviceaccount.yaml delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/servicemonitor.yaml delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/statefulset.yaml delete mode 100644 charts/kubezero-telemetry/charts/fluentd/templates/tests/test-connection.yaml delete mode 100644 charts/kubezero-telemetry/charts/fluentd/values.yaml delete mode 100644 charts/kubezero-telemetry/dashboards.yaml delete mode 100644 charts/kubezero-telemetry/templates/grafana-dashboards.yaml delete mode 100644 charts/kubezero-telemetry/templates/jaeger/istio-authorization-policy.yaml delete mode 100644 charts/kubezero-telemetry/templates/jaeger/istio-service.yaml delete mode 100644 charts/kubezero-telemetry/templates/opensearch/certificates.yaml delete mode 100644 charts/kubezero-telemetry/templates/opensearch/cluster.yaml delete mode 100644 charts/kubezero-telemetry/templates/opensearch/istio-authorization-policy.yaml delete mode 100644 charts/kubezero-telemetry/templates/opensearch/istio-virtualservice.yaml delete mode 100755 charts/kubezero-telemetry/update.sh delete mode 100644 charts/kubezero-telemetry/values-nodes.yaml delete mode 100644 charts/kubezero-telemetry/values.yaml delete mode 100644 charts/kubezero/.gitignore delete mode 100644 charts/kubezero/.helmignore delete mode 100644 charts/kubezero/Chart.yaml delete mode 100644 charts/kubezero/Makefile delete mode 100644 charts/kubezero/README.md delete mode 100644 charts/kubezero/docs/app.yaml delete mode 100644 charts/kubezero/docs/applicationSet.yaml delete mode 100755 charts/kubezero/scripts/argocd_password.py delete mode 100755 charts/kubezero/scripts/delete_istio_17.sh delete mode 100755 charts/kubezero/scripts/patch_vs.sh delete mode 100755 charts/kubezero/scripts/remove_argo_ns.sh delete mode 100755 charts/kubezero/scripts/remove_old_eck.sh delete mode 100644 charts/kubezero/templates/_app.tpl delete mode 100644 charts/kubezero/templates/addons.yaml delete mode 100644 charts/kubezero/templates/argo.yaml delete mode 100644 charts/kubezero/templates/cert-manager.yaml delete mode 100644 charts/kubezero/templates/falco.yaml delete mode 100644 charts/kubezero/templates/istio-ingress.yaml delete mode 100644 charts/kubezero/templates/istio-private-ingress.yaml delete mode 100644 charts/kubezero/templates/istio.yaml delete mode 100644 charts/kubezero/templates/logging.yaml delete mode 100644 charts/kubezero/templates/metrics.yaml delete mode 100644 charts/kubezero/templates/network.yaml delete mode 100644 charts/kubezero/templates/operators.yaml delete mode 100644 charts/kubezero/templates/storage.yaml delete mode 100644 charts/kubezero/templates/telemetry.yaml delete mode 100644 charts/kubezero/values.yaml delete mode 100644 charts/manticore/.helmignore delete mode 100644 charts/manticore/Chart.yaml delete mode 100644 charts/manticore/README.md delete mode 100644 charts/manticore/charts/manticoresearch/Chart.yaml delete mode 100644 charts/manticore/charts/manticoresearch/templates/NOTES.txt delete mode 100644 charts/manticore/charts/manticoresearch/templates/_helpers.tpl delete mode 100644 charts/manticore/charts/manticoresearch/templates/balancer-config-map.yaml delete mode 100644 charts/manticore/charts/manticoresearch/templates/manticore-balancer.yaml delete mode 100644 charts/manticore/charts/manticoresearch/templates/manticore-worker.yaml delete mode 100644 charts/manticore/charts/manticoresearch/templates/rolebinding.yaml delete mode 100644 charts/manticore/charts/manticoresearch/templates/service-balancer.yaml delete mode 100644 charts/manticore/charts/manticoresearch/templates/service-worker.yaml delete mode 100644 charts/manticore/charts/manticoresearch/templates/worker-config-map.yaml delete mode 100644 charts/manticore/charts/manticoresearch/values.yaml delete mode 100644 charts/manticore/values.yaml delete mode 100644 charts/uptime-kuma/Chart.yaml delete mode 100644 charts/uptime-kuma/README.md delete mode 100644 charts/uptime-kuma/README.md.gotmpl delete mode 100644 charts/uptime-kuma/dashboards.yaml delete mode 100644 charts/uptime-kuma/download delete mode 100644 charts/uptime-kuma/templates/grafana-dashboards.yaml delete mode 100644 charts/uptime-kuma/templates/istio-service.yaml delete mode 100644 charts/uptime-kuma/templates/service.yaml delete mode 100644 charts/uptime-kuma/templates/servicemonitor.yaml delete mode 100644 charts/uptime-kuma/templates/statefulset.yaml delete mode 100755 charts/uptime-kuma/update.sh delete mode 100644 charts/uptime-kuma/values.yaml delete mode 100644 cliff.toml delete mode 100644 docs/Quickstart.md delete mode 100644 docs/SA_OIDC.yaml delete mode 100644 docs/_release_hugo.md delete mode 100644 docs/aws_architecture.png delete mode 100644 docs/aws_sidecar.md delete mode 100644 docs/etcd_hackery.md delete mode 100644 docs/expand-control-plane.md delete mode 100644 docs/misc.md delete mode 100644 docs/notes.md delete mode 100644 docs/nvidia-test.yaml delete mode 100644 docs/upgrade.md delete mode 100644 docs/v1.19.md delete mode 100644 docs/v1.20.md delete mode 100644 docs/v1.22.md delete mode 100644 docs/v1.23.md delete mode 100644 docs/v1.24.md delete mode 100644 docs/v1.25.md delete mode 100644 docs/v1.27.md delete mode 100644 docs/v1.28.md rename .ci/ecr_public_lifecycle.py => ecr_public_lifecycle.py (100%) rename .ci/podman.mk => podman.mk (73%) delete mode 100644 renovate.json delete mode 100644 scripts/decode_jwt.sh delete mode 100755 scripts/exec_each_node.sh delete mode 100644 scripts/git-pre-receive-hook.sh delete mode 100755 scripts/lib-update.sh delete mode 100755 scripts/pod_mem_cgroup_limit.sh delete mode 100755 scripts/publish.sh delete mode 100755 scripts/reencrypted_all_sealed_secrets.sh delete mode 100755 scripts/run_cluster_gc_cgroups.sh delete mode 100755 scripts/updateWorkerIamRole.sh delete mode 100755 scripts/update_helm.sh rename {.ci/vars => vars}/buildPodman.groovy (100%) diff --git a/.ci/README.md b/.ci/README.md deleted file mode 100644 index 689e5351..00000000 --- a/.ci/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# ci-tools-lib - -Various toolchain bits and pieces shared between projects - -# Quickstart -Create top-level Makefile -``` -REGISTRY := -IMAGE := -REGION := - -include .ci/podman.mk -``` - -Add subtree to your project: -``` -git subtree add --prefix .ci https://git.zero-downtime.net/ZeroDownTime/ci-tools-lib.git master --squash -``` - - -## Jenkins -Shared groovy libraries - -## Make -Common Makefile include diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 24a8e879..00000000 --- a/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -*.png filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore deleted file mode 100644 index f590abbf..00000000 --- a/.gitignore +++ /dev/null @@ -1,11 +0,0 @@ -# Vim -*.swp - -.vscode -.DS_Store -.idea -**/*.tgz - -# Breaks Helm V3 dependencies in Argo -Chart.lock -kubezero-repo.??? diff --git a/.helmdocsignore b/.helmdocsignore deleted file mode 100644 index 688e7713..00000000 --- a/.helmdocsignore +++ /dev/null @@ -1,2 +0,0 @@ -# Only our own charts, see Makefile -charts/ diff --git a/.versionrc b/.versionrc deleted file mode 100644 index 5795d32c..00000000 --- a/.versionrc +++ /dev/null @@ -1,2 +0,0 @@ -# template: "/tmp/doesntexist" -linkReferences: true diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index b0168fd1..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,46 +0,0 @@ -# Changelog - -## KubeZero - 2.18 ( Argoless ) - -### High level / Admin changes -- ArgoCD is now optional and NOT required nor used during initial cluster bootstrap -- the bootstrap process now uses the same config and templates as the optional ArgoCD applications later on -- the bootstrap is can now be restarted at any time and considerably faster -- the top level KubeZero config for the ArgoCD app-of-apps is now also maintained via the gitops workflow. Changes can be applied by a simple git push rather than manual scripts - -### Calico -- version bump - -### Cert-manager -- local issuers are now cluster issuer to allow them being used across namespaces -- all cert-manager resources moved into the cert-manager namespace -- version bump to 1.10 - -### Kiam -- set priorty class to cluster essential -- certificates are now issued by the cluster issuer - -### EBS / EFS -- version bump - -### Istio -- istio operator removed, deployment migrated to helm, various cleanups -- version bump to 1.8 -- all ingress resources are now in the dedicated new namespace istio-ingress ( deployed via separate kubezero chart istio-ingress) -- set priorty class of ingress components to cluster essential - -### Logging -- ES/Kibana version bump to 7.10 -- ECK operator is now installed on demand in logging ns -- Custom event fields configurable via new fluent-bit chart - e.g. clustername could be added to each event allowing easy filtering in case multiple clusters stream events into a single central ES cluster - -### ArgoCD -- version bump, new app of app architecure - -### Metrics -- version bump -- all servicemonitor resources are now in the same namespaces as the respective apps to avoid deployments across multiple namespaces - -### upstream Kubernetes 1.18 -https://sysdig.com/blog/whats-new-kubernetes-1-18/ diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 8c6c75f4..00000000 --- a/Dockerfile +++ /dev/null @@ -1,38 +0,0 @@ -ARG ALPINE_VERSION=3.19 - -FROM docker.io/alpine:${ALPINE_VERSION} - -ARG ALPINE_VERSION -ARG KUBE_VERSION=1.28.9 - -RUN cd /etc/apk/keys && \ - wget "https://cdn.zero-downtime.net/alpine/stefan@zero-downtime.net-61bb6bfb.rsa.pub" && \ - echo "@kubezero https://cdn.zero-downtime.net/alpine/v${ALPINE_VERSION}/kubezero" >> /etc/apk/repositories && \ - echo "@edge-testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \ - echo "@edge-community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \ - apk upgrade -U -a --no-cache && \ - apk --no-cache add \ - jq \ - yq \ - diffutils \ - bash \ - python3 \ - py3-yaml \ - restic \ - helm \ - cri-tools@kubezero \ - kubeadm@kubezero~=${KUBE_VERSION} \ - kubectl@kubezero~=${KUBE_VERSION} \ - etcdhelper@kubezero \ - etcd-ctl@edge-testing - -RUN helm repo add kubezero https://cdn.zero-downtime.net/charts && \ - mkdir -p /var/lib/kubezero - -ADD admin/kubezero.sh admin/libhelm.sh admin/migrate_argo_values.py /usr/bin -ADD admin/libhelm.sh /var/lib/kubezero - -ADD charts/kubeadm /charts/kubeadm -ADD charts/kubezero /charts/kubezero - -ENTRYPOINT ["kubezero.sh"] diff --git a/.ci/LICENSE b/LICENSE similarity index 100% rename from .ci/LICENSE rename to LICENSE diff --git a/LICENSE.md b/LICENSE.md deleted file mode 100644 index 4ef32f08..00000000 --- a/LICENSE.md +++ /dev/null @@ -1,651 +0,0 @@ -GNU Affero General Public License -================================= - -_Version 3, 19 November 2007_ -_Copyright © 2007 Free Software Foundation, Inc. <>_ - -Everyone is permitted to copy and distribute verbatim copies -of this license document, but changing it is not allowed. - -## Preamble - -The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - -The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - -When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - -Developers that use our General Public Licenses protect your rights -with two steps: **(1)** assert copyright on the software, and **(2)** offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - -A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - -The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - -An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - -The precise terms and conditions for copying, distribution and -modification follow. - -## TERMS AND CONDITIONS - -### 0. Definitions - -“This License” refers to version 3 of the GNU Affero General Public License. - -“Copyright” also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - -“The Program” refers to any copyrightable work licensed under this -License. Each licensee is addressed as “you”. “Licensees” and -“recipients” may be individuals or organizations. - -To “modify” a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a “modified version” of the -earlier work or a work “based on” the earlier work. - -A “covered work” means either the unmodified Program or a work based -on the Program. - -To “propagate” a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - -To “convey” a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - -An interactive user interface displays “Appropriate Legal Notices” -to the extent that it includes a convenient and prominently visible -feature that **(1)** displays an appropriate copyright notice, and **(2)** -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - -### 1. Source Code - -The “source code” for a work means the preferred form of the work -for making modifications to it. “Object code” means any non-source -form of a work. - -A “Standard Interface” means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - -The “System Libraries” of an executable work include anything, other -than the work as a whole, that **(a)** is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and **(b)** serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -“Major Component”, in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - -The “Corresponding Source” for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - -The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - -The Corresponding Source for a work in source code form is that -same work. - -### 2. Basic Permissions - -All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - -You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - -Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - -### 3. Protecting Users' Legal Rights From Anti-Circumvention Law - -No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - -When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - -### 4. Conveying Verbatim Copies - -You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - -You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - -### 5. Conveying Modified Source Versions - -You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - -* **a)** The work must carry prominent notices stating that you modified -it, and giving a relevant date. -* **b)** The work must carry prominent notices stating that it is -released under this License and any conditions added under section 7. -This requirement modifies the requirement in section 4 to -“keep intact all notices”. -* **c)** You must license the entire work, as a whole, under this -License to anyone who comes into possession of a copy. This -License will therefore apply, along with any applicable section 7 -additional terms, to the whole of the work, and all its parts, -regardless of how they are packaged. This License gives no -permission to license the work in any other way, but it does not -invalidate such permission if you have separately received it. -* **d)** If the work has interactive user interfaces, each must display -Appropriate Legal Notices; however, if the Program has interactive -interfaces that do not display Appropriate Legal Notices, your -work need not make them do so. - -A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -“aggregate” if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - -### 6. Conveying Non-Source Forms - -You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - -* **a)** Convey the object code in, or embodied in, a physical product -(including a physical distribution medium), accompanied by the -Corresponding Source fixed on a durable physical medium -customarily used for software interchange. -* **b)** Convey the object code in, or embodied in, a physical product -(including a physical distribution medium), accompanied by a -written offer, valid for at least three years and valid for as -long as you offer spare parts or customer support for that product -model, to give anyone who possesses the object code either **(1)** a -copy of the Corresponding Source for all the software in the -product that is covered by this License, on a durable physical -medium customarily used for software interchange, for a price no -more than your reasonable cost of physically performing this -conveying of source, or **(2)** access to copy the -Corresponding Source from a network server at no charge. -* **c)** Convey individual copies of the object code with a copy of the -written offer to provide the Corresponding Source. This -alternative is allowed only occasionally and noncommercially, and -only if you received the object code with such an offer, in accord -with subsection 6b. -* **d)** Convey the object code by offering access from a designated -place (gratis or for a charge), and offer equivalent access to the -Corresponding Source in the same way through the same place at no -further charge. You need not require recipients to copy the -Corresponding Source along with the object code. If the place to -copy the object code is a network server, the Corresponding Source -may be on a different server (operated by you or a third party) -that supports equivalent copying facilities, provided you maintain -clear directions next to the object code saying where to find the -Corresponding Source. Regardless of what server hosts the -Corresponding Source, you remain obligated to ensure that it is -available for as long as needed to satisfy these requirements. -* **e)** Convey the object code using peer-to-peer transmission, provided -you inform other peers where the object code and Corresponding -Source of the work are being offered to the general public at no -charge under subsection 6d. - -A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - -A “User Product” is either **(1)** a “consumer product”, which means any -tangible personal property which is normally used for personal, family, -or household purposes, or **(2)** anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, “normally used” refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - -“Installation Information” for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - -If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - -The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - -Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - -### 7. Additional Terms - -“Additional permissions” are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - -When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - -Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - -* **a)** Disclaiming warranty or limiting liability differently from the -terms of sections 15 and 16 of this License; or -* **b)** Requiring preservation of specified reasonable legal notices or -author attributions in that material or in the Appropriate Legal -Notices displayed by works containing it; or -* **c)** Prohibiting misrepresentation of the origin of that material, or -requiring that modified versions of such material be marked in -reasonable ways as different from the original version; or -* **d)** Limiting the use for publicity purposes of names of licensors or -authors of the material; or -* **e)** Declining to grant rights under trademark law for use of some -trade names, trademarks, or service marks; or -* **f)** Requiring indemnification of licensors and authors of that -material by anyone who conveys the material (or modified versions of -it) with contractual assumptions of liability to the recipient, for -any liability that these contractual assumptions directly impose on -those licensors and authors. - -All other non-permissive additional terms are considered “further -restrictions” within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - -If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - -Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - -### 8. Termination - -You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - -However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated **(a)** -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and **(b)** permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - -Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - -Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - -### 9. Acceptance Not Required for Having Copies - -You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - -### 10. Automatic Licensing of Downstream Recipients - -Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - -An “entity transaction” is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - -You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - -### 11. Patents - -A “contributor” is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's “contributor version”. - -A contributor's “essential patent claims” are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, “control” includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - -Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - -In the following three paragraphs, a “patent license” is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To “grant” such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - -If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either **(1)** cause the Corresponding Source to be so -available, or **(2)** arrange to deprive yourself of the benefit of the -patent license for this particular work, or **(3)** arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. “Knowingly relying” means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - -If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - -A patent license is “discriminatory” if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license **(a)** in connection with copies of the covered work -conveyed by you (or copies made from those copies), or **(b)** primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - -Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - -### 12. No Surrender of Others' Freedom - -If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - -### 13. Remote Network Interaction; Use with the GNU General Public License - -Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - -Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - -### 14. Revised Versions of this License - -The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License “or any later version” applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - -If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - -Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - -### 15. Disclaimer of Warranty - -THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - -### 16. Limitation of Liability - -IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - -### 17. Interpretation of Sections 15 and 16 - -If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - -_END OF TERMS AND CONDITIONS_ - -## How to Apply These Terms to Your New Programs - -If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - -To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the “copyright” line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - -If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a “Source” link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - -You should also get your employer (if you work as a programmer) or school, -if any, to sign a “copyright disclaimer” for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -<>. diff --git a/Makefile b/Makefile deleted file mode 100644 index 9c32002e..00000000 --- a/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -REGISTRY := public.ecr.aws/zero-downtime -IMAGE := kubezero-admin -REGION := us-east-1 - -# Use KubeZero chart version rather than git tag for admin image -GIT_TAG = v$(shell yq .version < charts/kubezero/Chart.yaml) - -# Also tag as Kubernetes major version -EXTRA_TAGS = $(shell echo $(GIT_TAG) | awk -F '.' '{ print $$1 "." $$2 }') - -include .ci/podman.mk - -update-charts: - ./scripts/update_helm.sh - -update-chart-docs: - for c in charts/*; do \ - [[ $$c =~ "kubezero-lib" ]] && continue ; \ - [[ $$c =~ "kubeadm" ]] && continue ; \ - helm-docs -c $$c ; \ - done - -publish-charts: - ./scripts/publish.sh - diff --git a/README.md b/README.md index 2e903981..689e5351 100644 --- a/README.md +++ b/README.md @@ -1,107 +1,25 @@ -KubeZero - Zero Down Time Kubernetes platform -======================== -KubeZero is a Kubernetes distribution providing an integrated container platform so you can focus on your applications. +# ci-tools-lib -# Design philosophy +Various toolchain bits and pieces shared between projects -- Focus on security and simplicity over feature creep -- No vendor lock in, most components are optional and could be easily changed as needed -- No premium services / subscriptions required -- Staying up to date and contributing back to upstream projects, like alpine-cloud-images and others -- Cloud provider agnostic, bare-metal/self-hosted -- Organic Open Source / open and permissive licenses over closed-source solutions -- Corgi approved :dog: +# Quickstart +Create top-level Makefile +``` +REGISTRY := +IMAGE := +REGION := - -# Architecture -![aws_architecture](docs/aws_architecture.png) - - -# Version / Support Matrix -KubeZero releases track the same *minor* version of Kubernetes. -Any 1.26.X-Y release of Kubezero supports any Kubernetes cluster 1.26.X. - -KubeZero is distributed as a collection of versioned Helm charts, allowing custom upgrade schedules and module versions as needed. - -```mermaid -%%{init: {'theme':'dark'}}%% -gantt - title KubeZero Support Timeline - dateFormat YYYY-MM-DD - section 1.27 - beta :127b, 2023-09-01, 2023-09-30 - release :after 127b, 2024-04-30 - section 1.28 - beta :128b, 2024-03-01, 2024-04-30 - release :after 128b, 2024-08-31 - section 1.29 - beta :129b, 2024-07-01, 2024-08-30 - release :after 129b, 2024-11-30 +include .ci/podman.mk ``` -[Upstream release policy](https://kubernetes.io/releases/) +Add subtree to your project: +``` +git subtree add --prefix .ci https://git.zero-downtime.net/ZeroDownTime/ci-tools-lib.git master --squash +``` -# Components -## OS -- all compute nodes are running on Alpine V3.19 -- 1 or 2 GB encrypted root file system -- no external dependencies at boot time, apart from container registries -- minimal attack surface -- extremely small memory footprint / overhead -- cri-o container runtime incl. AppArmor support +## Jenkins +Shared groovy libraries -## GitOps -- cli / cmd line install -- optional full ArgoCD support and integration - -## Featured workloads -- rootless CI/CD build platform to build containers as part of a CI pipeline, using podman / fuse device plugin support -- containerized AI models via integrated out of the box support for Nvidia GPU workers as well as AWS Neuron - -## Control plane -- all Kubernetes components compiled against Alpine OS using `buildmode=pie` -- support for single node control plane for small clusters / test environments to reduce costs -- access to control plane from within the VPC only by default ( VPN access required for Admin tasks ) -- controller nodes are used for various platform admin controllers / operators to reduce costs and noise on worker nodes - -## AWS integrations -- IAM roles for service accounts allowing each pod to assume individual IAM roles -- access to meta-data services is blocked all workload containers on all nodes -- all IAM roles are maintained via CloudBender automation -- aws-node-termination handler integrated -- support for spot instances per worker group incl. early draining etc. -- support for [Inf1 instances](https://aws.amazon.com/ec2/instance-types/inf1/) part of [AWS Neuron](https://aws.amazon.com/machine-learning/neuron/). - -## Network -- Cilium using Geneve encapsulation, incl. increased MTU allowing flexible / more containers per worker node compared to eg. AWS VPC CNI -- Multus support for multiple network interfaces per pod, eg. additional AWS CNI -- no restrictions on IP space / sizing from the underlying VPC architecture - -## Storage -- flexible EBS support incl. zone awareness -- EFS support via automated EFS provisioning for worker groups via CloudBender automation -- local storage provider (OpenEBS LVM) for latency sensitive high performance workloads -- CSI Snapshot controller and Gemini snapshot groups and retention - -## Ingress -- AWS Network Loadbalancer and Istio Ingress controllers -- no additional costs per exposed service -- real client source IP available to workloads via HTTP header and access logs -- ACME SSL Certificate handling via cert-manager incl. renewal etc. -- support for TCP services -- optional rate limiting support -- optional full service mesh - -## Metrics -- Prometheus support for all components, incl. out of cluster EC2 instances (node_exporter) -- automated service discovery allowing instant access to common workload metrics -- pre-configured Grafana dashboards and alerts -- Alertmanager events via SNSAlertHub to Slack, Google, Matrix, etc. - -## Logging -- all container logs are enhanced with Kubernetes and AWS metadata to provide context for each message -- flexible ElasticSearch setup, leveraging the ECK operator, for easy maintenance & minimal admin knowledge required, incl. automated backups to S3 -- Kibana allowing easy search and dashboards for all logs, incl. pre configured index templates and index management -- [fluentd-concerter](https://git.zero-downtime.net/ZeroDownTime/container-park/src/branch/master/fluentd-concenter) service providing queuing during highload as well as additional parsing options -- lightweight fluent-bit agents on each node requiring minimal resources forwarding logs secure via TLS to fluentd-concenter +## Make +Common Makefile include diff --git a/admin/README.md b/admin/README.md deleted file mode 100644 index 389f57ca..00000000 --- a/admin/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# Cluster upgrade flow - -## During 1.23 upgrade -- create new kubezero-values CM if not exists yet, by merging parts of the legacy /etc/kubernetes/kubeadm-values.yaml values with potentially existing values from kubezero ArgoCD app values - - -# General flow - -- No ArgoCD -> user kubezero-values CM -- ArgoCD -> update kubezero-values CM with current values from ArgoCD app values - -- Apply any upgrades / migrations diff --git a/admin/dev_apply.sh b/admin/dev_apply.sh deleted file mode 100755 index be7a898c..00000000 --- a/admin/dev_apply.sh +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/bash -#set -eEx -#set -o pipefail -set -x - -ARTIFACTS=($(echo $1 | tr "," "\n")) -ACTION=${2:-apply} - -#VERSION="latest" -KUBE_VERSION="$(kubectl version -o json | jq -r .serverVersion.gitVersion)" - -WORKDIR=$(mktemp -p /tmp -d kubezero.XXX) -[ -z "$DEBUG" ] && trap 'rm -rf $WORKDIR' ERR EXIT - -SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) -# shellcheck disable=SC1091 -. "$SCRIPT_DIR"/libhelm.sh -CHARTS="$(dirname $SCRIPT_DIR)/charts" - -### Various hooks for modules - -################ -# cert-manager # -################ -function cert-manager-post() { - # If any error occurs, wait for initial webhook deployment and try again - # see: https://cert-manager.io/docs/concepts/webhook/#webhook-connection-problems-shortly-af -ter-cert-manager-installation - - if [ $rc -ne 0 ]; then - wait_for "kubectl get deployment -n $namespace cert-manager-webhook" - kubectl rollout status deployment -n $namespace cert-manager-webhook - wait_for 'kubectl get validatingwebhookconfigurations -o yaml | grep "caBundle: LS0"' - apply - fi - - wait_for "kubectl get ClusterIssuer -n $namespace kubezero-local-ca-issuer" - kubectl wait --timeout=180s --for=condition=Ready -n $namespace ClusterIssuer/kubezero-local --ca-issuer -} - - -########### -# ArgoCD # -########### -function argocd-pre() { - for f in $CLUSTER/secrets/argocd-*.yaml; do - kubectl apply -f $f - done -} - - -########### -# Metrics # -########### -# Cleanup patch jobs from previous runs , ArgoCD does this automatically -function metrics-pre() { - kubectl delete jobs --field-selector status.successful=1 -n monitoring -} - - -### Main -get_kubezero_values - -# Always use embedded kubezero chart -helm template $CHARTS/kubezero -f $WORKDIR/kubezero-values.yaml --kube-version $KUBE_VERSION --version ~$KUBE_VERSION --devel --output-dir $WORKDIR - -# Resolve all the all enabled artifacts -if [ ${ARTIFACTS[0]} == "all" ]; then - ARTIFACTS=($(ls $WORKDIR/kubezero/templates | sed -e 's/.yaml//g')) -fi - -if [ $ACTION == "apply" -o $ACTION == "crds" ]; then - for t in ${ARTIFACTS[@]}; do - _helm $ACTION $t || true - done - -# Delete in reverse order, continue even if errors -elif [ $ACTION == "delete" ]; then - set +e - for (( idx=${#ARTIFACTS[@]}-1 ; idx>=0 ; idx-- )) ; do - _helm delete ${ARTIFACTS[idx]} || true - done -fi diff --git a/admin/kubezero.sh b/admin/kubezero.sh deleted file mode 100755 index 93732f39..00000000 --- a/admin/kubezero.sh +++ /dev/null @@ -1,406 +0,0 @@ -#!/bin/bash -e - -if [ -n "$DEBUG" ]; then - set -x - LOG="--v=5" -fi - -# include helm lib -. /var/lib/kubezero/libhelm.sh - -# Export vars to ease use in debug_shell etc -export WORKDIR=/tmp/kubezero -export HOSTFS=/host -export CHARTS=/charts -export KUBE_VERSION=$(kubeadm version -o json | jq -r .clientVersion.gitVersion) -export KUBE_VERSION_MINOR=$(echo $KUBE_VERSION | sed -e 's/\.[0-9]*$//') - -export KUBECONFIG="${HOSTFS}/root/.kube/config" - -# etcd -export ETCDCTL_API=3 -export ETCDCTL_CACERT=${HOSTFS}/etc/kubernetes/pki/etcd/ca.crt -export ETCDCTL_CERT=${HOSTFS}/etc/kubernetes/pki/apiserver-etcd-client.crt -export ETCDCTL_KEY=${HOSTFS}/etc/kubernetes/pki/apiserver-etcd-client.key - -mkdir -p ${WORKDIR} - -# Generic retry utility -retry() { - local tries=$1 - local waitfor=$2 - local timeout=$3 - shift 3 - while true; do - type -tf $1 >/dev/null && { timeout $timeout $@ && return; } || { $@ && return; } - let tries=$tries-1 - [ $tries -eq 0 ] && return 1 - sleep $waitfor - done -} - - -_kubeadm() { - kubeadm $@ --config /etc/kubernetes/kubeadm.yaml --rootfs ${HOSTFS} $LOG -} - - -# Render cluster config -render_kubeadm() { - helm template $CHARTS/kubeadm --output-dir ${WORKDIR} -f ${HOSTFS}/etc/kubernetes/kubeadm-values.yaml - - # Assemble kubeadm config - cat /dev/null > ${HOSTFS}/etc/kubernetes/kubeadm.yaml - for f in Cluster Init Join KubeProxy Kubelet; do - # echo "---" >> /etc/kubernetes/kubeadm.yaml - cat ${WORKDIR}/kubeadm/templates/${f}Configuration.yaml >> ${HOSTFS}/etc/kubernetes/kubeadm.yaml - done - - # "uncloak" the json patches after they got processed by helm - for s in apiserver controller-manager scheduler; do - yq eval '.json' ${WORKDIR}/kubeadm/templates/patches/kube-${s}1\+json.yaml > /tmp/_tmp.yaml && \ - mv /tmp/_tmp.yaml ${WORKDIR}/kubeadm/templates/patches/kube-${s}1\+json.yaml - done -} - - -parse_kubezero() { - export CLUSTERNAME=$(yq eval '.global.clusterName // .clusterName' ${HOSTFS}/etc/kubernetes/kubeadm-values.yaml) - export HIGHAVAILABLE=$(yq eval '.global.highAvailable // .highAvailable // "false"' ${HOSTFS}/etc/kubernetes/kubeadm-values.yaml) - export ETCD_NODENAME=$(yq eval '.etcd.nodeName' ${HOSTFS}/etc/kubernetes/kubeadm-values.yaml) - export NODENAME=$(yq eval '.nodeName' ${HOSTFS}/etc/kubernetes/kubeadm-values.yaml) - export PROVIDER_ID=$(yq eval '.providerID // ""' ${HOSTFS}/etc/kubernetes/kubeadm-values.yaml) - export AWS_IAM_AUTH=$(yq eval '.api.awsIamAuth.enabled // "false"' ${HOSTFS}/etc/kubernetes/kubeadm-values.yaml) - - # From here on bail out, allows debug_shell even in error cases - set -e -} - - -# Shared steps before calling kubeadm -pre_kubeadm() { - # update all apiserver addons first - cp -r ${WORKDIR}/kubeadm/templates/apiserver ${HOSTFS}/etc/kubernetes - - # aws-iam-authenticator enabled ? - if [ "$AWS_IAM_AUTH" == "true" ]; then - - # Initialize webhook - if [ ! -f ${HOSTFS}/etc/kubernetes/pki/aws-iam-authenticator.crt ]; then - ${HOSTFS}/usr/bin/aws-iam-authenticator init -i ${CLUSTERNAME} - mv key.pem ${HOSTFS}/etc/kubernetes/pki/aws-iam-authenticator.key - mv cert.pem ${HOSTFS}/etc/kubernetes/pki/aws-iam-authenticator.crt - fi - - # Patch the aws-iam-authenticator config with the actual cert.pem - yq eval -Mi ".clusters[0].cluster.certificate-authority-data = \"$(cat ${HOSTFS}/etc/kubernetes/pki/aws-iam-authenticator.crt| base64 -w0)\"" ${HOSTFS}/etc/kubernetes/apiserver/aws-iam-authenticator.yaml - fi - - # copy patches to host to make --rootfs of kubeadm work - cp -r ${WORKDIR}/kubeadm/templates/patches /host/tmp/ -} - - -# Shared steps after calling kubeadm -post_kubeadm() { - # KubeZero resources - for f in ${WORKDIR}/kubeadm/templates/resources/*.yaml; do - kubectl apply -f $f $LOG - done - - # Patch coreDNS addon, ideally we prevent kubeadm to reset coreDNS to its defaults - kubectl patch deployment coredns -n kube-system --patch-file ${WORKDIR}/kubeadm/templates/patches/coredns0.yaml $LOG - - rm -rf /host/tmp/patches -} - - -kubeadm_upgrade() { - # pre upgrade hook - - # get current values, argo app over cm - get_kubezero_values - - # tumble new config through migrate.py - migrate_argo_values.py < "$WORKDIR"/kubezero-values.yaml > "$WORKDIR"/new-kubezero-values.yaml - - # Update kubezero-values CM - kubectl get cm -n kube-system kubezero-values -o=yaml | \ - yq e '.data."values.yaml" |= load_str("/tmp/kubezero/new-kubezero-values.yaml")' | \ - kubectl replace -f - - - # update argo app - kubectl get application kubezero -n argocd -o yaml | \ - kubezero_chart_version=$(yq .version /charts/kubezero/Chart.yaml) \ - yq '.spec.source.helm.values |= load_str("/tmp/kubezero/new-kubezero-values.yaml") | .spec.source.targetRevision = strenv(kubezero_chart_version)' | \ - kubectl apply -f - - - # finally remove annotation to allow argo to sync again - kubectl patch app kubezero -n argocd --type json -p='[{"op": "remove", "path": "/metadata/annotations"}]' - - # Local node upgrade - render_kubeadm - - pre_kubeadm - - # Upgrade - _kubeadm upgrade apply -y --patches /tmp/patches - - post_kubeadm - - # If we have a re-cert kubectl config install for root - if [ -f ${HOSTFS}/etc/kubernetes/admin.conf ]; then - cp ${HOSTFS}/etc/kubernetes/admin.conf ${HOSTFS}/root/.kube/config - fi - - # post upgrade hook - [ -f /var/lib/kubezero/post-upgrade.sh ] && . /var/lib/kubezero/post-upgrade.sh - - # Cleanup after kubeadm on the host - rm -rf ${HOSTFS}/etc/kubernetes/tmp - - echo "Successfully upgraded kubeadm control plane." - - # TODO - # Send Notification currently done via CloudBender -> SNS -> Slack - # Better deploy https://github.com/opsgenie/kubernetes-event-exporter and set proper routes and labels on this Job - - # Removed: - # - update oidc do we need that ? -} - - -control_plane_node() { - CMD=$1 - - render_kubeadm - - # Ensure clean slate if bootstrap, restore PKI otherwise - if [[ "$CMD" =~ ^(bootstrap)$ ]]; then - rm -rf ${HOSTFS}/var/lib/etcd/member - - else - # restore latest backup - retry 10 60 30 restic restore latest --no-lock -t / # --tag $KUBE_VERSION_MINOR - - # Make last etcd snapshot available - cp ${WORKDIR}/etcd_snapshot ${HOSTFS}/etc/kubernetes - - # Put PKI in place - cp -r ${WORKDIR}/pki ${HOSTFS}/etc/kubernetes - - # Always use kubeadm kubectl config to never run into chicken egg with custom auth hooks - cp ${WORKDIR}/admin.conf ${HOSTFS}/root/.kube/config - - # Only restore etcd data during "restore" and none exists already - if [[ "$CMD" =~ ^(restore)$ ]]; then - if [ ! -d ${HOSTFS}/var/lib/etcd/member ]; then - etcdctl snapshot restore ${HOSTFS}/etc/kubernetes/etcd_snapshot \ - --name $ETCD_NODENAME \ - --data-dir="${HOSTFS}/var/lib/etcd" \ - --initial-cluster-token etcd-${CLUSTERNAME} \ - --initial-advertise-peer-urls https://${ETCD_NODENAME}:2380 \ - --initial-cluster $ETCD_NODENAME=https://${ETCD_NODENAME}:2380 - fi - fi - fi - - # Delete old node certs in case they are around - rm -f ${HOSTFS}/etc/kubernetes/pki/etcd/peer.* ${HOSTFS}/etc/kubernetes/pki/etcd/server.* ${HOSTFS}/etc/kubernetes/pki/etcd/healthcheck-client.* \ - ${HOSTFS}/etc/kubernetes/pki/apiserver* ${HOSTFS}/etc/kubernetes/pki/front-proxy-client.* - - # Issue all certs first, needed for eg. aws-iam-authenticator setup - _kubeadm init phase certs all - - pre_kubeadm - - # Pull all images - _kubeadm config images pull - - _kubeadm init phase preflight - _kubeadm init phase kubeconfig all - - if [[ "$CMD" =~ ^(join)$ ]]; then - # Delete any former self in case forseti did not delete yet - kubectl delete node ${NODENAME} --wait=true || true - # Wait for all pods to be deleted otherwise we end up with stale pods eg. kube-proxy and all goes to .... - kubectl delete pods -n kube-system --field-selector spec.nodeName=${NODENAME} - - # get current running etcd pods for etcdctl commands - while true; do - etcd_endpoints=$(kubectl get pods -n kube-system -l component=etcd -o yaml | \ - yq eval '.items[].metadata.annotations."kubeadm.kubernetes.io/etcd.advertise-client-urls"' - | tr '\n' ',' | sed -e 's/,$//') - [[ $etcd_endpoints =~ ^https:// ]] && break - sleep 3 - done - - # see if we are a former member and remove our former self if so - MY_ID=$(etcdctl member list --endpoints=$etcd_endpoints | grep $ETCD_NODENAME | awk '{print $1}' | sed -e 's/,$//') - [ -n "$MY_ID" ] && retry 12 5 5 etcdctl member remove $MY_ID --endpoints=$etcd_endpoints - - # flush etcd data directory as joining with previous storage seems flaky, especially during etcd version upgrades - rm -rf ${HOSTFS}/var/lib/etcd/member - - # Announce new etcd member and capture ETCD_INITIAL_CLUSTER, retry needed in case another node joining causes temp quorum loss - ETCD_ENVS=$(retry 12 5 5 etcdctl member add $ETCD_NODENAME --peer-urls="https://${ETCD_NODENAME}:2380" --endpoints=$etcd_endpoints) - export $(echo "$ETCD_ENVS" | grep ETCD_INITIAL_CLUSTER= | sed -e 's/"//g') - - # Patch kubeadm-values.yaml and re-render to get etcd manifest patched - yq eval -i '.etcd.state = "existing" - | .etcd.initialCluster = strenv(ETCD_INITIAL_CLUSTER) - ' ${HOSTFS}/etc/kubernetes/kubeadm-values.yaml - render_kubeadm - fi - - # Generate our custom etcd yaml - _kubeadm init phase etcd local - _kubeadm init phase control-plane all - - _kubeadm init phase kubelet-start - - cp ${HOSTFS}/etc/kubernetes/admin.conf ${HOSTFS}/root/.kube/config - - # Wait for api to be online - echo "Waiting for Kubernetes API to be online ..." - retry 0 5 30 kubectl cluster-info --request-timeout 3 >/dev/null - - # Update providerID as underlying VM changed during restore - if [[ "$CMD" =~ ^(restore)$ ]]; then - if [ -n "$PROVIDER_ID" ]; then - etcdhelper \ - -cacert ${HOSTFS}/etc/kubernetes/pki/etcd/ca.crt \ - -cert ${HOSTFS}/etc/kubernetes/pki/etcd/server.crt \ - -key ${HOSTFS}/etc/kubernetes/pki/etcd/server.key \ - -endpoint https://${ETCD_NODENAME}:2379 \ - change-provider-id ${NODENAME} $PROVIDER_ID - fi - fi - - if [[ "$CMD" =~ ^(bootstrap|restore)$ ]]; then - _kubeadm init phase upload-config all - _kubeadm init phase upload-certs --skip-certificate-key-print - - # This sets up the ClusterRoleBindings to allow bootstrap nodes to create CSRs etc. - _kubeadm init phase bootstrap-token --skip-token-print - fi - - _kubeadm init phase mark-control-plane - _kubeadm init phase kubelet-finalize all - - if [[ "$CMD" =~ ^(bootstrap|restore)$ ]]; then - _kubeadm init phase addon all - fi - - # Ensure aws-iam-authenticator secret is in place - if [ "$AWS_IAM_AUTH" == "true" ]; then - kubectl get secrets -n kube-system aws-iam-certs || \ - kubectl create secret generic aws-iam-certs -n kube-system \ - --from-file=key.pem=${HOSTFS}/etc/kubernetes/pki/aws-iam-authenticator.key \ - --from-file=cert.pem=${HOSTFS}/etc/kubernetes/pki/aws-iam-authenticator.crt - - # Store aws-iam-auth admin on SSM - yq eval -M ".clusters[0].cluster.certificate-authority-data = \"$(cat ${HOSTFS}/etc/kubernetes/pki/ca.crt | base64 -w0)\"" ${WORKDIR}/kubeadm/templates/admin-aws-iam.yaml > ${HOSTFS}/etc/kubernetes/admin-aws-iam.yaml - fi - - post_kubeadm - - echo "${1} cluster $CLUSTERNAME successfull." -} - - -apply_module() { - MODULES=$1 - - get_kubezero_values - - # Always use embedded kubezero chart - helm template $CHARTS/kubezero -f $WORKDIR/kubezero-values.yaml --version ~$KUBE_VERSION --devel --output-dir $WORKDIR - - # CRDs first - for t in $MODULES; do - _helm crds $t - done - - for t in $MODULES; do - _helm apply $t - done - - echo "Applied KubeZero modules: $MODULES" -} - - -delete_module() { - MODULES=$1 - - get_kubezero_values - - # Always use embedded kubezero chart - helm template $CHARTS/kubezero -f $WORKDIR/kubezero-values.yaml --version ~$KUBE_VERSION --devel --output-dir $WORKDIR - - for t in $MODULES; do - _helm delete $t - done - - echo "Deleted KubeZero modules: $MODULES. Potential CRDs must be removed manually." -} - -# backup etcd + /etc/kubernetes/pki -backup() { - # Display all ENVs, careful this exposes the password ! - [ -n "$DEBUG" ] && env - - restic snapshots || restic init || exit 1 - - CV=$(kubectl version -o json | jq .serverVersion.minor -r) - let PCV=$CV-1 - - CLUSTER_VERSION="v1.$CV" - PREVIOUS_VERSION="v1.$PCV" - - etcdctl --endpoints=https://${ETCD_NODENAME}:2379 snapshot save ${WORKDIR}/etcd_snapshot - - # pki & cluster-admin access - cp -r ${HOSTFS}/etc/kubernetes/pki ${WORKDIR} - cp -r ${HOSTFS}/etc/kubernetes/admin.conf ${WORKDIR} - - # Backup via restic - restic backup ${WORKDIR} -H $CLUSTERNAME --tag $CLUSTER_VERSION - - echo "Backup complete." - - # Remove backups from pre-previous versions - restic forget --keep-tag $CLUSTER_VERSION --keep-tag $PREVIOUS_VERSION --prune - - # Regular retention - restic forget --keep-hourly 24 --keep-daily ${RESTIC_RETENTION:-7} --prune - - # Defrag etcd backend - etcdctl --endpoints=https://${ETCD_NODENAME}:2379 defrag -} - - -debug_shell() { - echo "Entering debug shell" - - printf "For manual etcdctl commands use:\n # export ETCDCTL_ENDPOINTS=$ETCD_NODENAME:2379\n" - - /bin/bash -} - -# First parse kubeadm-values.yaml -parse_kubezero - -# Execute tasks -for t in $@; do - case "$t" in - kubeadm_upgrade) kubeadm_upgrade;; - bootstrap) control_plane_node bootstrap;; - join) control_plane_node join;; - restore) control_plane_node restore;; - apply_*) apply_module "${t##apply_}";; - delete_*) delete_module "${t##delete_}";; - backup) backup;; - debug_shell) debug_shell;; - *) echo "Unknown command: '$t'";; - esac -done diff --git a/admin/libhelm.sh b/admin/libhelm.sh deleted file mode 100644 index 2e4aa524..00000000 --- a/admin/libhelm.sh +++ /dev/null @@ -1,309 +0,0 @@ -#!/bin/bash - -# Simulate well-known CRDs being available -API_VERSIONS="-a monitoring.coreos.com/v1 -a snapshot.storage.k8s.io/v1 -a policy/v1/PodDisruptionBudget" - -#VERSION="latest" -VERSION="v1.28" - -# Waits for max 300s and retries -function wait_for() { - local TRIES=0 - while true; do - eval " $@" && break - [ $TRIES -eq 100 ] && return 1 - let TRIES=$TRIES+1 - sleep 3 - done -} - - -function chart_location() { - echo "$1 --repo https://cdn.zero-downtime.net/charts" -} - - -function argo_used() { - kubectl get application kubezero -n argocd >/dev/null && rc=$? || rc=$? - return $rc -} - - -# get kubezero-values from ArgoCD if available or use in-cluster CM without Argo -function get_kubezero_values() { - argo_used && \ - { kubectl get application kubezero -n argocd -o yaml | yq .spec.source.helm.values > ${WORKDIR}/kubezero-values.yaml; } || \ - { kubectl get configmap -n kube-system kubezero-values -o yaml | yq '.data."values.yaml"' > ${WORKDIR}/kubezero-values.yaml ;} -} - - -function disable_argo() { - cat > _argoapp_patch.yaml < $WORKDIR/helm-no-crds.yaml - helm template $(chart_location $chart) -n $namespace --name-template $module $targetRevision --include-crds --set ${module}.installCRDs=true -f $WORKDIR/values.yaml $API_VERSIONS --kube-version $KUBE_VERSION > $WORKDIR/helm-crds.yaml - diff -e $WORKDIR/helm-no-crds.yaml $WORKDIR/helm-crds.yaml | head -n-1 | tail -n+2 > $WORKDIR/crds.yaml - - # Only apply if there are actually any crds - if [ -s $WORKDIR/crds.yaml ]; then - [ -n "$DEBUG" ] && cat $WORKDIR/crds.yaml - kubectl apply -f $WORKDIR/crds.yaml --server-side --force-conflicts - fi -} - - -# helm template | kubectl apply -f - -# confine to one namespace if possible -function render() { - helm template $(chart_location $chart) -n $namespace --name-template $module $targetRevision --skip-crds -f $WORKDIR/values.yaml $API_VERSIONS --kube-version $KUBE_VERSION $@ \ - | python3 -c ' -#!/usr/bin/python3 -import yaml -import sys - -for manifest in yaml.safe_load_all(sys.stdin): - if manifest: - if "metadata" in manifest and "namespace" not in manifest["metadata"]: - manifest["metadata"]["namespace"] = sys.argv[1] - print("---") - print(yaml.dump(manifest))' $namespace > $WORKDIR/helm.yaml -} - - -function _helm() { - local action=$1 - local module=$2 - - # check if module is even enabled and return if not - [ ! -f $WORKDIR/kubezero/templates/${module}.yaml ] && { echo "Module $module disabled. No-op."; return 0; } - - local chart="$(yq eval '.spec.source.chart' $WORKDIR/kubezero/templates/${module}.yaml)" - local namespace="$(yq eval '.spec.destination.namespace' $WORKDIR/kubezero/templates/${module}.yaml)" - - targetRevision="" - _version="$(yq eval '.spec.source.targetRevision' $WORKDIR/kubezero/templates/${module}.yaml)" - - [ -n "$_version" ] && targetRevision="--version $_version" - - yq eval '.spec.source.helm.values' $WORKDIR/kubezero/templates/${module}.yaml > $WORKDIR/values.yaml - - echo "using values to $action of module $module: " - cat $WORKDIR/values.yaml - - if [ $action == "crds" ]; then - # Allow custom CRD handling - declare -F ${module}-crds && ${module}-crds || _crds - - elif [ $action == "apply" ]; then - # namespace must exist prior to apply - create_ns $namespace - - # Optional pre hook - declare -F ${module}-pre && ${module}-pre - - render - kubectl $action -f $WORKDIR/helm.yaml --server-side --force-conflicts && rc=$? || rc=$? - - # Try again without server-side, review with 1.26, required for cert-manager during 1.25 - [ $rc -ne 0 ] && kubectl $action -f $WORKDIR/helm.yaml && rc=$? || rc=$? - - # Optional post hook - declare -F ${module}-post && ${module}-post - - elif [ $action == "delete" ]; then - render - kubectl $action -f $WORKDIR/helm.yaml && rc=$? || rc=$? - - # Delete dedicated namespace if not kube-system - [ -n "$DELETE_NS" ] && delete_ns $namespace - fi - - return 0 -} - -function all_nodes_upgrade() { - CMD="$1" - - echo "Deploy all node upgrade daemonSet(busybox)" - cat </dev/null - while true; do - kubectl logs kubezero-upgrade -n kube-system -f 2>/dev/null && break - sleep 3 - done - kubectl delete pod kubezero-upgrade -n kube-system -} diff --git a/admin/migrate_argo_values.py b/admin/migrate_argo_values.py deleted file mode 100755 index 38fafd80..00000000 --- a/admin/migrate_argo_values.py +++ /dev/null @@ -1,88 +0,0 @@ -#!/usr/bin/env python3 -import sys -import argparse -import io -import yaml - - -def migrate(values): - """Actual changes here""" - - # argoCD moves to argo module - try: - if values["argocd"]["enabled"]: - values["argo"] = { "enabled": True, "argo-cd": values["argocd"] } - values.pop("argocd") - except KeyError: - pass - - return values - - -def deleteKey(values, key): - """Delete key from dictionary if exists""" - try: - values.pop(key) - except KeyError: - pass - - return values - - -class MyDumper(yaml.Dumper): - """ - Required to add additional indent for arrays to match yq behaviour to reduce noise in diffs - """ - - def increase_indent(self, flow=False, indentless=False): - return super(MyDumper, self).increase_indent(flow, False) - - -def str_presenter(dumper, data): - if len(data.splitlines()) > 1: # check for multiline string - return dumper.represent_scalar("tag:yaml.org,2002:str", data, style="|") - return dumper.represent_scalar("tag:yaml.org,2002:str", data) - - -def rec_sort(d): - if isinstance(d, dict): - res = dict() - - # Always have "enabled" first if present - if "enabled" in d.keys(): - res["enabled"] = rec_sort(d["enabled"]) - d.pop("enabled") - - # next is "name" if present - if "name" in d.keys(): - res["name"] = rec_sort(d["name"]) - d.pop("name") - - for k in sorted(d.keys()): - res[k] = rec_sort(d[k]) - return res - if isinstance(d, list): - for idx, elem in enumerate(d): - d[idx] = rec_sort(elem) - - return d - - -yaml.add_representer(str, str_presenter) - -# to use with safe_dump: -yaml.representer.SafeRepresenter.add_representer(str, str_presenter) - -# Read values -values = yaml.safe_load(sys.stdin) - -# Output new values -buffer = io.StringIO() -yaml.dump( - rec_sort(migrate(values)), - sys.stdout, - default_flow_style=False, - indent=2, - sort_keys=False, - Dumper=MyDumper, -) diff --git a/admin/upgrade_cluster.sh b/admin/upgrade_cluster.sh deleted file mode 100755 index 53916e7a..00000000 --- a/admin/upgrade_cluster.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash -set -eE -set -o pipefail - -ARGO_APP=${1:-/tmp/new-kubezero-argoapp.yaml} - -SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) -# shellcheck disable=SC1091 -[ -n "$DEBUG" ] && set -x - -. "$SCRIPT_DIR"/libhelm.sh - -echo "Checking that all pods in kube-system are running ..." -waitSystemPodsRunning - -argo_used && disable_argo - -#all_nodes_upgrade "" - -control_plane_upgrade kubeadm_upgrade - -#echo "Adjust kubezero values as needed:" -# shellcheck disable=SC2015 -#argo_used && kubectl edit app kubezero -n argocd || kubectl edit cm kubezero-values -n kube-system - -### v1.28 -# - remove old argocd app, all resources will be taken over by argo.argo-cd -argo_used && rc=$? || rc=$? -if [ $rc -eq 0 ]; then - kubectl patch app argocd -n argocd \ - --type json \ - --patch='[ { "op": "remove", "path": "/metadata/finalizers" } ]' && \ - kubectl delete app argocd -n argocd || true - - # remove legacy argocd app resources, but NOT kubezero-git-sync nor the appproject - kubectl api-resources --verbs=list --namespaced -o name | grep -ve 'app.*argoproj' | xargs -n 1 kubectl delete --ignore-not-found -l argocd.argoproj.io/instance=argocd -n argocd -fi - -# upgrade modules -control_plane_upgrade "apply_network, apply_addons, apply_storage, apply_operators" - -echo "Checking that all pods in kube-system are running ..." -waitSystemPodsRunning - -echo "Applying remaining KubeZero modules..." - -control_plane_upgrade "apply_cert-manager, apply_istio, apply_istio-ingress, apply_istio-private-ingress, apply_logging, apply_metrics, apply_telemetry, apply_argo" - -# Trigger backup of upgraded cluster state -kubectl create job --from=cronjob/kubezero-backup kubezero-backup-$VERSION -n kube-system -while true; do - kubectl wait --for=condition=complete job/kubezero-backup-$VERSION -n kube-system 2>/dev/null && kubectl delete job kubezero-backup-$VERSION -n kube-system && break - sleep 1 -done - -# Final step is to commit the new argocd kubezero app -kubectl get app kubezero -n argocd -o yaml | yq 'del(.status) | del(.metadata) | del(.operation) | .metadata.name="kubezero" | .metadata.namespace="argocd"' | yq 'sort_keys(..) | .spec.source.helm.values |= (from_yaml | to_yaml)' > $ARGO_APP - -echo "Please commit $ARGO_APP as the updated kubezero/application.yaml for your cluster." -echo "Then head over to ArgoCD for this cluster and sync all KubeZero modules to apply remaining upgrades." - -echo " to continue and re-enable ArgoCD:" -read -r - -argo_used && enable_argo diff --git a/charts/clamav/.helmignore b/charts/clamav/.helmignore deleted file mode 100644 index 095cd7c5..00000000 --- a/charts/clamav/.helmignore +++ /dev/null @@ -1,24 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ -clamav.yaml diff --git a/charts/clamav/Chart.yaml b/charts/clamav/Chart.yaml deleted file mode 100644 index dae684b0..00000000 --- a/charts/clamav/Chart.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v2 -name: clamav -description: Chart for deploying a ClamAVd on Kubernetes as statfulSet -type: application -version: "0.3.1" -appVersion: "1.2.1" -home: https://kubezero.com -icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png -keywords: - - kubezero - - clamav -maintainers: - - name: Stefan Reimer - email: stefan@zero-downtime.net -dependencies: - - name: kubezero-lib - version: ">= 0.1.6" - repository: https://cdn.zero-downtime.net/charts/ -kubeVersion: ">= 1.26.0" diff --git a/charts/clamav/README.md b/charts/clamav/README.md deleted file mode 100644 index b95fdece..00000000 --- a/charts/clamav/README.md +++ /dev/null @@ -1,41 +0,0 @@ -# clamav - -![Version: 0.3.1](https://img.shields.io/badge/Version-0.3.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.2.1](https://img.shields.io/badge/AppVersion-1.2.1-informational?style=flat-square) - -Chart for deploying a ClamAVd on Kubernetes as statfulSet - -**Homepage:** - -## Maintainers - -| Name | Email | Url | -| ---- | ------ | --- | -| Stefan Reimer | | | - -## Requirements - -Kubernetes: `>= 1.26.0` - -| Repository | Name | Version | -|------------|------|---------| -| https://cdn.zero-downtime.net/charts/ | kubezero-lib | >= 0.1.6 | - -## Values - -| Key | Type | Default | Description | -|-----|------|---------|-------------| -| freshclam.mirrors | string | `"database.clamav.net"` | A list of clamav mirrors to be used by the clamav service | -| fullnameOverride | string | `""` | override the full name of the clamav chart | -| image | object | `{"repository":"clamav/clamav","type":"base"}` | The clamav docker image | -| limits.connectionQueueLength | int | `100` | Maximum length the queue of pending connections may grow to | -| limits.fileSize | int | `25` | The largest file size scanable by clamav, in MB | -| limits.maxThreads | int | `4` | Maximum number of threads running at the same time. | -| limits.scanSize | int | `100` | The largest scan size permitted in clamav, in MB | -| limits.sendBufTimeout | int | `500` | | -| nameOverride | string | `""` | override the name of the clamav chart | -| replicaCount | int | `1` | | -| resources | object | `{"requests":{"cpu":"300m","memory":"2000M"}}` | The resource requests and limits for the clamav service | -| service.port | int | `3310` | The port to be used by the clamav service | - ----------------------------------------------- -Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0) diff --git a/charts/clamav/templates/configmap.yaml b/charts/clamav/templates/configmap.yaml deleted file mode 100644 index 364d097e..00000000 --- a/charts/clamav/templates/configmap.yaml +++ /dev/null @@ -1,52 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ include "kubezero-lib.fullname" . }} - namespace: {{ .Release.Namespace }} - labels: - {{- include "kubezero-lib.labels" . | nindent 4 }} -data: - clamd.conf: | - LogTime yes - LogClean yes - LogSyslog no - LogVerbose yes - LogFileMaxSize 0 - LogFile /dev/stdout - DatabaseDirectory /var/lib/clamav - TCPSocket 3310 - LocalSocket /run/clamav/clamd.sock - User clamav - ExitOnOOM yes - Foreground yes - MaxScanSize {{.Values.limits.scanSize}}M - MaxFileSize {{.Values.limits.fileSize}}M - - # Close the connection when the data size limit is exceeded. - # The value should match your MTA's limit for a maximum attachment size. - # Default: 25M - StreamMaxLength {{.Values.limits.scanSize}}M - - # Maximum length the queue of pending connections may grow to. - # Default: 200 - MaxConnectionQueueLength {{.Values.limits.connectionQueueLength}} - - # Maximum number of threads running at the same time. - # Default: 10 - MaxThreads {{.Values.limits.maxThreads}} - - # This option specifies how long to wait (in milliseconds) if the send buffer - # is full. - # Keep this value low to prevent clamd hanging. - # - # Default: 500 - SendBufTimeout {{.Values.limits.sendBufTimeout}} - - freshclam.conf: | - LogTime yes - LogVerbose yes - NotifyClamd /etc/clamav/clamd.conf - Checks 24 - LogSyslog no - DatabaseOwner root - DatabaseMirror {{ .Values.freshclam.mirrors }} diff --git a/charts/clamav/templates/service.yaml b/charts/clamav/templates/service.yaml deleted file mode 100644 index d572fddc..00000000 --- a/charts/clamav/templates/service.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ include "kubezero-lib.fullname" . }} - namespace: {{ .Release.Namespace }} - labels: - {{- include "kubezero-lib.labels" . | nindent 4 }} -spec: - ports: - - port: {{ .Values.service.port }} - targetPort: 3310 - protocol: TCP - name: clamav - selector: - {{- include "kubezero-lib.selectorLabels" . | nindent 4 }} diff --git a/charts/clamav/templates/statefulset.yaml b/charts/clamav/templates/statefulset.yaml deleted file mode 100644 index 09a3b660..00000000 --- a/charts/clamav/templates/statefulset.yaml +++ /dev/null @@ -1,78 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: {{ include "kubezero-lib.fullname" . }} - namespace: {{ .Release.Namespace }} - labels: - {{- include "kubezero-lib.labels" . | nindent 4 }} -spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "kubezero-lib.selectorLabels" . | nindent 6 }} - serviceName: {{ include "kubezero-lib.fullname" . }} - template: - metadata: - labels: - {{- include "kubezero-lib.selectorLabels" . | nindent 8 }} - annotations: - checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} - spec: - containers: - - name: clamav - image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}_{{ .Values.image.type }}" - ports: - - containerPort: 3310 - name: clamav - protocol: TCP - # Give clamav up to 300s to get CVDs in place etc. - startupProbe: - exec: - command: - - /usr/local/bin/clamdcheck.sh - failureThreshold: 30 - periodSeconds: 10 - livenessProbe: - exec: - command: - - /usr/local/bin/clamdcheck.sh - failureThreshold: 2 - periodSeconds: 30 - successThreshold: 1 - timeoutSeconds: 3 - resources: - {{- toYaml .Values.resources | nindent 10 }} - volumeMounts: - - mountPath: /var/lib/clamav - name: signatures - - mountPath: /etc/clamav - name: config-volume - #securityContext: - # runAsNonRoot: true - volumes: - - name: config-volume - configMap: - name: {{ include "kubezero-lib.fullname" . }} - {{- with .Values.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} - volumeClaimTemplates: - - metadata: - name: signatures - spec: - accessModes: [ "ReadWriteOnce" ] - {{- with .Values.storageClassName }} - storageClassName: {{ . }} - {{- end }} - resources: - requests: - storage: 2Gi diff --git a/charts/clamav/update.sh b/charts/clamav/update.sh deleted file mode 100755 index b09a8bf0..00000000 --- a/charts/clamav/update.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -ex - -. ../../scripts/lib-update.sh - -update_helm - - -update_docs diff --git a/charts/clamav/values.yaml b/charts/clamav/values.yaml deleted file mode 100644 index 3cbfb35a..00000000 --- a/charts/clamav/values.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# nameOverride -- override the name of the clamav chart -nameOverride: "" - -# fullnameOverride -- override the full name of the clamav chart -fullnameOverride: "" - -# image -- The clamav docker image -image: - repository: clamav/clamav - # version: "latest" - type: base - -replicaCount: 1 - -freshclam: - # freshclam.mirrors -- A list of clamav mirrors to be used by the clamav service - mirrors: database.clamav.net -limits: - # limits.fileSize -- The largest file size scanable by clamav, in MB - fileSize: 25 - # limits.scanSize -- The largest scan size permitted in clamav, in MB - scanSize: 100 - # limits.connectionQueueLength -- Maximum length the queue of pending connections may grow to - connectionQueueLength: 100 - # limits.maxThreads --Maximum number of threads running at the same time. - maxThreads: 4 - # sendBufTimeout -- This option specifies how long to wait (in milliseconds) if the send buffer is full, keep low to avoid clamd hanging - sendBufTimeout: 500 - -service: - # service.port -- The port to be used by the clamav service - port: 3310 - -resources: - # resources -- The resource requests and limits for the clamav service - requests: - cpu: 300m - memory: 2000M - #limits: - # cpu: 2 - # memory: 4000M diff --git a/charts/kubeadm/.helmignore b/charts/kubeadm/.helmignore deleted file mode 100644 index cc1438c2..00000000 --- a/charts/kubeadm/.helmignore +++ /dev/null @@ -1,2 +0,0 @@ -*.md -*.md.gotmpl diff --git a/charts/kubeadm/Chart.yaml b/charts/kubeadm/Chart.yaml deleted file mode 100644 index 6e0d1f76..00000000 --- a/charts/kubeadm/Chart.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v2 -name: kubeadm -description: KubeZero Kubeadm cluster config -type: application -version: 1.28.9 -home: https://kubezero.com -icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png -keywords: - - kubezero - - kubeadm -maintainers: - - name: Stefan Reimer - email: stefan@zero-downtime.net -kubeVersion: ">= 1.26.0" diff --git a/charts/kubeadm/README.md b/charts/kubeadm/README.md deleted file mode 100644 index c7c68b88..00000000 --- a/charts/kubeadm/README.md +++ /dev/null @@ -1,57 +0,0 @@ -# kubeadm - -![Version: 1.25.8](https://img.shields.io/badge/Version-1.25.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) - -KubeZero Kubeadm cluster config - -**Homepage:** - -## Maintainers - -| Name | Email | Url | -| ---- | ------ | --- | -| Stefan Reimer | | | - -## Requirements - -Kubernetes: `>= 1.25.0` - -## Values - -| Key | Type | Default | Description | -|-----|------|---------|-------------| -| api.apiAudiences | string | `"istio-ca"` | | -| api.awsIamAuth.enabled | bool | `false` | | -| api.awsIamAuth.kubeAdminRole | string | `"arn:aws:iam::000000000000:role/KubernetesNode"` | | -| api.awsIamAuth.workerNodeRole | string | `"arn:aws:iam::000000000000:role/KubernetesNode"` | | -| api.endpoint | string | `"kube-api.changeme.org:6443"` | | -| api.etcdServers | string | `"https://etcd:2379"` | | -| api.extraArgs | object | `{}` | | -| api.listenPort | int | `6443` | | -| api.oidcEndpoint | string | `""` | s3://${CFN[ConfigBucket]}/k8s/$CLUSTERNAME | -| api.serviceAccountIssuer | string | `""` | https://s3.${REGION}.amazonaws.com/${CFN[ConfigBucket]}/k8s/$CLUSTERNAME | -| domain | string | `"changeme.org"` | | -| etcd.extraArgs | object | `{}` | | -| etcd.nodeName | string | `"etcd"` | | -| etcd.state | string | `"new"` | | -| global.clusterName | string | `"pleasechangeme"` | | -| global.highAvailable | bool | `false` | | -| listenAddress | string | `"0.0.0.0"` | Needs to be set to primary node IP | -| nodeName | string | `"kubezero-node"` | set to $HOSTNAME | -| protectKernelDefaults | bool | `false` | | -| systemd | bool | `false` | Set to false for openrc, eg. on Gentoo or Alpine | - -## Resources - -- https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm/ -- https://godoc.org/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta3 -- https://pkg.go.dev/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta3 -- https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/kubelet/config/v1beta1/types.go -- https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/control-plane-flags/ -- https://godoc.org/k8s.io/kube-proxy/config/v1alpha1#KubeProxyConfiguration - -- https://github.com/awslabs/amazon-eks-ami - -### Etcd -- https://itnext.io/breaking-down-and-fixing-etcd-cluster-d81e35b9260d - diff --git a/charts/kubeadm/README.md.gotmpl b/charts/kubeadm/README.md.gotmpl deleted file mode 100644 index 43d20a82..00000000 --- a/charts/kubeadm/README.md.gotmpl +++ /dev/null @@ -1,31 +0,0 @@ -{{ template "chart.header" . }} -{{ template "chart.deprecationWarning" . }} - -{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }} - -{{ template "chart.description" . }} - -{{ template "chart.homepageLine" . }} - -{{ template "chart.maintainersSection" . }} - -{{ template "chart.sourcesSection" . }} - -{{ template "chart.requirementsSection" . }} - -{{ template "chart.valuesSection" . }} - -## Resources - -- https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm/ -- https://godoc.org/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta3 -- https://pkg.go.dev/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta3 -- https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/kubelet/config/v1beta1/types.go -- https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/control-plane-flags/ -- https://godoc.org/k8s.io/kube-proxy/config/v1alpha1#KubeProxyConfiguration - -- https://github.com/awslabs/amazon-eks-ami - -### Etcd -- https://itnext.io/breaking-down-and-fixing-etcd-cluster-d81e35b9260d - diff --git a/charts/kubeadm/create_audit_policy.sh b/charts/kubeadm/create_audit_policy.sh deleted file mode 100755 index a4d24701..00000000 --- a/charts/kubeadm/create_audit_policy.sh +++ /dev/null @@ -1,159 +0,0 @@ -#!/bin/sh - -function createMasterAuditPolicy() { - path="templates/apiserver/audit-policy.yaml" - - known_apis=' - - group: "" # core - - group: "admissionregistration.k8s.io" - - group: "apiextensions.k8s.io" - - group: "apiregistration.k8s.io" - - group: "apps" - - group: "authentication.k8s.io" - - group: "authorization.k8s.io" - - group: "autoscaling" - - group: "batch" - - group: "certificates.k8s.io" - - group: "extensions" - - group: "metrics.k8s.io" - - group: "networking.k8s.io" - - group: "node.k8s.io" - - group: "policy" - - group: "rbac.authorization.k8s.io" - - group: "scheduling.k8s.io" - - group: "storage.k8s.io"' - - cat <"${path}" -apiVersion: audit.k8s.io/v1 -kind: Policy -rules: - # The following requests were manually identified as high-volume and low-risk, - # so drop them. - - level: None - users: ["system:kube-proxy"] - verbs: ["watch"] - resources: - - group: "" # core - resources: ["endpoints", "services", "services/status"] - - level: None - # Ingress controller reads 'configmaps/ingress-uid' through the unsecured port. - # TODO(#46983): Change this to the ingress controller service account. - users: ["system:unsecured"] - namespaces: ["kube-system"] - verbs: ["get"] - resources: - - group: "" # core - resources: ["configmaps"] - - level: None - users: ["kubelet"] # legacy kubelet identity - verbs: ["get"] - resources: - - group: "" # core - resources: ["nodes", "nodes/status"] - - level: None - userGroups: ["system:nodes"] - verbs: ["get"] - resources: - - group: "" # core - resources: ["nodes", "nodes/status"] - - level: None - users: - - system:kube-controller-manager - - system:cloud-controller-manager - - system:kube-scheduler - - system:serviceaccount:kube-system:endpoint-controller - verbs: ["get", "update"] - namespaces: ["kube-system"] - resources: - - group: "" # core - resources: ["endpoints"] - - level: None - users: ["system:apiserver"] - verbs: ["get"] - resources: - - group: "" # core - resources: ["namespaces", "namespaces/status", "namespaces/finalize"] - - level: None - users: ["cluster-autoscaler"] - verbs: ["get", "update"] - namespaces: ["kube-system"] - resources: - - group: "" # core - resources: ["configmaps", "endpoints"] - # Don't log HPA fetching metrics. - - level: None - users: - - system:kube-controller-manager - - system:cloud-controller-manager - verbs: ["get", "list"] - resources: - - group: "metrics.k8s.io" - - # Don't log these read-only URLs. - - level: None - nonResourceURLs: - - /healthz* - - /version - - /swagger* - - /readyz - - # Don't log events requests because of performance impact. - - level: None - resources: - - group: "" # core - resources: ["events"] - - # node and pod status calls from nodes are high-volume and can be large, don't log responses for expected updates from nodes - - level: Request - users: ["kubelet", "system:node-problem-detector", "system:serviceaccount:kube-system:node-problem-detector"] - verbs: ["update","patch"] - resources: - - group: "" # core - resources: ["nodes/status", "pods/status"] - omitStages: - - "RequestReceived" - - level: Request - userGroups: ["system:nodes"] - verbs: ["update","patch"] - resources: - - group: "" # core - resources: ["nodes/status", "pods/status"] - omitStages: - - "RequestReceived" - - # deletecollection calls can be large, don't log responses for expected namespace deletions - - level: Request - users: ["system:serviceaccount:kube-system:namespace-controller"] - verbs: ["deletecollection"] - omitStages: - - "RequestReceived" - - # Secrets, ConfigMaps, TokenRequest and TokenReviews can contain sensitive & binary data, - # so only log at the Metadata level. - - level: Metadata - resources: - - group: "" # core - resources: ["secrets", "configmaps", "serviceaccounts/token"] - - group: authentication.k8s.io - resources: ["tokenreviews"] - omitStages: - - "RequestReceived" - # Get responses can be large; skip them. - - level: Request - verbs: ["get", "list", "watch"] - resources: ${known_apis} - omitStages: - - "RequestReceived" - # Default level for known APIs - - level: RequestResponse - resources: ${known_apis} - omitStages: - - "RequestReceived" - # Default level for all other requests. - - level: Metadata - omitStages: - - "RequestReceived" -EOF -} - -createMasterAuditPolicy diff --git a/charts/kubeadm/templates/ClusterConfiguration.yaml b/charts/kubeadm/templates/ClusterConfiguration.yaml deleted file mode 100644 index 8a18a15a..00000000 --- a/charts/kubeadm/templates/ClusterConfiguration.yaml +++ /dev/null @@ -1,97 +0,0 @@ -apiVersion: kubeadm.k8s.io/v1beta3 -kind: ClusterConfiguration -kubernetesVersion: {{ .Chart.Version }} -clusterName: {{ .Values.global.clusterName }} -featureGates: - EtcdLearnerMode: true # becomes beta in 1.29 -# NonGracefulFailover: true -controlPlaneEndpoint: {{ .Values.api.endpoint }} -networking: - podSubnet: 10.244.0.0/16 -etcd: - local: - # imageTag: 3.5.12-0 - extraArgs: - ### DNS discovery - #discovery-srv: {{ .Values.domain }} - #discovery-srv-name: {{ .Values.global.clusterName }} - advertise-client-urls: https://{{ .Values.etcd.nodeName }}:2379 - initial-advertise-peer-urls: https://{{ .Values.etcd.nodeName }}:2380 - initial-cluster: {{ include "kubeadm.etcd.initialCluster" .Values.etcd | quote }} - initial-cluster-state: {{ .Values.etcd.state }} - initial-cluster-token: etcd-{{ .Values.global.clusterName }} - name: {{ .Values.etcd.nodeName }} - listen-peer-urls: https://{{ .Values.listenAddress }}:2380 - listen-client-urls: https://{{ .Values.listenAddress }}:2379 - listen-metrics-urls: http://0.0.0.0:2381 - logger: zap - # log-level: "warn" - {{- with .Values.etcd.extraArgs }} - {{- toYaml . | nindent 6 }} - {{- end }} - serverCertSANs: - - "{{ .Values.etcd.nodeName }}" - - "{{ .Values.etcd.nodeName }}.{{ .Values.domain }}" - - "{{ .Values.domain }}" - peerCertSANs: - - "{{ .Values.etcd.nodeName }}" - - "{{ .Values.etcd.nodeName }}.{{ .Values.domain }}" - - "{{ .Values.domain }}" -controllerManager: - extraArgs: - profiling: "false" - terminated-pod-gc-threshold: "300" - leader-elect: {{ .Values.global.highAvailable | quote }} - logging-format: json - feature-gates: {{ include "kubeadm.featuregates" ( dict "return" "csv" ) | trimSuffix "," | quote }} -scheduler: - extraArgs: - profiling: "false" - leader-elect: {{ .Values.global.highAvailable | quote }} - logging-format: json - feature-gates: {{ include "kubeadm.featuregates" ( dict "return" "csv" ) | trimSuffix "," | quote }} -apiServer: - certSANs: - - {{ regexSplit ":" .Values.api.endpoint -1 | first }} - extraArgs: - etcd-servers: {{ .Values.api.etcdServers }} - profiling: "false" - audit-log-path: "/var/log/kubernetes/audit.log" - audit-policy-file: /etc/kubernetes/apiserver/audit-policy.yaml - audit-log-maxage: "7" - audit-log-maxsize: "100" - audit-log-maxbackup: "1" - audit-log-compress: "true" - {{- if .Values.api.falco.enabled }} - audit-webhook-config-file: /etc/kubernetes/apiserver/audit-webhook.yaml - {{- end }} - tls-cipher-suites: "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" - admission-control-config-file: /etc/kubernetes/apiserver/admission-configuration.yaml - api-audiences: {{ .Values.api.apiAudiences }} - {{- if .Values.api.serviceAccountIssuer }} - service-account-issuer: "{{ .Values.api.serviceAccountIssuer }}" - service-account-jwks-uri: "{{ .Values.api.serviceAccountIssuer }}/openid/v1/jwks" - {{- end }} - {{- if .Values.api.awsIamAuth.enabled }} - authentication-token-webhook-config-file: /etc/kubernetes/apiserver/aws-iam-authenticator.yaml - authentication-token-webhook-cache-ttl: 3600s - {{- end }} - feature-gates: {{ include "kubeadm.featuregates" ( dict "return" "csv" ) | trimSuffix "," | quote }} - enable-admission-plugins: DenyServiceExternalIPs,NodeRestriction,EventRateLimit,ExtendedResourceToleration - {{- if .Values.global.highAvailable }} - goaway-chance: ".001" - {{- end }} - logging-format: json - {{- with .Values.api.extraArgs }} - {{- toYaml . | nindent 4 }} - {{- end }} - extraVolumes: - - name: kubezero-apiserver - hostPath: /etc/kubernetes/apiserver - mountPath: /etc/kubernetes/apiserver - readOnly: true - pathType: DirectoryOrCreate - - name: audit-log - hostPath: /var/log/kubernetes - mountPath: /var/log/kubernetes - pathType: DirectoryOrCreate diff --git a/charts/kubeadm/templates/InitConfiguration.yaml b/charts/kubeadm/templates/InitConfiguration.yaml deleted file mode 100644 index f334d04b..00000000 --- a/charts/kubeadm/templates/InitConfiguration.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: kubeadm.k8s.io/v1beta3 -kind: InitConfiguration -localAPIEndpoint: - advertiseAddress: {{ .Values.listenAddress }} - bindPort: {{ .Values.api.listenPort }} -patches: - directory: /tmp/patches -nodeRegistration: - criSocket: "unix:///var/run/crio/crio.sock" - ignorePreflightErrors: - - DirAvailable--var-lib-etcd - - DirAvailable--etc-kubernetes-manifests - - FileAvailable--etc-kubernetes-pki-ca.crt - - FileAvailable--etc-kubernetes-manifests-etcd.yaml - - Swap - - KubeletVersion - kubeletExtraArgs: - node-labels: {{ .Values.nodeLabels | quote }} - {{- with .Values.providerID }} - provider-id: {{ . }} - {{- end }} - {{- if ne .Values.listenAddress "0.0.0.0" }} - node-ip: {{ .Values.listenAddress }} - {{- end }} diff --git a/charts/kubeadm/templates/JoinConfiguration.yaml b/charts/kubeadm/templates/JoinConfiguration.yaml deleted file mode 100644 index 41d30297..00000000 --- a/charts/kubeadm/templates/JoinConfiguration.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kubeadm.k8s.io/v1beta3 -kind: JoinConfiguration -nodeRegistration: - criSocket: "unix:///var/run/crio/crio.sock" -patches: - directory: /tmp/patches diff --git a/charts/kubeadm/templates/KubeProxyConfiguration.yaml b/charts/kubeadm/templates/KubeProxyConfiguration.yaml deleted file mode 100644 index 681ddd72..00000000 --- a/charts/kubeadm/templates/KubeProxyConfiguration.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: kubeproxy.config.k8s.io/v1alpha1 -kind: KubeProxyConfiguration -# kube-proxy doesnt really support setting dynamic bind-address via config, replaced by cilium long-term anyways -metricsBindAddress: "0.0.0.0:10249" -mode: "iptables" -logging: - format: json diff --git a/charts/kubeadm/templates/KubeletConfiguration.yaml b/charts/kubeadm/templates/KubeletConfiguration.yaml deleted file mode 100644 index 04785f70..00000000 --- a/charts/kubeadm/templates/KubeletConfiguration.yaml +++ /dev/null @@ -1,37 +0,0 @@ -# https://kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1/ -apiVersion: kubelet.config.k8s.io/v1beta1 -kind: KubeletConfiguration -failSwapOn: false -cgroupDriver: cgroupfs -logging: - format: json -hairpinMode: hairpin-veth -containerRuntimeEndpoint: "unix:///var/run/crio/crio.sock" -{{- if .Values.systemd }} -resolvConf: /run/systemd/resolve/resolv.conf -{{- end }} -protectKernelDefaults: {{ .Values.protectKernelDefaults }} -#eventRecordQPS: 0 -# Breaks kubelet at boot time -# tlsCertFile: /var/lib/kubelet/pki/kubelet.crt -# tlsPrivateKeyFile: /var/lib/kubelet/pki/kubelet.key -tlsCipherSuites: [TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_128_GCM_SHA256] -featureGates: - {{- include "kubeadm.featuregates" ( dict "return" "map" ) | nindent 2 }} -# Minimal unit is 40m per pod -podsPerCore: 25 -# cpuCFSQuotaPeriod: 10ms -# Basic OS incl. crio -systemReserved: - memory: 96Mi - #ephemeral-storage: "1Gi" -# kubelet memory should be static as runc,conmon are added to each pod's cgroup -kubeReserved: - cpu: 70m - memory: 96Mi -# Lets use below to reserve memory for system processes as kubeReserved/sytemReserved doesnt go well with systemd it seems -#evictionHard: -# memory.available: "484Mi" -imageGCLowThresholdPercent: 70 -serializeImagePulls: false -maxParallelImagePulls: 4 diff --git a/charts/kubeadm/templates/README.md b/charts/kubeadm/templates/README.md deleted file mode 100644 index afb2413e..00000000 --- a/charts/kubeadm/templates/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# aws-iam-authenticator -- https://github.com/kubernetes-sigs/aws-iam-authenticator diff --git a/charts/kubeadm/templates/_helpers.tpl b/charts/kubeadm/templates/_helpers.tpl deleted file mode 100644 index b0b26095..00000000 --- a/charts/kubeadm/templates/_helpers.tpl +++ /dev/null @@ -1,28 +0,0 @@ -{{- /* Feature gates for all control plane components */ -}} -{{- /* Issues: MemoryQoS */ -}} -{{- /* v1.28: PodAndContainerStatsFromCRI still not working */ -}} -{{- /* v1.28: UnknownVersionInteroperabilityProxy requires StorageVersionAPI which is still alpha in 1.30 */ -}} -{{- /* v1.29: remove/beta SidecarContainers */ -}} -{{- /* v1.30: remove/beta KubeProxyDrainingTerminatingNodes */ -}} -{{- define "kubeadm.featuregates" }} -{{- $gates := list "CustomCPUCFSQuotaPeriod" "SidecarContainers" "KubeProxyDrainingTerminatingNodes" }} -{{- if eq .return "csv" }} -{{- range $key := $gates }} -{{- $key }}=true, -{{- end }} -{{- else }} -{{- range $key := $gates }} -{{ $key }}: true -{{- end }} -{{- end }} -{{- end }} - - -{{- /* Etcd default initial cluster */ -}} -{{- define "kubeadm.etcd.initialCluster" -}} -{{- if .initialCluster -}} -{{ .initialCluster }} -{{- else -}} -{{ .nodeName }}=https://{{ .nodeName }}:2380 -{{- end -}} -{{- end -}} diff --git a/charts/kubeadm/templates/admin-aws-iam.yaml b/charts/kubeadm/templates/admin-aws-iam.yaml deleted file mode 100644 index fe316866..00000000 --- a/charts/kubeadm/templates/admin-aws-iam.yaml +++ /dev/null @@ -1,27 +0,0 @@ -{{- if .Values.api.awsIamAuth.enabled }} -apiVersion: v1 -kind: Config -clusters: -- cluster: - server: https://{{ .Values.api.endpoint }} - name: {{ .Values.global.clusterName }} -contexts: -- context: - cluster: {{ .Values.global.clusterName }} - user: kubernetes-admin - name: kubernetes-admin@{{ .Values.global.clusterName }} -current-context: kubernetes-admin@{{ .Values.global.clusterName }} -preferences: {} -users: -- name: kubernetes-admin - user: - exec: - apiVersion: client.authentication.k8s.io/v1beta1 - command: aws-iam-authenticator - args: - - "token" - - "-i" - - "{{ .Values.global.clusterName }}" - - "-r" - - "{{ .Values.api.awsIamAuth.kubeAdminRole }}" -{{- end }} diff --git a/charts/kubeadm/templates/apiserver/admission-configuration.yaml b/charts/kubeadm/templates/apiserver/admission-configuration.yaml deleted file mode 100644 index 76d79d07..00000000 --- a/charts/kubeadm/templates/apiserver/admission-configuration.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: apiserver.config.k8s.io/v1 -kind: AdmissionConfiguration -metadata: - name: kubezero-admissionconfiguration -plugins: -- name: EventRateLimit - path: /etc/kubernetes/apiserver/event-config.yaml diff --git a/charts/kubeadm/templates/apiserver/audit-policy-off.yaml b/charts/kubeadm/templates/apiserver/audit-policy-off.yaml deleted file mode 100644 index 40da4ea4..00000000 --- a/charts/kubeadm/templates/apiserver/audit-policy-off.yaml +++ /dev/null @@ -1,7 +0,0 @@ -# Don't Log anything, but audit policy enabled -apiVersion: audit.k8s.io/v1 -kind: Policy -metadata: - name: kubezero-auditpolicy -rules: -- level: None diff --git a/charts/kubeadm/templates/apiserver/audit-policy.yaml b/charts/kubeadm/templates/apiserver/audit-policy.yaml deleted file mode 100644 index 9285f6e5..00000000 --- a/charts/kubeadm/templates/apiserver/audit-policy.yaml +++ /dev/null @@ -1,164 +0,0 @@ -apiVersion: audit.k8s.io/v1 -kind: Policy -rules: - # The following requests were manually identified as high-volume and low-risk, - # so drop them. - - level: None - users: ["system:kube-proxy"] - verbs: ["watch"] - resources: - - group: "" # core - resources: ["endpoints", "services", "services/status"] - - level: None - # Ingress controller reads 'configmaps/ingress-uid' through the unsecured port. - # TODO(#46983): Change this to the ingress controller service account. - users: ["system:unsecured"] - namespaces: ["kube-system"] - verbs: ["get"] - resources: - - group: "" # core - resources: ["configmaps"] - - level: None - users: ["kubelet"] # legacy kubelet identity - verbs: ["get"] - resources: - - group: "" # core - resources: ["nodes", "nodes/status"] - - level: None - userGroups: ["system:nodes"] - verbs: ["get"] - resources: - - group: "" # core - resources: ["nodes", "nodes/status"] - - level: None - users: - - system:kube-controller-manager - - system:cloud-controller-manager - - system:kube-scheduler - - system:serviceaccount:kube-system:endpoint-controller - verbs: ["get", "update"] - namespaces: ["kube-system"] - resources: - - group: "" # core - resources: ["endpoints"] - - level: None - users: ["system:apiserver"] - verbs: ["get"] - resources: - - group: "" # core - resources: ["namespaces", "namespaces/status", "namespaces/finalize"] - - level: None - users: ["cluster-autoscaler"] - verbs: ["get", "update"] - namespaces: ["kube-system"] - resources: - - group: "" # core - resources: ["configmaps", "endpoints"] - # Don't log HPA fetching metrics. - - level: None - users: - - system:kube-controller-manager - - system:cloud-controller-manager - verbs: ["get", "list"] - resources: - - group: "metrics.k8s.io" - - # Don't log these read-only URLs. - - level: None - nonResourceURLs: - - /healthz* - - /version - - /swagger* - - # Don't log events requests because of performance impact. - - level: None - resources: - - group: "" # core - resources: ["events"] - - # node and pod status calls from nodes are high-volume and can be large, don't log responses for expected updates from nodes - - level: Request - users: ["kubelet", "system:node-problem-detector", "system:serviceaccount:kube-system:node-problem-detector"] - verbs: ["update","patch"] - resources: - - group: "" # core - resources: ["nodes/status", "pods/status"] - omitStages: - - "RequestReceived" - - level: Request - userGroups: ["system:nodes"] - verbs: ["update","patch"] - resources: - - group: "" # core - resources: ["nodes/status", "pods/status"] - omitStages: - - "RequestReceived" - - # deletecollection calls can be large, don't log responses for expected namespace deletions - - level: Request - users: ["system:serviceaccount:kube-system:namespace-controller"] - verbs: ["deletecollection"] - omitStages: - - "RequestReceived" - - # Secrets, ConfigMaps, TokenRequest and TokenReviews can contain sensitive & binary data, - # so only log at the Metadata level. - - level: Metadata - resources: - - group: "" # core - resources: ["secrets", "configmaps", "serviceaccounts/token"] - - group: authentication.k8s.io - resources: ["tokenreviews"] - omitStages: - - "RequestReceived" - # Get responses can be large; skip them. - - level: Request - verbs: ["get", "list", "watch"] - resources: - - group: "" # core - - group: "admissionregistration.k8s.io" - - group: "apiextensions.k8s.io" - - group: "apiregistration.k8s.io" - - group: "apps" - - group: "authentication.k8s.io" - - group: "authorization.k8s.io" - - group: "autoscaling" - - group: "batch" - - group: "certificates.k8s.io" - - group: "extensions" - - group: "metrics.k8s.io" - - group: "networking.k8s.io" - - group: "node.k8s.io" - - group: "policy" - - group: "rbac.authorization.k8s.io" - - group: "scheduling.k8s.io" - - group: "storage.k8s.io" - omitStages: - - "RequestReceived" - # Default level for known APIs - - level: RequestResponse - resources: - - group: "" # core - - group: "admissionregistration.k8s.io" - - group: "apiextensions.k8s.io" - - group: "apiregistration.k8s.io" - - group: "apps" - - group: "authentication.k8s.io" - - group: "authorization.k8s.io" - - group: "autoscaling" - - group: "batch" - - group: "certificates.k8s.io" - - group: "extensions" - - group: "metrics.k8s.io" - - group: "networking.k8s.io" - - group: "node.k8s.io" - - group: "policy" - - group: "rbac.authorization.k8s.io" - - group: "scheduling.k8s.io" - - group: "storage.k8s.io" - omitStages: - - "RequestReceived" - # Default level for all other requests. - - level: Metadata - omitStages: - - "RequestReceived" diff --git a/charts/kubeadm/templates/apiserver/audit-webhook.yaml b/charts/kubeadm/templates/apiserver/audit-webhook.yaml deleted file mode 100644 index 126a8289..00000000 --- a/charts/kubeadm/templates/apiserver/audit-webhook.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: Config -clusters: - - name: falco - cluster: - server: http://falco-k8saudit-webhook:9765/k8s-audit -contexts: - - context: - cluster: falco - user: "" - name: default-context -current-context: default-context -preferences: {} -users: [] diff --git a/charts/kubeadm/templates/apiserver/aws-iam-authenticator.yaml b/charts/kubeadm/templates/apiserver/aws-iam-authenticator.yaml deleted file mode 100644 index 1a6818a2..00000000 --- a/charts/kubeadm/templates/apiserver/aws-iam-authenticator.yaml +++ /dev/null @@ -1,19 +0,0 @@ -{{- if .Values.api.awsIamAuth.enabled }} -# clusters refers to the remote service. -clusters: - - name: aws-iam-authenticator - cluster: - certificate-authority-data: "replaced at runtime" - server: https://localhost:21362/authenticate -# users refers to the API Server's webhook configuration -# (we don't need to authenticate the API server). -users: - - name: apiserver -# kubeconfig files require a context. Provide one for the API Server. -current-context: webhook -contexts: -- name: webhook - context: - cluster: aws-iam-authenticator - user: apiserver -{{- end }} diff --git a/charts/kubeadm/templates/apiserver/event-config.yaml b/charts/kubeadm/templates/apiserver/event-config.yaml deleted file mode 100644 index 4e1166aa..00000000 --- a/charts/kubeadm/templates/apiserver/event-config.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: eventratelimit.admission.k8s.io/v1alpha1 -kind: Configuration -metadata: - name: kubezero-eventratelimits -limits: -- type: Namespace - qps: 50 - burst: 100 - cacheSize: 20 -- type: User - qps: 10 - burst: 50 - cacheSize: 20 diff --git a/charts/kubeadm/templates/patches/coredns0.yaml b/charts/kubeadm/templates/patches/coredns0.yaml deleted file mode 100644 index 21608adb..00000000 --- a/charts/kubeadm/templates/patches/coredns0.yaml +++ /dev/null @@ -1,14 +0,0 @@ -spec: - replicas: {{ ternary 3 1 .Values.global.highAvailable }} - template: - spec: - containers: - - name: coredns - resources: - requests: - cpu: 100m - memory: 32Mi - limits: - memory: 128Mi - nodeSelector: - node-role.kubernetes.io/control-plane: "" diff --git a/charts/kubeadm/templates/patches/etcd0.yaml b/charts/kubeadm/templates/patches/etcd0.yaml deleted file mode 100644 index 5eec13ec..00000000 --- a/charts/kubeadm/templates/patches/etcd0.yaml +++ /dev/null @@ -1,8 +0,0 @@ -spec: - containers: - - name: etcd - resources: - requests: - cpu: 50m - memory: 256Mi - #ephemeral-storage: 1Gi diff --git a/charts/kubeadm/templates/patches/kube-apiserver0.yaml b/charts/kubeadm/templates/patches/kube-apiserver0.yaml deleted file mode 100644 index 3a7d6ac4..00000000 --- a/charts/kubeadm/templates/patches/kube-apiserver0.yaml +++ /dev/null @@ -1,8 +0,0 @@ -spec: - dnsPolicy: ClusterFirstWithHostNet - containers: - - name: kube-apiserver - resources: - requests: - cpu: 250m - memory: 1268Mi diff --git a/charts/kubeadm/templates/patches/kube-apiserver1+json.yaml b/charts/kubeadm/templates/patches/kube-apiserver1+json.yaml deleted file mode 100644 index 41b6183c..00000000 --- a/charts/kubeadm/templates/patches/kube-apiserver1+json.yaml +++ /dev/null @@ -1,10 +0,0 @@ -json: - - op: add - path: /spec/containers/0/command/- - value: --bind-address={{ .Values.listenAddress }} - - op: replace - path: /spec/containers/0/livenessProbe/httpGet/host - value: {{ .Values.listenAddress }} - - op: replace - path: /spec/containers/0/startupProbe/httpGet/host - value: {{ .Values.listenAddress }} diff --git a/charts/kubeadm/templates/patches/kube-controller-manager0.yaml b/charts/kubeadm/templates/patches/kube-controller-manager0.yaml deleted file mode 100644 index d8c25490..00000000 --- a/charts/kubeadm/templates/patches/kube-controller-manager0.yaml +++ /dev/null @@ -1,7 +0,0 @@ -spec: - containers: - - name: kube-controller-manager - resources: - requests: - cpu: 50m - memory: 192Mi diff --git a/charts/kubeadm/templates/patches/kube-controller-manager1+json.yaml b/charts/kubeadm/templates/patches/kube-controller-manager1+json.yaml deleted file mode 100644 index 41b6183c..00000000 --- a/charts/kubeadm/templates/patches/kube-controller-manager1+json.yaml +++ /dev/null @@ -1,10 +0,0 @@ -json: - - op: add - path: /spec/containers/0/command/- - value: --bind-address={{ .Values.listenAddress }} - - op: replace - path: /spec/containers/0/livenessProbe/httpGet/host - value: {{ .Values.listenAddress }} - - op: replace - path: /spec/containers/0/startupProbe/httpGet/host - value: {{ .Values.listenAddress }} diff --git a/charts/kubeadm/templates/patches/kube-scheduler0.yaml b/charts/kubeadm/templates/patches/kube-scheduler0.yaml deleted file mode 100644 index a15eecea..00000000 --- a/charts/kubeadm/templates/patches/kube-scheduler0.yaml +++ /dev/null @@ -1,7 +0,0 @@ -spec: - containers: - - name: kube-scheduler - resources: - requests: - cpu: 50m - memory: 96Mi diff --git a/charts/kubeadm/templates/patches/kube-scheduler1+json.yaml b/charts/kubeadm/templates/patches/kube-scheduler1+json.yaml deleted file mode 100644 index 41b6183c..00000000 --- a/charts/kubeadm/templates/patches/kube-scheduler1+json.yaml +++ /dev/null @@ -1,10 +0,0 @@ -json: - - op: add - path: /spec/containers/0/command/- - value: --bind-address={{ .Values.listenAddress }} - - op: replace - path: /spec/containers/0/livenessProbe/httpGet/host - value: {{ .Values.listenAddress }} - - op: replace - path: /spec/containers/0/startupProbe/httpGet/host - value: {{ .Values.listenAddress }} diff --git a/charts/kubeadm/templates/resources/10-runtimeClass.yaml b/charts/kubeadm/templates/resources/10-runtimeClass.yaml deleted file mode 100644 index 8ed077bf..00000000 --- a/charts/kubeadm/templates/resources/10-runtimeClass.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: node.k8s.io/v1 -kind: RuntimeClass -metadata: - name: crio -handler: crun -overhead: - podFixed: - memory: 4Mi diff --git a/charts/kubeadm/templates/resources/20-oicd-public-rbac.yaml b/charts/kubeadm/templates/resources/20-oicd-public-rbac.yaml deleted file mode 100644 index abaf9a6f..00000000 --- a/charts/kubeadm/templates/resources/20-oicd-public-rbac.yaml +++ /dev/null @@ -1,13 +0,0 @@ -{{- if .Values.api.serviceAccountIssuer }} -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: oidc-public -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: system:service-account-issuer-discovery -subjects: - - kind: Group - name: system:unauthenticated -{{- end }} diff --git a/charts/kubeadm/templates/resources/50-aws-iam-authenticator-crds.yaml b/charts/kubeadm/templates/resources/50-aws-iam-authenticator-crds.yaml deleted file mode 100644 index be771953..00000000 --- a/charts/kubeadm/templates/resources/50-aws-iam-authenticator-crds.yaml +++ /dev/null @@ -1,46 +0,0 @@ -{{- if .Values.api.awsIamAuth.enabled }} -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: iamidentitymappings.iamauthenticator.k8s.aws -spec: - group: iamauthenticator.k8s.aws - scope: Cluster - names: - plural: iamidentitymappings - singular: iamidentitymapping - kind: IAMIdentityMapping - categories: - - all - versions: - - name: v1alpha1 - served: true - storage: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - required: - - arn - - username - properties: - arn: - type: string - username: - type: string - groups: - type: array - items: - type: string - status: - type: object - properties: - canonicalARN: - type: string - userID: - type: string - subresources: - status: {} -{{- end }} diff --git a/charts/kubeadm/templates/resources/51-aws-iam-authenticator-deployment.yaml b/charts/kubeadm/templates/resources/51-aws-iam-authenticator-deployment.yaml deleted file mode 100644 index 7f508021..00000000 --- a/charts/kubeadm/templates/resources/51-aws-iam-authenticator-deployment.yaml +++ /dev/null @@ -1,155 +0,0 @@ -{{- if .Values.api.awsIamAuth.enabled }} -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: aws-iam-authenticator -rules: -- apiGroups: - - iamauthenticator.k8s.aws - resources: - - iamidentitymappings - verbs: - - get - - list - - watch -- apiGroups: - - iamauthenticator.k8s.aws - resources: - - iamidentitymappings/status - verbs: - - patch - - update -- apiGroups: - - "" - resources: - - events - verbs: - - create - - update - - patch -- apiGroups: - - "" - resources: - - configmaps - verbs: - - list - - watch -- apiGroups: - - "" - resources: - - configmaps - resourceNames: - - aws-auth - verbs: - - get - ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - name: aws-iam-authenticator - namespace: kube-system - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: aws-iam-authenticator - namespace: kube-system -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: aws-iam-authenticator -subjects: -- kind: ServiceAccount - name: aws-iam-authenticator - namespace: kube-system - ---- -apiVersion: v1 -kind: ConfigMap -metadata: - namespace: kube-system - name: aws-iam-authenticator - labels: - k8s-app: aws-iam-authenticator -data: - config.yaml: | - clusterID: {{ .Values.global.clusterName }} - ---- -apiVersion: apps/v1 -kind: DaemonSet -metadata: - namespace: kube-system - name: aws-iam-authenticator - labels: - k8s-app: aws-iam-authenticator -spec: - selector: - matchLabels: - k8s-app: aws-iam-authenticator - updateStrategy: - type: RollingUpdate - template: - metadata: - labels: - k8s-app: aws-iam-authenticator - spec: - securityContext: - seccompProfile: - type: RuntimeDefault - - priorityClassName: system-cluster-critical - - # use service account with access to - serviceAccountName: aws-iam-authenticator - - # run on the host network (don't depend on CNI) - hostNetwork: true - - # run on each controller - nodeSelector: - node-role.kubernetes.io/control-plane: "" - tolerations: - - effect: NoSchedule - key: node-role.kubernetes.io/control-plane - - containers: - - name: aws-iam-authenticator - image: public.ecr.aws/zero-downtime/aws-iam-authenticator:v0.6.14 - args: - - server - - --backend-mode=CRD,MountedFile - - --config=/etc/aws-iam-authenticator/config.yaml - - --state-dir=/var/aws-iam-authenticator - - --kubeconfig-pregenerated=true - - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - - resources: - requests: - memory: 32Mi - cpu: 10m - limits: - memory: 64Mi - #cpu: 100m - - volumeMounts: - - name: config - mountPath: /etc/aws-iam-authenticator/ - - name: state - mountPath: /var/aws-iam-authenticator/ - - volumes: - - name: config - configMap: - name: aws-iam-authenticator - - name: state - secret: - secretName: aws-iam-certs -{{- end }} diff --git a/charts/kubeadm/templates/resources/52-aws-iam-authenticator-mappings.yaml b/charts/kubeadm/templates/resources/52-aws-iam-authenticator-mappings.yaml deleted file mode 100644 index 31ef6e35..00000000 --- a/charts/kubeadm/templates/resources/52-aws-iam-authenticator-mappings.yaml +++ /dev/null @@ -1,23 +0,0 @@ -{{- if .Values.api.awsIamAuth.enabled }} -apiVersion: iamauthenticator.k8s.aws/v1alpha1 -kind: IAMIdentityMapping -metadata: - name: kubezero-worker-nodes -spec: - arn: {{ .Values.api.awsIamAuth.workerNodeRole }} - username: system:node:{{ "{{" }}EC2PrivateDNSName{{ "}}" }} - groups: - - system:bootstrappers:kubeadm:default-node-token ---- - -# Admin Role for remote access -apiVersion: iamauthenticator.k8s.aws/v1alpha1 -kind: IAMIdentityMapping -metadata: - name: kubernetes-admin -spec: - arn: {{ .Values.api.awsIamAuth.kubeAdminRole }} - username: kubernetes-admin - groups: - - system:masters -{{- end }} diff --git a/charts/kubeadm/templates/resources/80-apiserver-dns-service.yaml b/charts/kubeadm/templates/resources/80-apiserver-dns-service.yaml deleted file mode 100644 index 7947e0ce..00000000 --- a/charts/kubeadm/templates/resources/80-apiserver-dns-service.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - annotations: - external-dns.alpha.kubernetes.io/hostname: {{ regexSplit ":" .Values.api.endpoint -1 | first }} - external-dns.alpha.kubernetes.io/ttl: "60" - name: kubezero-api - namespace: kube-system -spec: - type: ClusterIP - clusterIP: None - selector: - component: kube-apiserver - tier: control-plane diff --git a/charts/kubeadm/values.yaml b/charts/kubeadm/values.yaml deleted file mode 100644 index 86955934..00000000 --- a/charts/kubeadm/values.yaml +++ /dev/null @@ -1,38 +0,0 @@ -global: - clusterName: pleasechangeme - highAvailable: false - -# -- set to $HOSTNAME -nodeName: kubezero-node -domain: changeme.org - -# -- Needs to be set to primary node IP -listenAddress: 0.0.0.0 - -api: - endpoint: kube-api.changeme.org:6443 - listenPort: 6443 - etcdServers: "https://etcd:2379" - extraArgs: {} - # -- https://s3.${REGION}.amazonaws.com/${CFN[ConfigBucket]}/k8s/$CLUSTERNAME - serviceAccountIssuer: "" - # -- s3://${CFN[ConfigBucket]}/k8s/$CLUSTERNAME - oidcEndpoint: "" - apiAudiences: "istio-ca" - - awsIamAuth: - enabled: false - workerNodeRole: "arn:aws:iam::000000000000:role/KubernetesNode" - kubeAdminRole: "arn:aws:iam::000000000000:role/KubernetesNode" - - falco: - enabled: false - -etcd: - nodeName: etcd - state: new - extraArgs: {} - -# -- Set to false for openrc, eg. on Gentoo or Alpine -systemd: false -protectKernelDefaults: false diff --git a/charts/kubezero-addons/Chart.yaml b/charts/kubezero-addons/Chart.yaml deleted file mode 100644 index 4e56fcf7..00000000 --- a/charts/kubezero-addons/Chart.yaml +++ /dev/null @@ -1,47 +0,0 @@ -apiVersion: v2 -name: kubezero-addons -description: KubeZero umbrella chart for various optional cluster addons -type: application -version: 0.8.7 -appVersion: v1.28 -home: https://kubezero.com -icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png -keywords: - - kubezero - - fuse-device-plugin - - neuron-device-plugin - - nvidia-device-plugin - - cluster-autoscaler - - sealed-secrets - - external-dns - - aws-node-termination-handler -maintainers: - - name: Stefan Reimer - email: stefan@zero-downtime.net -dependencies: - - name: external-dns - version: 1.14.4 - repository: https://kubernetes-sigs.github.io/external-dns/ - condition: external-dns.enabled - - name: cluster-autoscaler - version: 9.36.0 - repository: https://kubernetes.github.io/autoscaler - condition: cluster-autoscaler.enabled - - name: nvidia-device-plugin - version: 0.15.0 - # https://github.com/NVIDIA/k8s-device-plugin - repository: https://nvidia.github.io/k8s-device-plugin - condition: nvidia-device-plugin.enabled - - name: sealed-secrets - version: 2.15.3 - repository: https://bitnami-labs.github.io/sealed-secrets - condition: sealed-secrets.enabled - - name: aws-node-termination-handler - version: 0.23.0 - repository: "oci://public.ecr.aws/aws-ec2/helm" - condition: aws-node-termination-handler.enabled - - name: aws-eks-asg-rolling-update-handler - version: 1.5.0 - repository: https://twin.github.io/helm-charts - condition: aws-eks-asg-rolling-update-handler.enabled -kubeVersion: ">= 1.26.0" diff --git a/charts/kubezero-addons/README.md b/charts/kubezero-addons/README.md deleted file mode 100644 index 7954527f..00000000 --- a/charts/kubezero-addons/README.md +++ /dev/null @@ -1,175 +0,0 @@ -# kubezero-addons - -![Version: 0.8.7](https://img.shields.io/badge/Version-0.8.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.28](https://img.shields.io/badge/AppVersion-v1.28-informational?style=flat-square) - -KubeZero umbrella chart for various optional cluster addons - -**Homepage:** - -## Maintainers - -| Name | Email | Url | -| ---- | ------ | --- | -| Stefan Reimer | | | - -## Requirements - -Kubernetes: `>= 1.26.0` - -| Repository | Name | Version | -|------------|------|---------| -| https://bitnami-labs.github.io/sealed-secrets | sealed-secrets | 2.15.3 | -| https://kubernetes-sigs.github.io/external-dns/ | external-dns | 1.14.4 | -| https://kubernetes.github.io/autoscaler | cluster-autoscaler | 9.36.0 | -| https://nvidia.github.io/k8s-device-plugin | nvidia-device-plugin | 0.15.0 | -| https://twin.github.io/helm-charts | aws-eks-asg-rolling-update-handler | 1.5.0 | -| oci://public.ecr.aws/aws-ec2/helm | aws-node-termination-handler | 0.23.0 | - -# MetalLB - -# device-plugins - -## AWS Neuron -Device plugin for [AWS Neuron](https://aws.amazon.com/machine-learning/neuron/) - [Inf1 instances](https://aws.amazon.com/ec2/instance-types/inf1/) - -## Nvidia - -## Cluster AutoScaler -- https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/aws/README.md - -## Values - -| Key | Type | Default | Description | -|-----|------|---------|-------------| -| aws-eks-asg-rolling-update-handler.containerSecurityContext.allowPrivilegeEscalation | bool | `false` | | -| aws-eks-asg-rolling-update-handler.containerSecurityContext.capabilities.drop[0] | string | `"ALL"` | | -| aws-eks-asg-rolling-update-handler.enabled | bool | `false` | | -| aws-eks-asg-rolling-update-handler.environmentVars[0].name | string | `"CLUSTER_NAME"` | | -| aws-eks-asg-rolling-update-handler.environmentVars[0].value | string | `""` | | -| aws-eks-asg-rolling-update-handler.environmentVars[1].name | string | `"AWS_REGION"` | | -| aws-eks-asg-rolling-update-handler.environmentVars[1].value | string | `"us-west-2"` | | -| aws-eks-asg-rolling-update-handler.environmentVars[2].name | string | `"EXECUTION_INTERVAL"` | | -| aws-eks-asg-rolling-update-handler.environmentVars[2].value | string | `"60"` | | -| aws-eks-asg-rolling-update-handler.environmentVars[3].name | string | `"METRICS"` | | -| aws-eks-asg-rolling-update-handler.environmentVars[3].value | string | `"true"` | | -| aws-eks-asg-rolling-update-handler.environmentVars[4].name | string | `"EAGER_CORDONING"` | | -| aws-eks-asg-rolling-update-handler.environmentVars[4].value | string | `"true"` | | -| aws-eks-asg-rolling-update-handler.environmentVars[5].name | string | `"SLOW_MODE"` | | -| aws-eks-asg-rolling-update-handler.environmentVars[5].value | string | `"true"` | | -| aws-eks-asg-rolling-update-handler.environmentVars[6].name | string | `"AWS_ROLE_ARN"` | | -| aws-eks-asg-rolling-update-handler.environmentVars[6].value | string | `""` | | -| aws-eks-asg-rolling-update-handler.environmentVars[7].name | string | `"AWS_WEB_IDENTITY_TOKEN_FILE"` | | -| aws-eks-asg-rolling-update-handler.environmentVars[7].value | string | `"/var/run/secrets/sts.amazonaws.com/serviceaccount/token"` | | -| aws-eks-asg-rolling-update-handler.environmentVars[8].name | string | `"AWS_STS_REGIONAL_ENDPOINTS"` | | -| aws-eks-asg-rolling-update-handler.environmentVars[8].value | string | `"regional"` | | -| aws-eks-asg-rolling-update-handler.image.repository | string | `"twinproduction/aws-eks-asg-rolling-update-handler"` | | -| aws-eks-asg-rolling-update-handler.image.tag | string | `"v1.8.3"` | | -| aws-eks-asg-rolling-update-handler.nodeSelector."node-role.kubernetes.io/control-plane" | string | `""` | | -| aws-eks-asg-rolling-update-handler.resources.limits.memory | string | `"128Mi"` | | -| aws-eks-asg-rolling-update-handler.resources.requests.cpu | string | `"10m"` | | -| aws-eks-asg-rolling-update-handler.resources.requests.memory | string | `"32Mi"` | | -| aws-eks-asg-rolling-update-handler.securityContext.runAsNonRoot | bool | `true` | | -| aws-eks-asg-rolling-update-handler.securityContext.runAsUser | int | `1001` | | -| aws-eks-asg-rolling-update-handler.securityContext.seccompProfile.type | string | `"RuntimeDefault"` | | -| aws-eks-asg-rolling-update-handler.tolerations[0].effect | string | `"NoSchedule"` | | -| aws-eks-asg-rolling-update-handler.tolerations[0].key | string | `"node-role.kubernetes.io/control-plane"` | | -| aws-node-termination-handler.deleteLocalData | bool | `true` | | -| aws-node-termination-handler.emitKubernetesEvents | bool | `true` | | -| aws-node-termination-handler.enableProbesServer | bool | `true` | | -| aws-node-termination-handler.enablePrometheusServer | bool | `false` | | -| aws-node-termination-handler.enableSpotInterruptionDraining | bool | `false` | | -| aws-node-termination-handler.enableSqsTerminationDraining | bool | `true` | | -| aws-node-termination-handler.enabled | bool | `false` | | -| aws-node-termination-handler.extraEnv[0] | object | `{"name":"AWS_ROLE_ARN","value":""}` | "arn:aws:iam::${AWS::AccountId}:role/${AWS::Region}.${ClusterName}.awsNth" | -| aws-node-termination-handler.extraEnv[1].name | string | `"AWS_WEB_IDENTITY_TOKEN_FILE"` | | -| aws-node-termination-handler.extraEnv[1].value | string | `"/var/run/secrets/sts.amazonaws.com/serviceaccount/token"` | | -| aws-node-termination-handler.extraEnv[2].name | string | `"AWS_STS_REGIONAL_ENDPOINTS"` | | -| aws-node-termination-handler.extraEnv[2].value | string | `"regional"` | | -| aws-node-termination-handler.fullnameOverride | string | `"aws-node-termination-handler"` | | -| aws-node-termination-handler.ignoreDaemonSets | bool | `true` | | -| aws-node-termination-handler.jsonLogging | bool | `true` | | -| aws-node-termination-handler.logFormatVersion | int | `2` | | -| aws-node-termination-handler.managedTag | string | `"zdt:kubezero:nth:${ClusterName}"` | "zdt:kubezero:nth:${ClusterName}" | -| aws-node-termination-handler.metadataTries | int | `0` | | -| aws-node-termination-handler.nodeSelector."node-role.kubernetes.io/control-plane" | string | `""` | | -| aws-node-termination-handler.podMonitor.create | bool | `false` | | -| aws-node-termination-handler.queueURL | string | `""` | https://sqs.${AWS::Region}.amazonaws.com/${AWS::AccountId}/${ClusterName}_Nth | -| aws-node-termination-handler.rbac.pspEnabled | bool | `false` | | -| aws-node-termination-handler.taintNode | bool | `true` | | -| aws-node-termination-handler.tolerations[0].effect | string | `"NoSchedule"` | | -| aws-node-termination-handler.tolerations[0].key | string | `"node-role.kubernetes.io/control-plane"` | | -| aws-node-termination-handler.useProviderId | bool | `true` | | -| awsNeuron.enabled | bool | `false` | | -| awsNeuron.image.name | string | `"public.ecr.aws/neuron/neuron-device-plugin"` | | -| awsNeuron.image.tag | string | `"2.19.16.0"` | | -| cluster-autoscaler.autoDiscovery.clusterName | string | `""` | | -| cluster-autoscaler.awsRegion | string | `"us-west-2"` | | -| cluster-autoscaler.enabled | bool | `false` | | -| cluster-autoscaler.extraArgs.balance-similar-node-groups | bool | `true` | | -| cluster-autoscaler.extraArgs.ignore-taint | string | `"node.cilium.io/agent-not-ready"` | | -| cluster-autoscaler.extraArgs.scan-interval | string | `"30s"` | | -| cluster-autoscaler.extraArgs.skip-nodes-with-local-storage | bool | `false` | | -| cluster-autoscaler.image.repository | string | `"registry.k8s.io/autoscaling/cluster-autoscaler"` | | -| cluster-autoscaler.image.tag | string | `"v1.28.2"` | | -| cluster-autoscaler.nodeSelector."node-role.kubernetes.io/control-plane" | string | `""` | | -| cluster-autoscaler.podDisruptionBudget | bool | `false` | | -| cluster-autoscaler.prometheusRule.enabled | bool | `false` | | -| cluster-autoscaler.prometheusRule.interval | string | `"30"` | | -| cluster-autoscaler.serviceMonitor.enabled | bool | `false` | | -| cluster-autoscaler.serviceMonitor.interval | string | `"30s"` | | -| cluster-autoscaler.tolerations[0].effect | string | `"NoSchedule"` | | -| cluster-autoscaler.tolerations[0].key | string | `"node-role.kubernetes.io/control-plane"` | | -| clusterBackup.enabled | bool | `false` | | -| clusterBackup.extraEnv | list | `[]` | | -| clusterBackup.image.name | string | `"public.ecr.aws/zero-downtime/kubezero-admin"` | | -| clusterBackup.password | string | `""` | /etc/cloudbender/clusterBackup.passphrase | -| clusterBackup.repository | string | `""` | s3:https://s3.amazonaws.com/${CFN[ConfigBucket]}/k8s/${CLUSTERNAME}/clusterBackup | -| external-dns.enabled | bool | `false` | | -| external-dns.interval | string | `"3m"` | | -| external-dns.nodeSelector."node-role.kubernetes.io/control-plane" | string | `""` | | -| external-dns.provider | string | `"inmemory"` | | -| external-dns.sources[0] | string | `"service"` | | -| external-dns.tolerations[0].effect | string | `"NoSchedule"` | | -| external-dns.tolerations[0].key | string | `"node-role.kubernetes.io/control-plane"` | | -| external-dns.triggerLoopOnEvent | bool | `true` | | -| forseti.aws.iamRoleArn | string | `""` | "arn:aws:iam::${AWS::AccountId}:role/${AWS::Region}.${ClusterName}.kubezeroForseti" | -| forseti.aws.region | string | `""` | | -| forseti.enabled | bool | `false` | | -| forseti.image.name | string | `"public.ecr.aws/zero-downtime/forseti"` | | -| forseti.image.tag | string | `"v0.1.2"` | | -| fuseDevicePlugin.enabled | bool | `false` | | -| fuseDevicePlugin.image.name | string | `"public.ecr.aws/zero-downtime/fuse-device-plugin"` | | -| fuseDevicePlugin.image.tag | string | `"v1.2.0"` | | -| nvidia-device-plugin.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].key | string | `"node.kubernetes.io/instance-type"` | | -| nvidia-device-plugin.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].operator | string | `"In"` | | -| nvidia-device-plugin.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[0] | string | `"g5.xlarge"` | | -| nvidia-device-plugin.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[10] | string | `"g4dn.4xlarge"` | | -| nvidia-device-plugin.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[11] | string | `"g4dn.8xlarge"` | | -| nvidia-device-plugin.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[12] | string | `"g4dn.12xlarge"` | | -| nvidia-device-plugin.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[13] | string | `"g4dn.16xlarge"` | | -| nvidia-device-plugin.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[1] | string | `"g5.2xlarge"` | | -| nvidia-device-plugin.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[2] | string | `"g5.4xlarge"` | | -| nvidia-device-plugin.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[3] | string | `"g5.8xlarge"` | | -| nvidia-device-plugin.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[4] | string | `"g5.12xlarge"` | | -| nvidia-device-plugin.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[5] | string | `"g5.16xlarge"` | | -| nvidia-device-plugin.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[6] | string | `"g5.24xlarge"` | | -| nvidia-device-plugin.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[7] | string | `"g5.48xlarge"` | | -| nvidia-device-plugin.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[8] | string | `"g4dn.xlarge"` | | -| nvidia-device-plugin.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[9] | string | `"g4dn.2xlarge"` | | -| nvidia-device-plugin.enabled | bool | `false` | | -| nvidia-device-plugin.tolerations[0].effect | string | `"NoSchedule"` | | -| nvidia-device-plugin.tolerations[0].key | string | `"nvidia.com/gpu"` | | -| nvidia-device-plugin.tolerations[0].operator | string | `"Exists"` | | -| nvidia-device-plugin.tolerations[1].effect | string | `"NoSchedule"` | | -| nvidia-device-plugin.tolerations[1].key | string | `"kubezero-workergroup"` | | -| nvidia-device-plugin.tolerations[1].operator | string | `"Exists"` | | -| sealed-secrets.enabled | bool | `false` | | -| sealed-secrets.fullnameOverride | string | `"sealed-secrets-controller"` | | -| sealed-secrets.keyrenewperiod | string | `"0"` | | -| sealed-secrets.metrics.serviceMonitor.enabled | bool | `false` | | -| sealed-secrets.nodeSelector."node-role.kubernetes.io/control-plane" | string | `""` | | -| sealed-secrets.resources.limits.memory | string | `"128Mi"` | | -| sealed-secrets.resources.requests.cpu | string | `"10m"` | | -| sealed-secrets.resources.requests.memory | string | `"24Mi"` | | -| sealed-secrets.tolerations[0].effect | string | `"NoSchedule"` | | -| sealed-secrets.tolerations[0].key | string | `"node-role.kubernetes.io/control-plane"` | | diff --git a/charts/kubezero-addons/README.md.gotmpl b/charts/kubezero-addons/README.md.gotmpl deleted file mode 100644 index 2eed5f44..00000000 --- a/charts/kubezero-addons/README.md.gotmpl +++ /dev/null @@ -1,28 +0,0 @@ -{{ template "chart.header" . }} -{{ template "chart.deprecationWarning" . }} - -{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }} - -{{ template "chart.description" . }} - -{{ template "chart.homepageLine" . }} - -{{ template "chart.maintainersSection" . }} - -{{ template "chart.sourcesSection" . }} - -{{ template "chart.requirementsSection" . }} - -# MetalLB - -# device-plugins - -## AWS Neuron -Device plugin for [AWS Neuron](https://aws.amazon.com/machine-learning/neuron/) - [Inf1 instances](https://aws.amazon.com/ec2/instance-types/inf1/) - -## Nvidia - -## Cluster AutoScaler -- https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/aws/README.md - -{{ template "chart.valuesSection" . }} diff --git a/charts/kubezero-addons/aws-eks-asg-rolling-update-handler.patch b/charts/kubezero-addons/aws-eks-asg-rolling-update-handler.patch deleted file mode 100644 index 21d24cb0..00000000 --- a/charts/kubezero-addons/aws-eks-asg-rolling-update-handler.patch +++ /dev/null @@ -1,30 +0,0 @@ -diff -tuNr charts/aws-eks-asg-rolling-update-handler.orig/templates/deployment.yaml charts/aws-eks-asg-rolling-update-handler/templates/deployment.yaml ---- charts/aws-eks-asg-rolling-update-handler.orig/templates/deployment.yaml 2023-04-12 15:49:08.744242462 +0000 -+++ charts/aws-eks-asg-rolling-update-handler/templates/deployment.yaml 2023-04-12 15:55:44.399489809 +0000 -@@ -34,6 +34,26 @@ - resources: - {{- toYaml . | nindent 12 }} - {{- end }} -+ volumeMounts: -+ - name: aws-token -+ mountPath: "/var/run/secrets/sts.amazonaws.com/serviceaccount/" -+ readOnly: true -+ volumes: -+ - name: aws-token -+ projected: -+ sources: -+ - serviceAccountToken: -+ path: token -+ expirationSeconds: 86400 -+ audience: "sts.amazonaws.com" -+ {{- with .Values.nodeSelector }} -+ nodeSelector: -+ {{- toYaml . | nindent 8 }} -+ {{- end }} -+ {{- with .Values.tolerations }} -+ tolerations: -+ {{- toYaml . | nindent 8 }} -+ {{- end }} - {{- with .Values.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} diff --git a/charts/kubezero-addons/aws-node-termination-handler.patch b/charts/kubezero-addons/aws-node-termination-handler.patch deleted file mode 100644 index bf883b2f..00000000 --- a/charts/kubezero-addons/aws-node-termination-handler.patch +++ /dev/null @@ -1,29 +0,0 @@ -diff -tuNr charts/aws-node-termination-handler.orig/templates/deployment.yaml charts/aws-node-termination-handler/templates/deployment.yaml ---- charts/aws-node-termination-handler.orig/templates/deployment.yaml 2022-01-26 18:01:36.123482217 +0100 -+++ charts/aws-node-termination-handler/templates/deployment.yaml 2022-01-26 18:08:21.464304621 +0100 -@@ -175,13 +175,23 @@ - resources: - {{- toYaml . | nindent 12 }} - {{- end }} -- {{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }} - volumeMounts: -+ - name: aws-token -+ mountPath: "/var/run/secrets/sts.amazonaws.com/serviceaccount/" -+ readOnly: true -+ {{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }} - - name: webhook-template - mountPath: /config/ - {{- end }} -- {{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }} - volumes: -+ - name: aws-token -+ projected: -+ sources: -+ - serviceAccountToken: -+ path: token -+ expirationSeconds: 86400 -+ audience: "sts.amazonaws.com" -+ {{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }} - - name: webhook-template - configMap: - name: {{ .Values.webhookTemplateConfigMapName }} diff --git a/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/Chart.yaml b/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/Chart.yaml deleted file mode 100644 index 152dbcc9..00000000 --- a/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/Chart.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: v2 -description: Handles rolling upgrades for AWS ASGs for EKS by replacing outdated nodes - by new nodes. -home: https://github.com/TwiN/aws-eks-asg-rolling-update-handler -maintainers: -- name: TwiN -name: aws-eks-asg-rolling-update-handler -version: 1.5.0 diff --git a/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/README.md b/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/README.md deleted file mode 100644 index 3e55f192..00000000 --- a/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# aws-eks-asg-rolling-update-handler - -## Configuration -The following table lists the configurable parameters of the aws-eks-asg-rolling-update-handler chart and their default values. -| Parameters | Description | Required | Default | -|:-----------|:------------|:---------|:------------| -| environmentVars | environment variables for aws-eks-asg-rolling-update-handler container, available variables are listed [here](https://github.com/TwiN/aws-eks-asg-rolling-update-handler/blob/master/README.md#usage) | yes |`[{"name":"CLUSTER_NAME","value":"cluster-name"}]`| -| replicaCount | Number of aws-eks-asg-rolling-update-handler replicas | yes |`1` | -| image.repository | Image repository | yes | `twinproduction/aws-eks-asg-rolling-update-handler` | -| image.tag | image tag | yes | `v1.4.3` | -| image.pullPolicy | Image pull policy | yes | `IfNotPresent` | -| resources | CPU/memory resource requests/limits | no | `{}` | -| podAnnotations | Annotations to add to the aws-eks-asg-rolling-update-handler pod configuration | no | `{}` | -| podLabels | Labels to add to the aws-eks-asg-rolling-update-handler pod configuration | no | `{}` | -| securityContext | Pod security context | no | `{}` | -| containerSecurityContext | Container security context | no | `{}` | diff --git a/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/_helpers.tpl b/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/_helpers.tpl deleted file mode 100644 index 404193de..00000000 --- a/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/_helpers.tpl +++ /dev/null @@ -1,31 +0,0 @@ -{{/* -Create a default app name. -*/}} -{{- define "aws-eks-asg-rolling-update-handler.name" -}} -{{- .Chart.Name -}} -{{- end -}} - -{{/* -Create a default namespace. -*/}} -{{- define "aws-eks-asg-rolling-update-handler.namespace" -}} -{{- .Release.Namespace -}} -{{- end -}} - -{{/* -Common labels -*/}} -{{- define "aws-eks-asg-rolling-update-handler.labels" -}} -app.kubernetes.io/name: {{ include "aws-eks-asg-rolling-update-handler.name" . }} -{{- end -}} - -{{/* -Create the name of the service account to use. -*/}} -{{- define "aws-eks-asg-rolling-update-handler.serviceAccountName" -}} -{{- if .Values.serviceAccount.create -}} - {{ default (include "aws-eks-asg-rolling-update-handler.name" .) .Values.serviceAccount.name }} -{{- else -}} - {{ default "default" .Values.serviceAccount.name }} -{{- end -}} -{{- end -}} \ No newline at end of file diff --git a/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/cluster-role-binding.yaml b/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/cluster-role-binding.yaml deleted file mode 100644 index e6c8bbdd..00000000 --- a/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/cluster-role-binding.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: {{ template "aws-eks-asg-rolling-update-handler.name" . }} - labels: -{{ include "aws-eks-asg-rolling-update-handler.labels" . | indent 4 }} -roleRef: - kind: ClusterRole - name: {{ template "aws-eks-asg-rolling-update-handler.name" . }} - apiGroup: rbac.authorization.k8s.io -subjects: - - kind: ServiceAccount - name: {{ template "aws-eks-asg-rolling-update-handler.serviceAccountName" . }} - namespace: {{ template "aws-eks-asg-rolling-update-handler.namespace" . }} \ No newline at end of file diff --git a/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/cluster-role.yaml b/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/cluster-role.yaml deleted file mode 100644 index 33b82157..00000000 --- a/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/cluster-role.yaml +++ /dev/null @@ -1,41 +0,0 @@ ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: {{ template "aws-eks-asg-rolling-update-handler.name" . }} - labels: -{{ include "aws-eks-asg-rolling-update-handler.labels" . | indent 4 }} -rules: - - apiGroups: - - "*" - resources: - - "*" - verbs: - - get - - list - - watch - - apiGroups: - - "*" - resources: - - nodes - verbs: - - get - - list - - watch - - update - - patch - - apiGroups: - - "*" - resources: - - pods/eviction - verbs: - - get - - list - - create - - apiGroups: - - "*" - resources: - - pods - verbs: - - get - - list \ No newline at end of file diff --git a/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/deployment.yaml b/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/deployment.yaml deleted file mode 100644 index d460861e..00000000 --- a/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/deployment.yaml +++ /dev/null @@ -1,71 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ template "aws-eks-asg-rolling-update-handler.name" . }} - namespace: {{ template "aws-eks-asg-rolling-update-handler.namespace" . }} - labels: -{{ include "aws-eks-asg-rolling-update-handler.labels" . | indent 4 }} -spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: -{{ include "aws-eks-asg-rolling-update-handler.labels" . | indent 6 }} - template: - metadata: - labels: -{{ include "aws-eks-asg-rolling-update-handler.labels" . | indent 8 }} - {{- with .Values.podLabels }} - {{- toYaml . | nindent 8 }} - {{- end }} - annotations: - {{- with .Values.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} - spec: - {{- if .Values.securityContext }} - securityContext: - {{ toYaml .Values.securityContext | nindent 8 | trim }} - {{- end }} - automountServiceAccountToken: true - serviceAccountName: {{ template "aws-eks-asg-rolling-update-handler.serviceAccountName" . }} - restartPolicy: Always - dnsPolicy: Default - containers: - - name: {{ template "aws-eks-asg-rolling-update-handler.name" . }} - image: {{ .Values.image.repository }}:{{ .Values.image.tag }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.containerSecurityContext }} - securityContext: - {{ toYaml .Values.containerSecurityContext | nindent 12 | trim }} - {{- end }} - env: -{{- toYaml .Values.environmentVars | nindent 12 }} -{{- with .Values.resources }} - resources: -{{- toYaml . | nindent 12 }} -{{- end }} - volumeMounts: - - name: aws-token - mountPath: "/var/run/secrets/sts.amazonaws.com/serviceaccount/" - readOnly: true - volumes: - - name: aws-token - projected: - sources: - - serviceAccountToken: - path: token - expirationSeconds: 86400 - audience: "sts.amazonaws.com" - {{- with .Values.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} diff --git a/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/service-account.yaml b/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/service-account.yaml deleted file mode 100644 index 958b1db0..00000000 --- a/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/templates/service-account.yaml +++ /dev/null @@ -1,13 +0,0 @@ -{{ if .Values.serviceAccount.create }} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ template "aws-eks-asg-rolling-update-handler.serviceAccountName" . }} - namespace: {{ template "aws-eks-asg-rolling-update-handler.namespace" . }} - labels: -{{ include "aws-eks-asg-rolling-update-handler.labels" . | indent 4 }} - {{- with .Values.serviceAccount.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -{{ end }} \ No newline at end of file diff --git a/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/values.yaml b/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/values.yaml deleted file mode 100644 index d5c049d3..00000000 --- a/charts/kubezero-addons/charts/aws-eks-asg-rolling-update-handler/values.yaml +++ /dev/null @@ -1,51 +0,0 @@ -replicaCount: 1 - -image: - repository: twinproduction/aws-eks-asg-rolling-update-handler - tag: v1.7.0 - pullPolicy: IfNotPresent - -#imagePullSecrets: -#- imagePullSecret - -environmentVars: -- name: CLUSTER_NAME - value: "cluster-name" # REPLACE THIS WITH THE NAME OF YOUR EKS CLUSTER -#- name: AUTO_SCALING_GROUP_NAMES -# value: "asg-1,asg-2,asg-3" # REPLACE THESE VALUES FOR THE NAMES OF THE ASGs, if CLUSTER_NAME is provided, this is ignored -#- name: IGNORE_DAEMON_SETS -# value: "true" -#- name: DELETE_LOCAL_DATA -# value: "true" -#- name: AWS_REGION -# value: us-west-2 -#- name: ENVIRONMENT -# value: "" - -resources: {} - # limits: - # cpu: 0.3 - # memory: 100Mi - # requests: - # cpu: 0.1 - # memory: 50Mi -podAnnotations: {} - # prometheus.io/port: "8080" - # prometheus.io/scrape: "true" -podLabels: {} -serviceAccount: - create: true - #name: aws-eks-asg-rolling-update-handler - annotations: {} - -securityContext: {} - # runAsNonRoot: true - # runAsUser: 1001 - # seccompProfile: -# type: RuntimeDefault - -containerSecurityContext: {} - # allowPrivilegeEscalation: false - # capabilities: - # drop: -# - ALL diff --git a/charts/kubezero-addons/charts/aws-node-termination-handler/.helmignore b/charts/kubezero-addons/charts/aws-node-termination-handler/.helmignore deleted file mode 100644 index 69a52314..00000000 --- a/charts/kubezero-addons/charts/aws-node-termination-handler/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ -example-values*.yaml diff --git a/charts/kubezero-addons/charts/aws-node-termination-handler/Chart.yaml b/charts/kubezero-addons/charts/aws-node-termination-handler/Chart.yaml deleted file mode 100644 index f4d20ff1..00000000 --- a/charts/kubezero-addons/charts/aws-node-termination-handler/Chart.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: v2 -appVersion: 1.21.0 -description: A Helm chart for the AWS Node Termination Handler. -home: https://github.com/aws/aws-node-termination-handler/ -icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png -keywords: -- aws -- eks -- ec2 -- node-termination -- spot -kubeVersion: '>= 1.16-0' -maintainers: -- email: bwagner5@users.noreply.github.com - name: Brandon Wagner - url: https://github.com/bwagner5 -- email: jillmon@users.noreply.github.com - name: Jillian Kuentz - url: https://github.com/jillmon -name: aws-node-termination-handler -sources: -- https://github.com/aws/aws-node-termination-handler/ -type: application -version: 0.23.0 diff --git a/charts/kubezero-addons/charts/aws-node-termination-handler/README.md b/charts/kubezero-addons/charts/aws-node-termination-handler/README.md deleted file mode 100644 index 06ceac1a..00000000 --- a/charts/kubezero-addons/charts/aws-node-termination-handler/README.md +++ /dev/null @@ -1,179 +0,0 @@ -# AWS Node Termination Handler - -AWS Node Termination Handler Helm chart for Kubernetes. For more information on this project see the project repo at [github.com/aws/aws-node-termination-handler](https://github.com/aws/aws-node-termination-handler). - -## Prerequisites - -- _Kubernetes_ >= v1.16 - -## Installing the Chart - -Before you can install the chart you will need to authenticate your Helm client. -```shell -aws ecr-public get-login-password \ - --region us-east-1 | helm registry login \ - --username AWS \ - --password-stdin public.ecr.aws -``` - -Once the helm registry login succeeds, use the following command to install the chart with the release name `aws-node-termination-handler` and the default configuration to the `kube-system` namespace. In the below command, add the CHART_VERSION that you want to install. - -```shell -helm upgrade --install --namespace kube-system aws-node-termination-handler oci://public.ecr.aws/aws-ec2/helm/aws-node-termination-handler --version $CHART_VERSION -``` - -To install the chart on an EKS cluster where the AWS Node Termination Handler is already installed, you can run the following command. - -```shell -helm upgrade --install --namespace kube-system aws-node-termination-handler oci://public.ecr.aws/aws-ec2/helm/aws-node-termination-handler --version $CHART_VERSION --recreate-pods --force -``` - -If you receive an error similar to the one below simply rerun the above command. - -> Error: release aws-node-termination-handler failed: "aws-node-termination-handler" already exists - -To uninstall the `aws-node-termination-handler` chart installation from the `kube-system` namespace run the following command. - -```shell -helm uninstall --namespace kube-system aws-node-termination-handler -``` - -## Configuration - -The following tables lists the configurable parameters of the chart and their default values. These values are split up into the [common configuration](#common-configuration) shared by all AWS Node Termination Handler modes, [queue configuration](#queue-processor-mode-configuration) used when AWS Node Termination Handler is in in queue-processor mode, and [IMDS configuration](#imds-mode-configuration) used when AWS Node Termination Handler is in IMDS mode; for more information about the different modes see the project [README](https://github.com/aws/aws-node-termination-handler/blob/main/README.md). - -### Common Configuration - -The configuration in this table applies to all AWS Node Termination Handler modes. - -| Parameter | Description | Default | -| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- | -| `image.repository` | Image repository. | `public.ecr.aws/aws-ec2/aws-node-termination-handler` | -| `image.tag` | Image tag. | `v{{ .Chart.AppVersion}}` | -| `image.pullPolicy` | Image pull policy. | `IfNotPresent` | -| `image.pullSecrets` | Image pull secrets. | `[]` | -| `nameOverride` | Override the `name` of the chart. | `""` | -| `fullnameOverride` | Override the `fullname` of the chart. | `""` | -| `serviceAccount.create` | If `true`, create a new service account. | `true` | -| `serviceAccount.name` | Service account to be used. If not set and `serviceAccount.create` is `true`, a name is generated using the full name template. | `nil` | -| `serviceAccount.annotations` | Annotations to add to the service account. | `{}` | -| `rbac.create` | If `true`, create the RBAC resources. | `true` | -| `rbac.pspEnabled` | If `true`, create a pod security policy resource. Note: `PodSecurityPolicy`s will not be created when Kubernetes version is 1.25 or later. | `true` | -| `customLabels` | Labels to add to all resource metadata. | `{}` | -| `podLabels` | Labels to add to the pod. | `{}` | -| `podAnnotations` | Annotations to add to the pod. | `{}` | -| `podSecurityContext` | Security context for the pod. | _See values.yaml_ | -| `securityContext` | Security context for the _aws-node-termination-handler_ container. | _See values.yaml_ | -| `terminationGracePeriodSeconds` | The termination grace period for the pod. | `nil` | -| `resources` | Resource requests and limits for the _aws-node-termination-handler_ container. | `{}` | -| `nodeSelector` | Expressions to select a node by it's labels for pod assignment. In IMDS mode this has a higher priority than `daemonsetNodeSelector` (for backwards compatibility) but shouldn't be used. | `{}` | -| `affinity` | Affinity settings for pod assignment. In IMDS mode this has a higher priority than `daemonsetAffinity` (for backwards compatibility) but shouldn't be used. | `{}` | -| `tolerations` | Tolerations for pod assignment. In IMDS mode this has a higher priority than `daemonsetTolerations` (for backwards compatibility) but shouldn't be used. | `[]` | -| `extraEnv` | Additional environment variables for the _aws-node-termination-handler_ container. | `[]` | -| `probes` | The Kubernetes liveness probe configuration. | _See values.yaml_ | -| `logLevel` | Sets the log level (`info`,`debug`, or `error`) | `info` | -| `logFormatVersion` | Sets the log format version. Available versions: 1, 2. Version 1 refers to the format that has been used through v1.17.3. Version 2 offers more detail for the "event kind" and "reason", especially when operating in Queue Processor mode. | `1` | -| `jsonLogging` | If `true`, use JSON-formatted logs instead of human readable logs. | `false` | -| `enablePrometheusServer` | If `true`, start an http server exposing `/metrics` endpoint for _Prometheus_. | `false` | -| `prometheusServerPort` | Replaces the default HTTP port for exposing _Prometheus_ metrics. | `9092` | -| `dryRun` | If `true`, only log if a node would be drained. | `false` | -| `cordonOnly` | If `true`, nodes will be cordoned but not drained when an interruption event occurs. | `false` | -| `taintNode` | If `true`, nodes will be tainted when an interruption event occurs. Currently used taint keys are `aws-node-termination-handler/scheduled-maintenance`, `aws-node-termination-handler/spot-itn`, `aws-node-termination-handler/asg-lifecycle-termination` and `aws-node-termination-handler/rebalance-recommendation`. | `false` | -| `excludeFromLoadBalancers` | If `true`, nodes will be marked for exclusion from load balancers before they are cordoned. This applies the `node.kubernetes.io/exclude-from-external-load-balancers` label to enable the ServiceNodeExclusion feature gate. The label will not be modified or removed for nodes that already have it. | `false` | -| `deleteLocalData` | If `true`, continue even if there are pods using local data that will be deleted when the node is drained. | `true` | -| `ignoreDaemonSets` | If `true`, skip terminating daemon set managed pods. | `true` | -| `podTerminationGracePeriod` | The time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used, which defaults to 30 seconds if not specified for the pod. | `-1` | -| `nodeTerminationGracePeriod` | Period of time in seconds given to each node to terminate gracefully. Node draining will be scheduled based on this value to optimize the amount of compute time, but still safely drain the node before an event. | `120` | -| `emitKubernetesEvents` | If `true`, Kubernetes events will be emitted when interruption events are received and when actions are taken on Kubernetes nodes. In IMDS Processor mode a default set of annotations with all the node metadata gathered from IMDS will be attached to each event. More information [here](https://github.com/aws/aws-node-termination-handler/blob/main/docs/kubernetes_events.md). | `false` | -| `completeLifecycleActionDelaySeconds` | Pause after draining the node before completing the EC2 Autoscaling lifecycle action. This may be helpful if Pods on the node have Persistent Volume Claims. | -1 | -| `kubernetesEventsExtraAnnotations` | A comma-separated list of `key=value` extra annotations to attach to all emitted Kubernetes events (e.g. `first=annotation,sample.annotation/number=two"`). | `""` | -| `webhookURL` | Posts event data to URL upon instance interruption action. | `""` | -| `webhookURLSecretName` | Pass the webhook URL as a Secret using the key `webhookurl`. | `""` | -| `webhookHeaders` | Replace the default webhook headers (e.g. `{"Content-type":"application/json"}`). | `""` | -| `webhookProxy` | Uses the specified HTTP(S) proxy for sending webhook data. | `""` | -| `webhookTemplate` | Replaces the default webhook message template (e.g. `{"text":"[NTH][Instance Interruption] EventID: {{ .EventID }} - Kind: {{ .Kind }} - Instance: {{ .InstanceID }} - Node: {{ .NodeName }} - Description: {{ .Description }} - Start Time: {{ .StartTime }}"}`). | `""` | -| `webhookTemplateConfigMapName` | Pass the webhook template file as a configmap. | "``" | -| `webhookTemplateConfigMapKey` | Name of the Configmap key storing the template file. | `""` | -| `enableSqsTerminationDraining` | If `true`, this turns on queue-processor mode which drains nodes when an SQS termination event is received. | `false` | - -### Queue-Processor Mode Configuration - -The configuration in this table applies to AWS Node Termination Handler in queue-processor mode. - -| Parameter | Description | Default | -| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- | -| `replicas` | The number of replicas in the deployment when using queue-processor mode (NOTE: increasing replicas may cause duplicate webhooks since pods are stateless). | `1` | -| `strategy` | Specify the update strategy for the deployment. | `{}` | -| `podDisruptionBudget` | Limit the disruption for controller pods, requires at least 2 controller replicas. | `{}` | -| `serviceMonitor.create` | If `true`, create a ServiceMonitor. This requires `enablePrometheusServer: true`. | `false` | -| `serviceMonitor.namespace` | Override ServiceMonitor _Helm_ release namespace. | `nil` | -| `serviceMonitor.labels` | Additional ServiceMonitor metadata labels. | `{}` | -| `serviceMonitor.interval` | _Prometheus_ scrape interval. | `30s` | -| `serviceMonitor.sampleLimit` | Number of scraped samples accepted. | `5000` | -| `priorityClassName` | Name of the PriorityClass to use for the Deployment. | `system-cluster-critical` | -| `awsRegion` | If specified, use the AWS region for AWS API calls, else NTH will try to find the region through the `AWS_REGION` environment variable, IMDS, or the specified queue URL. | `""` | -| `queueURL` | Listens for messages on the specified SQS queue URL. | `""` | -| `workers` | The maximum amount of parallel event processors to handle concurrent events. | `10` | -| `checkTagBeforeDraining` | If `true`, check that the instance is tagged with the `managedTag` before draining the node. | `true` | -| `managedTag` | The node tag to check if `checkTagBeforeDraining` is `true`. | `aws-node-termination-handler/managed` | -| `checkASGTagBeforeDraining` | [DEPRECATED](Use `checkTagBeforeDraining` instead) If `true`, check that the instance is tagged with the `managedAsgTag` before draining the node. If `false`, disables calls ASG API. | `true` | -| `managedAsgTag` | [DEPRECATED](Use `managedTag` instead) The node tag to check if `checkASGTagBeforeDraining` is `true`. -| `useProviderId` | If `true`, fetch node name through Kubernetes node spec ProviderID instead of AWS event PrivateDnsHostname. | `false` | -| `topologySpreadConstraints` | [Topology Spread Constraints](https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/) for pod scheduling. Useful with a highly available deployment to reduce the risk of running multiple replicas on the same Node | `[]` | -### IMDS Mode Configuration - -The configuration in this table applies to AWS Node Termination Handler in IMDS mode. - -| Parameter | Description | Default | -| -------------------------------- |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------| -| `targetNodeOs` | Space separated list of node OS's to target (e.g. `"linux"`, `"windows"`, `"linux windows"`). Windows support is **EXPERIMENTAL**. | `"linux"` | -| `linuxPodLabels` | Labels to add to each Linux pod. | `{}` | -| `windowsPodLabels` | Labels to add to each Windows pod. | `{}` | -| `linuxPodAnnotations` | Annotations to add to each Linux pod. | `{}` | -| `windowsPodAnnotations` | Annotations to add to each Windows pod. | `{}` | -| `updateStrategy` | Update strategy for the all DaemonSets. | _See values.yaml_ | -| `daemonsetPriorityClassName` | Name of the PriorityClass to use for all DaemonSets. | `system-node-critical` | -| `podMonitor.create` | If `true`, create a PodMonitor. This requires `enablePrometheusServer: true`. | `false` | -| `podMonitor.namespace` | Override PodMonitor _Helm_ release namespace. | `nil` | -| `podMonitor.labels` | Additional PodMonitor metadata labels | `{}` | -| `podMonitor.interval` | _Prometheus_ scrape interval. | `30s` | -| `podMonitor.sampleLimit` | Number of scraped samples accepted. | `5000` | -| `useHostNetwork` | If `true`, enables `hostNetwork` for the Linux DaemonSet. NOTE: setting this to `false` may cause issues accessing IMDSv2 if your account is not configured with an IP hop count of 2 see [Metrics Endpoint Considerations](#metrics-endpoint-considerations) | `true` | -| `dnsPolicy` | If specified, this overrides `linuxDnsPolicy` and `windowsDnsPolicy` with a single policy. | `""` | -| `dnsConfig` | If specified, this sets the dnsConfig: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config | `{}` | -| `linuxDnsPolicy` | DNS policy for the Linux DaemonSet. | `""` | -| `windowsDnsPolicy` | DNS policy for the Windows DaemonSet. | `""` | -| `daemonsetNodeSelector` | Expressions to select a node by it's labels for DaemonSet pod assignment. For backwards compatibility the `nodeSelector` value has priority over this but shouldn't be used. | `{}` | -| `linuxNodeSelector` | Override `daemonsetNodeSelector` for the Linux DaemonSet. | `{}` | -| `windowsNodeSelector` | Override `daemonsetNodeSelector` for the Windows DaemonSet. | `{}` | -| `daemonsetAffinity` | Affinity settings for DaemonSet pod assignment. For backwards compatibility the `affinity` has priority over this but shouldn't be used. | `{}` | -| `linuxAffinity` | Override `daemonsetAffinity` for the Linux DaemonSet. | `{}` | -| `windowsAffinity` | Override `daemonsetAffinity` for the Windows DaemonSet. | `{}` | -| `daemonsetTolerations` | Tolerations for DaemonSet pod assignment. For backwards compatibility the `tolerations` has priority over this but shouldn't be used. | `[]` | -| `linuxTolerations` | Override `daemonsetTolerations` for the Linux DaemonSet. | `[]` | -| `windowsTolerations` | Override `daemonsetTolerations` for the Linux DaemonSet. | `[]` | -| `enableProbesServer` | If `true`, start an http server exposing `/healthz` endpoint for probes. | `false` | -| `metadataTries` | The number of times to try requesting metadata. | `3` | -| `enableSpotInterruptionDraining` | If `true`, drain nodes when the spot interruption termination notice is received. Only used in IMDS mode. | `true` | -| `enableScheduledEventDraining` | If `true`, drain nodes before the maintenance window starts for an EC2 instance scheduled event. Only used in IMDS mode. | `true` | -| `enableRebalanceMonitoring` | If `true`, cordon nodes when the rebalance recommendation notice is received. If you'd like to drain the node in addition to cordoning, then also set `enableRebalanceDraining`. Only used in IMDS mode. | `false` | -| `enableRebalanceDraining` | If `true`, drain nodes when the rebalance recommendation notice is received. Only used in IMDS mode. | `false` | -| `deleteSqsMsgIfNodeNotFound` | If `true`, delete the SQS Message from the SQS Queue if the targeted node is not found. Only used in Queue Processor mode. | `false` | - -### Testing Configuration - -The configuration in this table applies to AWS Node Termination Handler testing and is **NOT RECOMMENDED** FOR PRODUCTION DEPLOYMENTS. - -| Parameter | Description | Default | -| --------------------- | --------------------------------------------------------------------------------- | -------------- | -| `awsEndpoint` | (Used for testing) If specified, use the provided AWS endpoint to make API calls. | `""` | -| `awsSecretAccessKey` | (Used for testing) Pass-thru environment variable. | `nil` | -| `awsAccessKeyID` | (Used for testing) Pass-thru environment variable. | `nil` | -| `instanceMetadataURL` | (Used for testing) If specified, use the provided metadata URL. | `""` | -| `procUptimeFile` | (Used for Testing) Specify the uptime file. | `/proc/uptime` | - -## Metrics Endpoint Considerations - -AWS Node Termination Handler in IMDS mode runs as a DaemonSet with `useHostNetwork: true` by default. If the Prometheus server is enabled with `enablePrometheusServer: true` nothing else will be able to bind to the configured port (by default `prometheusServerPort: 9092`) in the root network namespace. Therefore, it will need to have a firewall/security group configured on the nodes to block access to the `/metrics` endpoint. - -You can switch NTH in IMDS mode to run w/ `useHostNetwork: false`, but you will need to make sure that IMDSv1 is enabled or IMDSv2 IP hop count will need to be incremented to 2 (see the [IMDSv2 documentation](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html). diff --git a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/NOTES.txt b/charts/kubezero-addons/charts/aws-node-termination-handler/templates/NOTES.txt deleted file mode 100644 index d0aaf70c..00000000 --- a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/NOTES.txt +++ /dev/null @@ -1,8 +0,0 @@ -*********************************************************************** -* AWS Node Termination Handler * -*********************************************************************** - Chart version: {{ .Chart.Version }} - App version: {{ .Chart.AppVersion }} - Image tag: {{ include "aws-node-termination-handler.image" . }} - Mode : {{ if .Values.enableSqsTerminationDraining }}Queue Processor{{ else }}IMDS{{ end }} -*********************************************************************** diff --git a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/_helpers.tpl b/charts/kubezero-addons/charts/aws-node-termination-handler/templates/_helpers.tpl deleted file mode 100644 index 3513d2a9..00000000 --- a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/_helpers.tpl +++ /dev/null @@ -1,124 +0,0 @@ -{{/* vim: set filetype=mustache: */}} - -{{/* -Expand the name of the chart. -*/}} -{{- define "aws-node-termination-handler.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "aws-node-termination-handler.fullname" -}} -{{- if .Values.fullnameOverride -}} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- $name := default .Chart.Name .Values.nameOverride -}} -{{- if contains $name .Release.Name -}} -{{- .Release.Name | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} -{{- end -}} -{{- end -}} -{{- end -}} - -{{/* -Equivalent to "aws-node-termination-handler.fullname" except that "-win" indicator is appended to the end. -Name will not exceed 63 characters. -*/}} -{{- define "aws-node-termination-handler.fullnameWindows" -}} -{{- include "aws-node-termination-handler.fullname" . | trunc 59 | trimSuffix "-" | printf "%s-win" -}} -{{- end -}} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "aws-node-termination-handler.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Common labels -*/}} -{{- define "aws-node-termination-handler.labels" -}} -{{ include "aws-node-termination-handler.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/part-of: {{ .Release.Name }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -helm.sh/chart: {{ include "aws-node-termination-handler.chart" . }} -{{- with .Values.customLabels }} -{{ toYaml . }} -{{- end }} -{{- end -}} - -{{/* -Deployment labels -*/}} -{{- define "aws-node-termination-handler.labelsDeployment" -}} -{{ include "aws-node-termination-handler.labels" . }} -app.kubernetes.io/component: deployment -{{- end -}} - -{{/* -Daemonset labels -*/}} -{{- define "aws-node-termination-handler.labelsDaemonset" -}} -{{ include "aws-node-termination-handler.labels" . }} -app.kubernetes.io/component: daemonset -{{- end -}} - -{{/* -Selector labels -*/}} -{{- define "aws-node-termination-handler.selectorLabels" -}} -app.kubernetes.io/name: {{ include "aws-node-termination-handler.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end -}} - -{{/* -Selector labels for the deployment -*/}} -{{- define "aws-node-termination-handler.selectorLabelsDeployment" -}} -{{ include "aws-node-termination-handler.selectorLabels" . }} -app.kubernetes.io/component: deployment -{{- end -}} - -{{/* -Selector labels for the daemonset -*/}} -{{- define "aws-node-termination-handler.selectorLabelsDaemonset" -}} -{{ include "aws-node-termination-handler.selectorLabels" . }} -app.kubernetes.io/component: daemonset -{{- end -}} - -{{/* -Create the name of the service account to use -*/}} -{{- define "aws-node-termination-handler.serviceAccountName" -}} -{{- if .Values.serviceAccount.create -}} - {{ default (include "aws-node-termination-handler.fullname" .) .Values.serviceAccount.name }} -{{- else -}} - {{ default "default" .Values.serviceAccount.name }} -{{- end -}} -{{- end -}} - -{{/* -The image to use -*/}} -{{- define "aws-node-termination-handler.image" -}} -{{- printf "%s:%s" .Values.image.repository (default (printf "v%s" .Chart.AppVersion) .Values.image.tag) }} -{{- end }} - -{{/* Get PodDisruptionBudget API Version */}} -{{- define "aws-node-termination-handler.pdb.apiVersion" -}} - {{- if and (.Capabilities.APIVersions.Has "policy/v1") (semverCompare ">= 1.21-0" .Capabilities.KubeVersion.Version) -}} - {{- print "policy/v1" -}} - {{- else -}} - {{- print "policy/v1beta1" -}} - {{- end -}} -{{- end -}} diff --git a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/clusterrole.yaml b/charts/kubezero-addons/charts/aws-node-termination-handler/templates/clusterrole.yaml deleted file mode 100644 index 43c2b030..00000000 --- a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/clusterrole.yaml +++ /dev/null @@ -1,52 +0,0 @@ -{{- if .Values.rbac.create -}} -kind: ClusterRole -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: {{ include "aws-node-termination-handler.fullname" . }} - labels: - {{- include "aws-node-termination-handler.labels" . | nindent 4 }} -rules: -- apiGroups: - - "" - resources: - - nodes - verbs: - - get - - list - - patch - - update -- apiGroups: - - "" - resources: - - pods - verbs: - - list - - get -- apiGroups: - - "" - resources: - - pods/eviction - verbs: - - create -- apiGroups: - - extensions - resources: - - daemonsets - verbs: - - get -- apiGroups: - - apps - resources: - - daemonsets - verbs: - - get -{{- if .Values.emitKubernetesEvents }} -- apiGroups: - - "" - resources: - - events - verbs: - - create - - patch -{{- end }} -{{- end -}} diff --git a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/clusterrolebinding.yaml b/charts/kubezero-addons/charts/aws-node-termination-handler/templates/clusterrolebinding.yaml deleted file mode 100644 index 1058df1b..00000000 --- a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/clusterrolebinding.yaml +++ /dev/null @@ -1,16 +0,0 @@ -{{- if .Values.rbac.create -}} -kind: ClusterRoleBinding -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: {{ include "aws-node-termination-handler.fullname" . }} - labels: - {{- include "aws-node-termination-handler.labels" . | nindent 4 }} -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: {{ include "aws-node-termination-handler.fullname" . }} -subjects: - - kind: ServiceAccount - name: {{ template "aws-node-termination-handler.serviceAccountName" . }} - namespace: {{ .Release.Namespace }} -{{- end -}} diff --git a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/daemonset.linux.yaml b/charts/kubezero-addons/charts/aws-node-termination-handler/templates/daemonset.linux.yaml deleted file mode 100644 index 95e4b50f..00000000 --- a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/daemonset.linux.yaml +++ /dev/null @@ -1,210 +0,0 @@ -{{- if and (not .Values.enableSqsTerminationDraining) (lower .Values.targetNodeOs | contains "linux") -}} -apiVersion: apps/v1 -kind: DaemonSet -metadata: - name: {{ include "aws-node-termination-handler.fullname" . }} - namespace: {{ .Release.Namespace }} - labels: - {{- include "aws-node-termination-handler.labelsDaemonset" . | nindent 4 }} -spec: - {{- with .Values.updateStrategy }} - updateStrategy: - {{- toYaml . | nindent 4 }} - {{- end }} - selector: - matchLabels: - {{- include "aws-node-termination-handler.selectorLabelsDaemonset" . | nindent 6 }} - kubernetes.io/os: linux - template: - metadata: - labels: - {{- include "aws-node-termination-handler.selectorLabelsDaemonset" . | nindent 8 }} - kubernetes.io/os: linux - k8s-app: aws-node-termination-handler - {{- with (mergeOverwrite (dict) .Values.podLabels .Values.linuxPodLabels) }} - {{- toYaml . | nindent 8 }} - {{- end }} - {{- if or .Values.podAnnotations .Values.linuxPodAnnotations }} - annotations: - {{- toYaml (mergeOverwrite (dict) .Values.podAnnotations .Values.linuxPodAnnotations) | nindent 8 }} - {{- end }} - spec: - {{- with .Values.image.pullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - serviceAccountName: {{ include "aws-node-termination-handler.serviceAccountName" . }} - {{- with .Values.podSecurityContext }} - securityContext: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.daemonsetPriorityClassName }} - priorityClassName: {{ . }} - {{- end }} - {{- with .Values.terminationGracePeriodSeconds }} - terminationGracePeriodSeconds: {{ . }} - {{- end }} - hostNetwork: {{ .Values.useHostNetwork }} - dnsPolicy: {{ default .Values.linuxDnsPolicy .Values.dnsPolicy }} - {{- with .Values.dnsConfig }} - dnsConfig: - {{- toYaml . | nindent 8 }} - {{- end }} - containers: - - name: aws-node-termination-handler - {{- with .Values.securityContext }} - securityContext: - {{- toYaml . | nindent 12 }} - {{- end }} - image: {{ include "aws-node-termination-handler.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - env: - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: spec.nodeName - - name: POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: ENABLE_PROBES_SERVER - value: {{ .Values.enableProbesServer | quote }} - - name: PROBES_SERVER_PORT - value: {{ .Values.probes.httpGet.port | quote }} - - name: PROBES_SERVER_ENDPOINT - value: {{ .Values.probes.httpGet.path | quote }} - - name: LOG_LEVEL - value: {{ .Values.logLevel | quote }} - - name: JSON_LOGGING - value: {{ .Values.jsonLogging | quote }} - - name: LOG_FORMAT_VERSION - value: {{ .Values.logFormatVersion | quote }} - - name: ENABLE_PROMETHEUS_SERVER - value: {{ .Values.enablePrometheusServer | quote }} - - name: PROMETHEUS_SERVER_PORT - value: {{ .Values.prometheusServerPort | quote }} - {{- with .Values.instanceMetadataURL }} - - name: INSTANCE_METADATA_URL - value: {{ . | quote }} - {{- end }} - - name: METADATA_TRIES - value: {{ .Values.metadataTries | quote }} - - name: DRY_RUN - value: {{ .Values.dryRun | quote }} - - name: CORDON_ONLY - value: {{ .Values.cordonOnly | quote }} - - name: TAINT_NODE - value: {{ .Values.taintNode | quote }} - - name: EXCLUDE_FROM_LOAD_BALANCERS - value: {{ .Values.excludeFromLoadBalancers | quote }} - - name: DELETE_LOCAL_DATA - value: {{ .Values.deleteLocalData | quote }} - - name: IGNORE_DAEMON_SETS - value: {{ .Values.ignoreDaemonSets | quote }} - - name: POD_TERMINATION_GRACE_PERIOD - value: {{ .Values.podTerminationGracePeriod | quote }} - - name: NODE_TERMINATION_GRACE_PERIOD - value: {{ .Values.nodeTerminationGracePeriod | quote }} - - name: EMIT_KUBERNETES_EVENTS - value: {{ .Values.emitKubernetesEvents | quote }} - {{- with .Values.kubernetesEventsExtraAnnotations }} - - name: KUBERNETES_EVENTS_EXTRA_ANNOTATIONS - value: {{ . | quote }} - {{- end }} - {{- if or .Values.webhookURL .Values.webhookURLSecretName }} - - name: WEBHOOK_URL - {{- if .Values.webhookURLSecretName }} - valueFrom: - secretKeyRef: - name: {{ .Values.webhookURLSecretName }} - key: webhookurl - {{- else }} - value: {{ .Values.webhookURL | quote }} - {{- end }} - {{- end }} - {{- with .Values.webhookHeaders }} - - name: WEBHOOK_HEADERS - value: {{ . | quote }} - {{- end }} - {{- with .Values.webhookProxy }} - - name: WEBHOOK_PROXY - value: {{ . | quote }} - {{- end }} - {{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }} - - name: WEBHOOK_TEMPLATE_FILE - value: {{ print "/config/" .Values.webhookTemplateConfigMapKey | quote }} - {{- else if .Values.webhookTemplate }} - - name: WEBHOOK_TEMPLATE - value: {{ .Values.webhookTemplate | quote }} - {{- end }} - - name: ENABLE_SPOT_INTERRUPTION_DRAINING - value: {{ .Values.enableSpotInterruptionDraining | quote }} - - name: ENABLE_SCHEDULED_EVENT_DRAINING - value: {{ .Values.enableScheduledEventDraining | quote }} - - name: ENABLE_REBALANCE_MONITORING - value: {{ .Values.enableRebalanceMonitoring | quote }} - - name: ENABLE_REBALANCE_DRAINING - value: {{ .Values.enableRebalanceDraining | quote }} - - name: ENABLE_SQS_TERMINATION_DRAINING - value: "false" - - name: UPTIME_FROM_FILE - value: {{ .Values.procUptimeFile | quote }} - {{- with .Values.extraEnv }} - {{- toYaml . | nindent 12 }} - {{- end }} - {{- if or .Values.enablePrometheusServer .Values.enableProbesServer }} - ports: - {{- if .Values.enableProbesServer }} - - name: liveness-probe - protocol: TCP - containerPort: {{ .Values.probes.httpGet.port }} - {{- end }} - {{- if .Values.enablePrometheusServer }} - - name: http-metrics - protocol: TCP - containerPort: {{ .Values.prometheusServerPort }} - {{- end }} - {{- end }} - {{- if .Values.enableProbesServer }} - livenessProbe: - {{- toYaml .Values.probes | nindent 12 }} - {{- end }} - {{- with .Values.resources }} - resources: - {{- toYaml . | nindent 12 }} - {{- end }} - volumeMounts: - - name: uptime - mountPath: {{ .Values.procUptimeFile }} - readOnly: true - {{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }} - - name: webhook-template - mountPath: /config/ - {{- end }} - volumes: - - name: uptime - hostPath: - path: {{ .Values.procUptimeFile | default "/proc/uptime" }} - {{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }} - - name: webhook-template - configMap: - name: {{ .Values.webhookTemplateConfigMapName }} - {{- end }} - nodeSelector: - kubernetes.io/os: linux - {{- with default .Values.daemonsetNodeSelector (default .Values.nodeSelector .Values.linuxNodeSelector) }} - {{- toYaml . | nindent 8 }} - {{- end }} - {{- if or .Values.daemonsetAffinity (or .Values.affinity .Values.linuxAffinity) }} - affinity: - {{- toYaml (default .Values.daemonsetAffinity (default .Values.affinity .Values.linuxAffinity)) | nindent 8 }} - {{- end }} - {{- if or .Values.daemonsetTolerations (or .Values.tolerations .Values.linuxTolerations) }} - tolerations: - {{- toYaml (default .Values.daemonsetTolerations (default .Values.tolerations .Values.linuxTolerations )) | nindent 8 }} - {{- end }} -{{- end -}} diff --git a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/daemonset.windows.yaml b/charts/kubezero-addons/charts/aws-node-termination-handler/templates/daemonset.windows.yaml deleted file mode 100644 index 8a9db7bf..00000000 --- a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/daemonset.windows.yaml +++ /dev/null @@ -1,204 +0,0 @@ -{{- if and (not .Values.enableSqsTerminationDraining) (lower .Values.targetNodeOs | contains "windows") -}} -apiVersion: apps/v1 -kind: DaemonSet -metadata: - name: {{ include "aws-node-termination-handler.fullnameWindows" . }} - namespace: {{ .Release.Namespace }} - labels: - {{- include "aws-node-termination-handler.labelsDaemonset" . | nindent 4 }} -spec: - {{- with .Values.updateStrategy }} - updateStrategy: - {{- toYaml . | nindent 4 }} - {{- end }} - selector: - matchLabels: - {{- include "aws-node-termination-handler.selectorLabelsDaemonset" . | nindent 6 }} - kubernetes.io/os: windows - template: - metadata: - labels: - {{- include "aws-node-termination-handler.selectorLabelsDaemonset" . | nindent 8 }} - kubernetes.io/os: windows - k8s-app: aws-node-termination-handler - {{- with (mergeOverwrite (dict) .Values.podLabels .Values.windowsPodLabels) }} - {{- toYaml . | nindent 8 }} - {{- end }} - {{- if or .Values.podAnnotations .Values.windowsPodAnnotations }} - annotations: - {{- toYaml (mergeOverwrite (dict) .Values.podAnnotations .Values.windowsPodAnnotations) | nindent 8 }} - {{- end }} - spec: - {{- with .Values.image.pullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - serviceAccountName: {{ include "aws-node-termination-handler.serviceAccountName" . }} - {{- with .Values.podSecurityContext }} - securityContext: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.daemonsetPriorityClassName }} - priorityClassName: {{ . }} - {{- end }} - {{- with .Values.terminationGracePeriodSeconds }} - terminationGracePeriodSeconds: {{ . }} - {{- end }} - hostNetwork: false - dnsPolicy: {{ default .Values.windowsDnsPolicy .Values.dnsPolicy }} - {{- with .Values.dnsConfig }} - dnsConfig: - {{- toYaml . | nindent 8 }} - {{- end }} - containers: - - name: aws-node-termination-handler - {{- with unset .Values.securityContext "runAsUser" }} - securityContext: - {{- toYaml . | nindent 12 }} - {{- end }} - image: {{ include "aws-node-termination-handler.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - env: - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: spec.nodeName - - name: POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: ENABLE_PROBES_SERVER - value: {{ .Values.enableProbesServer | quote }} - - name: PROBES_SERVER_PORT - value: {{ .Values.probes.httpGet.port | quote }} - - name: PROBES_SERVER_ENDPOINT - value: {{ .Values.probes.httpGet.path | quote }} - - name: LOG_LEVEL - value: {{ .Values.logLevel | quote }} - - name: JSON_LOGGING - value: {{ .Values.jsonLogging | quote }} - - name: LOG_FORMAT_VERSION - value: {{ .Values.logFormatVersion | quote }} - - name: ENABLE_PROMETHEUS_SERVER - value: {{ .Values.enablePrometheusServer | quote }} - - name: PROMETHEUS_SERVER_PORT - value: {{ .Values.prometheusServerPort | quote }} - {{- with .Values.instanceMetadataURL }} - - name: INSTANCE_METADATA_URL - value: {{ . | quote }} - {{- end }} - - name: METADATA_TRIES - value: {{ .Values.metadataTries | quote }} - - name: DRY_RUN - value: {{ .Values.dryRun | quote }} - - name: CORDON_ONLY - value: {{ .Values.cordonOnly | quote }} - - name: TAINT_NODE - value: {{ .Values.taintNode | quote }} - - name: EXCLUDE_FROM_LOAD_BALANCERS - value: {{ .Values.excludeFromLoadBalancers | quote }} - - name: DELETE_LOCAL_DATA - value: {{ .Values.deleteLocalData | quote }} - - name: IGNORE_DAEMON_SETS - value: {{ .Values.ignoreDaemonSets | quote }} - - name: POD_TERMINATION_GRACE_PERIOD - value: {{ .Values.podTerminationGracePeriod | quote }} - - name: NODE_TERMINATION_GRACE_PERIOD - value: {{ .Values.nodeTerminationGracePeriod | quote }} - - name: EMIT_KUBERNETES_EVENTS - value: {{ .Values.emitKubernetesEvents | quote }} - {{- with .Values.kubernetesEventsExtraAnnotations }} - - name: KUBERNETES_EVENTS_EXTRA_ANNOTATIONS - value: {{ . | quote }} - {{- end }} - {{- if or .Values.webhookURL .Values.webhookURLSecretName }} - - name: WEBHOOK_URL - {{- if .Values.webhookURLSecretName }} - valueFrom: - secretKeyRef: - name: {{ .Values.webhookURLSecretName }} - key: webhookurl - {{- else }} - value: {{ .Values.webhookURL | quote }} - {{- end }} - {{- end }} - {{- with .Values.webhookHeaders }} - - name: WEBHOOK_HEADERS - value: {{ . | quote }} - {{- end }} - {{- with .Values.webhookProxy }} - - name: WEBHOOK_PROXY - value: {{ . | quote }} - {{- end }} - {{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }} - - name: WEBHOOK_TEMPLATE_FILE - value: {{ print "/config/" .Values.webhookTemplateConfigMapKey | quote }} - {{- else if .Values.webhookTemplate }} - - name: WEBHOOK_TEMPLATE - value: {{ .Values.webhookTemplate | quote }} - {{- end }} - - name: ENABLE_SPOT_INTERRUPTION_DRAINING - value: {{ .Values.enableSpotInterruptionDraining | quote }} - - name: ENABLE_SCHEDULED_EVENT_DRAINING - value: {{ .Values.enableScheduledEventDraining | quote }} - - name: ENABLE_REBALANCE_MONITORING - value: {{ .Values.enableRebalanceMonitoring | quote }} - - name: ENABLE_REBALANCE_DRAINING - value: {{ .Values.enableRebalanceDraining | quote }} - - name: ENABLE_SQS_TERMINATION_DRAINING - value: "false" - {{- with .Values.extraEnv }} - {{- toYaml . | nindent 12 }} - {{- end }} - {{- if or .Values.enablePrometheusServer .Values.enableProbesServer }} - ports: - {{- if .Values.enableProbesServer }} - - name: liveness-probe - protocol: TCP - containerPort: {{ .Values.probes.httpGet.port }} - hostPort: {{ .Values.probes.httpGet.port }} - {{- end }} - {{- if .Values.enablePrometheusServer }} - - name: http-metrics - protocol: TCP - containerPort: {{ .Values.prometheusServerPort }} - hostPort: {{ .Values.prometheusServerPort }} - {{- end }} - {{- end }} - {{- if .Values.enableProbesServer }} - livenessProbe: - {{- toYaml .Values.probes | nindent 12 }} - {{- end }} - {{- with .Values.resources }} - resources: - {{- toYaml . | nindent 12 }} - {{- end }} - {{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }} - volumeMounts: - - name: webhook-template - mountPath: /config/ - {{- end }} - {{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }} - volumes: - - name: webhook-template - configMap: - name: {{ .Values.webhookTemplateConfigMapName }} - {{- end }} - nodeSelector: - kubernetes.io/os: windows - {{- with default .Values.daemonsetNodeSelector (default .Values.nodeSelector .Values.windowsNodeSelector) }} - {{- toYaml . | nindent 8 }} - {{- end }} - {{- if or .Values.daemonsetAffinity (or .Values.affinity .Values.windowsAffinity) }} - affinity: - {{- toYaml (default .Values.daemonsetAffinity (default .Values.affinity .Values.windowsAffinity )) | nindent 8 }} - {{- end }} - {{- if or .Values.daemonsetTolerations (or .Values.tolerations .Values.windowsTolerations) }} - tolerations: - {{- toYaml (default .Values.daemonsetTolerations (default .Values.tolerations .Values.windowsTolerations )) | nindent 8 }} - {{- end }} -{{- end -}} diff --git a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/deployment.yaml b/charts/kubezero-addons/charts/aws-node-termination-handler/templates/deployment.yaml deleted file mode 100644 index d85b08a1..00000000 --- a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/deployment.yaml +++ /dev/null @@ -1,227 +0,0 @@ -{{- if .Values.enableSqsTerminationDraining }} -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "aws-node-termination-handler.fullname" . }} - namespace: {{ .Release.Namespace }} - labels: - {{- include "aws-node-termination-handler.labelsDeployment" . | nindent 4 }} -spec: - replicas: {{ .Values.replicas }} - {{- with .Values.strategy }} - strategy: - {{- toYaml . | nindent 4 }} - {{- end }} - selector: - matchLabels: - {{- include "aws-node-termination-handler.selectorLabelsDeployment" . | nindent 6 }} - template: - metadata: - labels: - {{- include "aws-node-termination-handler.selectorLabelsDeployment" . | nindent 8 }} - k8s-app: aws-node-termination-handler - {{- with .Values.podLabels }} - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.podAnnotations }} - annotations: - {{- toYaml . | nindent 8 }} - {{- end }} - spec: - {{- with .Values.image.pullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - serviceAccountName: {{ include "aws-node-termination-handler.serviceAccountName" . }} - {{- with .Values.podSecurityContext }} - securityContext: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.priorityClassName }} - priorityClassName: {{ . }} - {{- end }} - {{- with .Values.terminationGracePeriodSeconds }} - terminationGracePeriodSeconds: {{ . }} - {{- end }} - {{- with .Values.dnsConfig }} - dnsConfig: - {{- toYaml . | nindent 8 }} - {{- end }} - containers: - - name: aws-node-termination-handler - {{- with .Values.securityContext }} - securityContext: - {{- toYaml . | nindent 12 }} - {{- end }} - image: {{ include "aws-node-termination-handler.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - env: - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: spec.nodeName - - name: POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: ENABLE_PROBES_SERVER - value: "true" - - name: PROBES_SERVER_PORT - value: {{ .Values.probes.httpGet.port | quote }} - - name: PROBES_SERVER_ENDPOINT - value: {{ .Values.probes.httpGet.path | quote }} - - name: LOG_LEVEL - value: {{ .Values.logLevel | quote }} - - name: JSON_LOGGING - value: {{ .Values.jsonLogging | quote }} - - name: LOG_FORMAT_VERSION - value: {{ .Values.logFormatVersion | quote }} - - name: ENABLE_PROMETHEUS_SERVER - value: {{ .Values.enablePrometheusServer | quote }} - - name: PROMETHEUS_SERVER_PORT - value: {{ .Values.prometheusServerPort | quote }} - # [DEPRECATED] Use CHECK_TAG_BEFORE_DRAINING instead - - name: CHECK_ASG_TAG_BEFORE_DRAINING - value: {{ .Values.checkASGTagBeforeDraining | quote }} - - name: CHECK_TAG_BEFORE_DRAINING - value: {{ .Values.checkTagBeforeDraining | quote }} - # [DEPRECATED] Use MANAGED_TAG instead - - name: MANAGED_ASG_TAG - value: {{ .Values.managedAsgTag | quote }} - - name: MANAGED_TAG - value: {{ .Values.managedTag | quote }} - - name: USE_PROVIDER_ID - value: {{ .Values.useProviderId | quote }} - - name: DRY_RUN - value: {{ .Values.dryRun | quote }} - - name: CORDON_ONLY - value: {{ .Values.cordonOnly | quote }} - - name: TAINT_NODE - value: {{ .Values.taintNode | quote }} - - name: EXCLUDE_FROM_LOAD_BALANCERS - value: {{ .Values.excludeFromLoadBalancers | quote }} - - name: DELETE_LOCAL_DATA - value: {{ .Values.deleteLocalData | quote }} - - name: IGNORE_DAEMON_SETS - value: {{ .Values.ignoreDaemonSets | quote }} - - name: POD_TERMINATION_GRACE_PERIOD - value: {{ .Values.podTerminationGracePeriod | quote }} - - name: NODE_TERMINATION_GRACE_PERIOD - value: {{ .Values.nodeTerminationGracePeriod | quote }} - - name: EMIT_KUBERNETES_EVENTS - value: {{ .Values.emitKubernetesEvents | quote }} - - name: COMPLETE_LIFECYCLE_ACTION_DELAY_SECONDS - value: {{ .Values.completeLifecycleActionDelaySeconds | quote }} - {{- with .Values.kubernetesEventsExtraAnnotations }} - - name: KUBERNETES_EVENTS_EXTRA_ANNOTATIONS - value: {{ . | quote }} - {{- end }} - {{- if or .Values.webhookURL .Values.webhookURLSecretName }} - - name: WEBHOOK_URL - {{- if .Values.webhookURLSecretName }} - valueFrom: - secretKeyRef: - name: {{ .Values.webhookURLSecretName }} - key: webhookurl - {{- else }} - value: {{ .Values.webhookURL | quote }} - {{- end }} - {{- end }} - {{- with .Values.webhookHeaders }} - - name: WEBHOOK_HEADERS - value: {{ . | quote }} - {{- end }} - {{- with .Values.webhookProxy }} - - name: WEBHOOK_PROXY - value: {{ . | quote }} - {{- end }} - {{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }} - - name: WEBHOOK_TEMPLATE_FILE - value: {{ print "/config/" .Values.webhookTemplateConfigMapKey | quote }} - {{- else if .Values.webhookTemplate }} - - name: WEBHOOK_TEMPLATE - value: {{ .Values.webhookTemplate | quote }} - {{- end }} - - name: ENABLE_SQS_TERMINATION_DRAINING - value: "true" - {{- with .Values.awsRegion }} - - name: AWS_REGION - value: {{ . | quote }} - {{- end }} - {{- with .Values.awsEndpoint }} - - name: AWS_ENDPOINT - value: {{ . | quote }} - {{- end }} - {{- if and .Values.awsAccessKeyID .Values.awsSecretAccessKey }} - - name: AWS_ACCESS_KEY_ID - value: {{ .Values.awsAccessKeyID | quote }} - - name: AWS_SECRET_ACCESS_KEY - value: {{ .Values.awsSecretAccessKey | quote }} - {{- end }} - - name: QUEUE_URL - value: {{ .Values.queueURL | quote }} - - name: DELETE_SQS_MSG_IF_NODE_NOT_FOUND - value: {{ .Values.deleteSqsMsgIfNodeNotFound | quote }} - - name: WORKERS - value: {{ .Values.workers | quote }} - {{- with .Values.extraEnv }} - {{- toYaml . | nindent 12 }} - {{- end }} - ports: - - name: liveness-probe - protocol: TCP - containerPort: {{ .Values.probes.httpGet.port }} - {{- if .Values.enablePrometheusServer }} - - name: http-metrics - protocol: TCP - containerPort: {{ .Values.prometheusServerPort }} - {{- end }} - livenessProbe: - {{- toYaml .Values.probes | nindent 12 }} - {{- with .Values.resources }} - resources: - {{- toYaml . | nindent 12 }} - {{- end }} - volumeMounts: - - name: aws-token - mountPath: "/var/run/secrets/sts.amazonaws.com/serviceaccount/" - readOnly: true - {{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }} - - name: webhook-template - mountPath: /config/ - {{- end }} - volumes: - - name: aws-token - projected: - sources: - - serviceAccountToken: - path: token - expirationSeconds: 86400 - audience: "sts.amazonaws.com" - {{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }} - - name: webhook-template - configMap: - name: {{ .Values.webhookTemplateConfigMapName }} - {{- end }} - nodeSelector: - kubernetes.io/os: linux - {{- with .Values.nodeSelector }} - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.topologySpreadConstraints }} - topologySpreadConstraints: - {{- toYaml . | nindent 8 }} - {{- end }} -{{- end }} diff --git a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/pdb.yaml b/charts/kubezero-addons/charts/aws-node-termination-handler/templates/pdb.yaml deleted file mode 100644 index 7f43ab29..00000000 --- a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/pdb.yaml +++ /dev/null @@ -1,14 +0,0 @@ -{{- if and .Values.enableSqsTerminationDraining (and .Values.podDisruptionBudget (gt (int .Values.replicas) 1)) }} -apiVersion: {{ include "aws-node-termination-handler.pdb.apiVersion" . }} -kind: PodDisruptionBudget -metadata: - name: {{ include "aws-node-termination-handler.fullname" . }} - namespace: {{ .Release.Namespace }} - labels: - {{- include "aws-node-termination-handler.labels" . | nindent 4 }} -spec: - selector: - matchLabels: - {{- include "aws-node-termination-handler.selectorLabelsDeployment" . | nindent 6 }} - {{- toYaml .Values.podDisruptionBudget | nindent 2 }} -{{- end }} diff --git a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/podmonitor.yaml b/charts/kubezero-addons/charts/aws-node-termination-handler/templates/podmonitor.yaml deleted file mode 100644 index e214d12c..00000000 --- a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/podmonitor.yaml +++ /dev/null @@ -1,29 +0,0 @@ -{{- if and (not .Values.enableSqsTerminationDraining) (and .Values.enablePrometheusServer .Values.podMonitor.create) -}} -apiVersion: monitoring.coreos.com/v1 -kind: PodMonitor -metadata: - name: {{ template "aws-node-termination-handler.fullname" . }} - namespace: {{ default .Release.Namespace .Values.podMonitor.namespace }} - labels: - {{- include "aws-node-termination-handler.labels" . | nindent 4 }} - {{- with .Values.podMonitor.labels }} - {{- toYaml . | nindent 4 }} - {{- end }} -spec: - jobLabel: app.kubernetes.io/name - namespaceSelector: - matchNames: - - {{ .Release.Namespace }} - podMetricsEndpoints: - - port: http-metrics - path: /metrics - {{- with .Values.podMonitor.interval }} - interval: {{ . }} - {{- end }} - {{- with .Values.podMonitor.sampleLimit }} - sampleLimit: {{ . }} - {{- end }} - selector: - matchLabels: - {{- include "aws-node-termination-handler.selectorLabelsDaemonset" . | nindent 6 }} -{{- end -}} diff --git a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/psp.yaml b/charts/kubezero-addons/charts/aws-node-termination-handler/templates/psp.yaml deleted file mode 100644 index c84d69f3..00000000 --- a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/psp.yaml +++ /dev/null @@ -1,70 +0,0 @@ -{{- if and (.Values.rbac.pspEnabled) (semverCompare "<1.25-0" .Capabilities.KubeVersion.GitVersion) }} -apiVersion: policy/v1beta1 -kind: PodSecurityPolicy -metadata: - name: {{ template "aws-node-termination-handler.fullname" . }} - labels: - {{- include "aws-node-termination-handler.labels" . | nindent 4 }} - annotations: - seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*' -spec: - privileged: false - hostIPC: false - hostNetwork: {{ .Values.useHostNetwork }} - hostPID: false -{{- if and (and (not .Values.enableSqsTerminationDraining) .Values.useHostNetwork ) (or .Values.enablePrometheusServer .Values.enableProbesServer) }} - hostPorts: -{{- if .Values.enablePrometheusServer }} - - min: {{ .Values.prometheusServerPort }} - max: {{ .Values.prometheusServerPort }} -{{- end }} -{{- if .Values.enableProbesServer }} - - min: {{ .Values.probes.httpGet.port }} - max: {{ .Values.probes.httpGet.port }} -{{- end }} -{{- end }} - readOnlyRootFilesystem: false - allowPrivilegeEscalation: false - allowedCapabilities: - - '*' - fsGroup: - rule: RunAsAny - runAsUser: - rule: RunAsAny - seLinux: - rule: RunAsAny - supplementalGroups: - rule: RunAsAny - volumes: - - '*' ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: {{ template "aws-node-termination-handler.fullname" . }}-psp - namespace: {{ .Release.Namespace }} - labels: - {{- include "aws-node-termination-handler.labels" . | nindent 4 }} -rules: - - apiGroups: ['policy'] - resources: ['podsecuritypolicies'] - verbs: ['use'] - resourceNames: - - {{ template "aws-node-termination-handler.fullname" . }} ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: {{ template "aws-node-termination-handler.fullname" . }}-psp - namespace: {{ .Release.Namespace }} - labels: - {{- include "aws-node-termination-handler.labels" . | nindent 4 }} -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: {{ template "aws-node-termination-handler.fullname" . }}-psp -subjects: - - kind: ServiceAccount - name: {{ template "aws-node-termination-handler.serviceAccountName" . }} - namespace: {{ .Release.Namespace }} -{{- end }} diff --git a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/service.yaml b/charts/kubezero-addons/charts/aws-node-termination-handler/templates/service.yaml deleted file mode 100644 index 19f7b067..00000000 --- a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/service.yaml +++ /dev/null @@ -1,18 +0,0 @@ -{{- if and .Values.enableSqsTerminationDraining .Values.enablePrometheusServer -}} -apiVersion: v1 -kind: Service -metadata: - name: {{ include "aws-node-termination-handler.fullname" . }} - namespace: {{ .Release.Namespace }} - labels: - {{- include "aws-node-termination-handler.labelsDeployment" . | nindent 4 }} -spec: - type: ClusterIP - selector: - {{- include "aws-node-termination-handler.selectorLabelsDeployment" . | nindent 4 }} - ports: - - name: http-metrics - port: {{ .Values.prometheusServerPort }} - targetPort: http-metrics - protocol: TCP -{{- end -}} diff --git a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/serviceaccount.yaml b/charts/kubezero-addons/charts/aws-node-termination-handler/templates/serviceaccount.yaml deleted file mode 100644 index 08f3dc5f..00000000 --- a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/serviceaccount.yaml +++ /dev/null @@ -1,13 +0,0 @@ -{{- if .Values.serviceAccount.create -}} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ template "aws-node-termination-handler.serviceAccountName" . }} - namespace: {{ .Release.Namespace }} - labels: - {{- include "aws-node-termination-handler.labels" . | nindent 4 }} - {{- with .Values.serviceAccount.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -{{- end -}} diff --git a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/servicemonitor.yaml b/charts/kubezero-addons/charts/aws-node-termination-handler/templates/servicemonitor.yaml deleted file mode 100644 index d5fe1479..00000000 --- a/charts/kubezero-addons/charts/aws-node-termination-handler/templates/servicemonitor.yaml +++ /dev/null @@ -1,29 +0,0 @@ -{{- if and .Values.enableSqsTerminationDraining (and .Values.enablePrometheusServer .Values.serviceMonitor.create) -}} -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: {{ include "aws-node-termination-handler.fullname" . }} - namespace: {{ default .Release.Namespace .Values.serviceMonitor.namespace }} - labels: - {{- include "aws-node-termination-handler.labels" . | nindent 4 }} - {{- with .Values.serviceMonitor.labels }} - {{- toYaml . | nindent 4 }} - {{- end }} -spec: - jobLabel: app.kubernetes.io/name - namespaceSelector: - matchNames: - - {{ .Release.Namespace }} - endpoints: - - port: http-metrics - path: /metrics - {{- with .Values.serviceMonitor.interval }} - interval: {{ . }} - {{- end }} - {{- with .Values.serviceMonitor.sampleLimit }} - sampleLimit: {{ . }} - {{- end }} - selector: - matchLabels: - {{- include "aws-node-termination-handler.selectorLabelsDeployment" . | nindent 6 }} -{{- end -}} diff --git a/charts/kubezero-addons/charts/aws-node-termination-handler/values.yaml b/charts/kubezero-addons/charts/aws-node-termination-handler/values.yaml deleted file mode 100644 index 2d6c84f2..00000000 --- a/charts/kubezero-addons/charts/aws-node-termination-handler/values.yaml +++ /dev/null @@ -1,300 +0,0 @@ -# Default values for aws-node-termination-handler. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -image: - repository: public.ecr.aws/aws-ec2/aws-node-termination-handler - # Overrides the image tag whose default is {{ printf "v%s" .Chart.AppVersion }} - tag: "" - pullPolicy: IfNotPresent - pullSecrets: [] - -nameOverride: "" -fullnameOverride: "" - -serviceAccount: - # Specifies whether a service account should be created - create: true - # The name of the service account to use. If namenot set and create is true, a name is generated using fullname template - name: - annotations: {} - # eks.amazonaws.com/role-arn: arn:aws:iam::AWS_ACCOUNT_ID:role/IAM_ROLE_NAME - -rbac: - # Specifies whether RBAC resources should be created - create: true - # Specifies if PodSecurityPolicy resources should be created. PodSecurityPolicy will not be created when Kubernetes version is 1.25 or later. - pspEnabled: true - -customLabels: {} - -podLabels: {} - -podAnnotations: {} - -podSecurityContext: - fsGroup: 1000 - -securityContext: - readOnlyRootFilesystem: true - runAsNonRoot: true - allowPrivilegeEscalation: false - runAsUser: 1000 - runAsGroup: 1000 - -terminationGracePeriodSeconds: - -resources: {} - -nodeSelector: {} - -affinity: {} - -tolerations: [] - -topologySpreadConstraints: [] - -# Extra environment variables -extraEnv: [] - -# Liveness probe settings -probes: - httpGet: - path: /healthz - port: 8080 - initialDelaySeconds: 5 - periodSeconds: 5 - -# Set the log level -logLevel: info - -# Set the log format version -logFormatVersion: 1 - -# Log messages in JSON format -jsonLogging: false - -enablePrometheusServer: false -prometheusServerPort: 9092 - -# dryRun tells node-termination-handler to only log calls to kubernetes control plane -dryRun: false - -# Cordon but do not drain nodes upon spot interruption termination notice. -cordonOnly: false - -# Taint node upon spot interruption termination notice. -taintNode: false - -# Exclude node from load balancer before cordoning via the ServiceNodeExclusion feature gate. -excludeFromLoadBalancers: false - -# deleteLocalData tells kubectl to continue even if there are pods using -# emptyDir (local data that will be deleted when the node is drained). -deleteLocalData: true - -# ignoreDaemonSets causes kubectl to skip Daemon Set managed pods. -ignoreDaemonSets: true - -# podTerminationGracePeriod is time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. -podTerminationGracePeriod: -1 - -# nodeTerminationGracePeriod specifies the period of time in seconds given to each NODE to terminate gracefully. Node draining will be scheduled based on this value to optimize the amount of compute time, but still safely drain the node before an event. -nodeTerminationGracePeriod: 120 - -# emitKubernetesEvents If true, Kubernetes events will be emitted when interruption events are received and when actions are taken on Kubernetes nodes. In IMDS Processor mode a default set of annotations with all the node metadata gathered from IMDS will be attached to each event -emitKubernetesEvents: false - -# completeLifecycleActionDelaySeconds will pause for the configured duration after draining the node before completing the EC2 Autoscaling lifecycle action. This may be helpful if Pods on the node have Persistent Volume Claims. -completeLifecycleActionDelaySeconds: -1 - -# kubernetesEventsExtraAnnotations A comma-separated list of key=value extra annotations to attach to all emitted Kubernetes events -# Example: "first=annotation,sample.annotation/number=two" -kubernetesEventsExtraAnnotations: "" - -# webhookURL if specified, posts event data to URL upon instance interruption action. -webhookURL: "" - -# Webhook URL will be fetched from the secret store using the given name. -webhookURLSecretName: "" - -# webhookHeaders if specified, replaces the default webhook headers. -webhookHeaders: "" - -# webhookProxy if specified, uses this HTTP(S) proxy configuration. -webhookProxy: "" - -# webhookTemplate if specified, replaces the default webhook message template. -webhookTemplate: "" - -# webhook template file will be fetched from given config map name -# if specified, replaces the default webhook message with the content of the template file -webhookTemplateConfigMapName: "" - -# template file name stored in configmap -webhookTemplateConfigMapKey: "" - -# enableSqsTerminationDraining If true, this turns on queue-processor mode which drains nodes when an SQS termination event is received -enableSqsTerminationDraining: false - -# --------------------------------------------------------------------------------------------------------------------- -# Queue Processor Mode -# --------------------------------------------------------------------------------------------------------------------- - -# The number of replicas in the NTH deployment when using queue-processor mode (NOTE: increasing this may cause duplicate webhooks since NTH pods are stateless) -replicas: 1 - -# Specify the update strategy for the deployment -strategy: {} - -# podDisruptionBudget specifies the disruption budget for the controller pods. -# Disruption budget will be configured only when the replicaCount is greater than 1 -podDisruptionBudget: {} -# maxUnavailable: 1 - -serviceMonitor: - # Specifies whether ServiceMonitor should be created - # this needs enableSqsTerminationDraining: true - # and enablePrometheusServer: true - create: false - # Specifies whether the ServiceMonitor should be created in a different namespace than - # the Helm release - namespace: - # Additional labels to add to the metadata - labels: {} - # The Prometheus scrape interval - interval: 30s - # The number of scraped samples that will be accepted - sampleLimit: 5000 - -priorityClassName: system-cluster-critical - -# If specified, use the AWS region for AWS API calls -awsRegion: "" - -# Listens for messages on the specified SQS queue URL -queueURL: "" - -# The maximum amount of parallel event processors to handle concurrent events -workers: 10 - -# [DEPRECATED] Use checkTagBeforeDraining instead -checkASGTagBeforeDraining: true - -# If true, check that the instance is tagged with "aws-node-termination-handler/managed" as the key before draining the node -checkTagBeforeDraining: true - -# [DEPRECATED] Use managedTag instead -managedAsgTag: "aws-node-termination-handler/managed" - -# The tag to ensure is on a node if checkTagBeforeDraining is true -managedTag: "aws-node-termination-handler/managed" - -# If true, fetch node name through Kubernetes node spec ProviderID instead of AWS event PrivateDnsHostname. -useProviderId: false - -# --------------------------------------------------------------------------------------------------------------------- -# IMDS Mode -# --------------------------------------------------------------------------------------------------------------------- - -# Create node OS specific daemonset(s). (e.g. "linux", "windows", "linux windows") -targetNodeOs: linux - -linuxPodLabels: {} -windowsPodLabels: {} - -linuxPodAnnotations: {} -windowsPodAnnotations: {} - -# K8s DaemonSet update strategy. -updateStrategy: - type: RollingUpdate - rollingUpdate: - maxUnavailable: 25% - -daemonsetPriorityClassName: system-node-critical - -podMonitor: - # Specifies whether PodMonitor should be created - # this needs enableSqsTerminationDraining: false - # and enablePrometheusServer: true - create: false - # Specifies whether the PodMonitor should be created in a different namespace than - # the Helm release - namespace: - # Additional labels to add to the metadata - labels: {} - # The Prometheus scrape interval - interval: 30s - # The number of scraped samples that will be accepted - sampleLimit: 5000 - -# Determines if NTH uses host networking for Linux when running the DaemonSet (only IMDS mode; queue-processor never runs with host networking) -# If you have disabled IMDSv1 and are relying on IMDSv2, you'll need to increase the IP hop count to 2 before switching this to false -# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html -useHostNetwork: true - -# Daemonset DNS policy -dnsPolicy: "" -dnsConfig: {} -linuxDnsPolicy: ClusterFirstWithHostNet -windowsDnsPolicy: ClusterFirst - -daemonsetNodeSelector: {} -linuxNodeSelector: {} -windowsNodeSelector: {} - -daemonsetAffinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "eks.amazonaws.com/compute-type" - operator: NotIn - values: - - fargate -linuxAffinity: {} -windowsAffinity: {} - -daemonsetTolerations: - - operator: Exists -linuxTolerations: [] -windowsTolerations: [] - -# If the probes server is running. -enableProbesServer: false - -# Total number of times to try making the metadata request before failing. -metadataTries: 3 - -# enableSpotInterruptionDraining If false, do not drain nodes when the spot interruption termination notice is received. Only used in IMDS mode. -enableSpotInterruptionDraining: true - -# enableScheduledEventDraining If false, do not drain nodes before the maintenance window starts for an EC2 instance scheduled event. Only used in IMDS mode. -enableScheduledEventDraining: true - -# enableRebalanceMonitoring If true, cordon nodes when the rebalance recommendation notice is received. Only used in IMDS mode. -enableRebalanceMonitoring: false - -# enableRebalanceDraining If true, drain nodes when the rebalance recommendation notice is received. Only used in IMDS mode. -enableRebalanceDraining: false - -# deleteSqsMsgIfNodeNotFound If true, delete the SQS Message from the SQS Queue if the targeted node(s) are not found. Only used in Queue Processor mode. -deleteSqsMsgIfNodeNotFound: false - -# --------------------------------------------------------------------------------------------------------------------- -# Testing -# --------------------------------------------------------------------------------------------------------------------- - -# (TESTING USE): If specified, use the provided AWS endpoint to make API calls. -awsEndpoint: "" - -# (TESTING USE): These should only be used for testing w/ localstack! -awsAccessKeyID: -awsSecretAccessKey: - -# (TESTING USE): Override the default metadata URL (default: http://169.254.169.254:80) -instanceMetadataURL: "" - -# (TESTING USE): Mount path for uptime file -procUptimeFile: /proc/uptime diff --git a/charts/kubezero-addons/templates/cluster-backup/cronjob.yaml b/charts/kubezero-addons/templates/cluster-backup/cronjob.yaml deleted file mode 100644 index 9a329054..00000000 --- a/charts/kubezero-addons/templates/cluster-backup/cronjob.yaml +++ /dev/null @@ -1,63 +0,0 @@ -{{- if .Values.clusterBackup.enabled }} -apiVersion: batch/v1 -kind: CronJob -metadata: - name: kubezero-backup - namespace: kube-system -spec: - schedule: "0 * * * *" - concurrencyPolicy: "Replace" - jobTemplate: - spec: - backoffLimit: 1 - activeDeadlineSeconds: 300 - ttlSecondsAfterFinished: 3600 - template: - spec: - containers: - - name: kubezero-admin - image: "{{ .Values.clusterBackup.image.name }}:{{ default .Chart.AppVersion .Values.clusterBackup.image.tag }}" - imagePullPolicy: Always - command: ["kubezero.sh"] - args: - - backup - volumeMounts: - - name: host - mountPath: /host - #readOnly: true - - name: workdir - mountPath: /tmp - env: - - name: DEBUG - value: "" - - name: RESTIC_REPOSITORY - valueFrom: - secretKeyRef: - name: kubezero-backup-restic - key: repository - - name: RESTIC_PASSWORD - valueFrom: - secretKeyRef: - name: kubezero-backup-restic - key: password - {{- with .Values.clusterBackup.extraEnv }} - {{- toYaml . | nindent 12 }} - {{- end }} - #securityContext: - # readOnlyRootFilesystem: true - hostNetwork: true - volumes: - - name: host - hostPath: - path: / - type: Directory - - name: workdir - emptyDir: {} - nodeSelector: - node-role.kubernetes.io/control-plane: "" - priorityClassName: system-cluster-critical - tolerations: - - key: node-role.kubernetes.io/control-plane - effect: NoSchedule - restartPolicy: Never -{{- end }} diff --git a/charts/kubezero-addons/templates/cluster-backup/secret.yaml b/charts/kubezero-addons/templates/cluster-backup/secret.yaml deleted file mode 100644 index b0b020e3..00000000 --- a/charts/kubezero-addons/templates/cluster-backup/secret.yaml +++ /dev/null @@ -1,11 +0,0 @@ -{{- if and .Values.clusterBackup.enabled .Values.clusterBackup.repository .Values.clusterBackup.password }} -apiVersion: v1 -kind: Secret -metadata: - name: kubezero-backup-restic - namespace: kube-system -type: Opaque -data: - repository: {{ default "" .Values.clusterBackup.repository | b64enc }} - password: {{ default "" .Values.clusterBackup.password | b64enc }} -{{- end }} diff --git a/charts/kubezero-addons/templates/device-plugins/aws-neuron-ds.yaml b/charts/kubezero-addons/templates/device-plugins/aws-neuron-ds.yaml deleted file mode 100644 index b36fafc8..00000000 --- a/charts/kubezero-addons/templates/device-plugins/aws-neuron-ds.yaml +++ /dev/null @@ -1,80 +0,0 @@ -{{- if .Values.awsNeuron.enabled }} -apiVersion: apps/v1 -kind: DaemonSet -metadata: - name: neuron-device-plugin - namespace: kube-system -spec: - selector: - matchLabels: - name: neuron-device-plugin-ds - updateStrategy: - type: RollingUpdate - template: - metadata: - labels: - name: neuron-device-plugin-ds - spec: - serviceAccount: neuron-device-plugin - tolerations: - - key: CriticalAddonsOnly - operator: Exists - - key: aws.amazon.com/neuron - operator: Exists - effect: NoSchedule - - key: kubezero-workergroup - effect: NoSchedule - operator: Exists - # Mark this pod as a critical add-on; when enabled, the critical add-on - # scheduler reserves resources for critical add-on pods so that they can - # be rescheduled after a failure. - # See https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/ - priorityClassName: "system-node-critical" - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "node.kubernetes.io/instance-type" - operator: In - values: - - inf1.xlarge - - inf1.2xlarge - - inf1.6xlarge - - inf1.24xlarge - - inf2.xlarge - - inf2.4xlarge - - inf2.8xlarge - - inf2.24xlarge - - inf2.48xlarge - - trn1.2xlarge - - trn1.32xlarge - - trn1n.32xlarge - containers: - - image: "{{ .Values.awsNeuron.image.name }}:{{ .Values.awsNeuron.image.tag }}" - imagePullPolicy: IfNotPresent - name: neuron-device-plugin - env: - - name: KUBECONFIG - value: /etc/kubernetes/kubelet.conf - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: spec.nodeName - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: ["ALL"] - volumeMounts: - - name: device-plugin - mountPath: /var/lib/kubelet/device-plugins - - name: infa-map - mountPath: /run - volumes: - - name: device-plugin - hostPath: - path: /var/lib/kubelet/device-plugins - - name: infa-map - hostPath: - path: /run -{{- end }} diff --git a/charts/kubezero-addons/templates/device-plugins/aws-neuron-rbac.yaml b/charts/kubezero-addons/templates/device-plugins/aws-neuron-rbac.yaml deleted file mode 100644 index 193a82db..00000000 --- a/charts/kubezero-addons/templates/device-plugins/aws-neuron-rbac.yaml +++ /dev/null @@ -1,59 +0,0 @@ -{{- if .Values.awsNeuron.enabled }} -kind: ClusterRole -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: neuron-device-plugin -rules: -- apiGroups: - - "" - resources: - - nodes - verbs: - - get - - list - - watch -- apiGroups: - - "" - resources: - - events - verbs: - - create - - patch -- apiGroups: - - "" - resources: - - pods - verbs: - - update - - patch - - get - - list - - watch -- apiGroups: - - "" - resources: - - nodes/status - verbs: - - patch - - update ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - name: neuron-device-plugin - namespace: kube-system ---- -kind: ClusterRoleBinding -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: neuron-device-plugin - namespace: kube-system -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: neuron-device-plugin -subjects: -- kind: ServiceAccount - name: neuron-device-plugin - namespace: kube-system -{{- end }} diff --git a/charts/kubezero-addons/templates/device-plugins/fuse-device-plugin.yaml b/charts/kubezero-addons/templates/device-plugins/fuse-device-plugin.yaml deleted file mode 100644 index 89b62eb4..00000000 --- a/charts/kubezero-addons/templates/device-plugins/fuse-device-plugin.yaml +++ /dev/null @@ -1,38 +0,0 @@ -{{- if .Values.fuseDevicePlugin.enabled }} -apiVersion: apps/v1 -kind: DaemonSet -metadata: - name: fuse-device-plugin - namespace: kube-system -spec: - selector: - matchLabels: - name: fuse-device-plugin - template: - metadata: - labels: - name: fuse-device-plugin - spec: - priorityClassName: system-node-critical - tolerations: - - key: CriticalAddonsOnly - operator: Exists - - key: kubezero-workergroup - effect: NoSchedule - operator: Exists - containers: - - image: "{{ .Values.fuseDevicePlugin.image.name }}:{{ .Values.fuseDevicePlugin.image.tag }}" - # imagePullPolicy: Always - name: fuse-device-plugin - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: ["ALL"] - volumeMounts: - - name: device-plugin - mountPath: /var/lib/kubelet/device-plugins - volumes: - - name: device-plugin - hostPath: - path: /var/lib/kubelet/device-plugins -{{- end }} diff --git a/charts/kubezero-addons/templates/forseti/deployment.yaml b/charts/kubezero-addons/templates/forseti/deployment.yaml deleted file mode 100644 index 0b6bd1dc..00000000 --- a/charts/kubezero-addons/templates/forseti/deployment.yaml +++ /dev/null @@ -1,84 +0,0 @@ -{{- if .Values.forseti.enabled }} -apiVersion: apps/v1 -kind: Deployment -metadata: - name: kubezero-forseti - namespace: kube-system - labels: - app: kubezero-forseti -spec: - replicas: 1 - selector: - matchLabels: - app: kubezero-forseti - template: - metadata: - labels: - app: kubezero-forseti - spec: - containers: - - name: kubezero-forseti - image: "{{ .Values.forseti.image.name }}:{{ .Values.forseti.image.tag }}" - imagePullPolicy: Always - args: - - --health-probe-bind-address=:8081 - - --metrics-bind-address=:8080 - #- --zap-log-level=2 - #- --dry-run - #- --leader-elect - command: - - /forseti - env: - - name: AWS_REGION - value: "{{ .Values.forseti.aws.region }}" - - name: AWS_ROLE_ARN - value: "{{ .Values.forseti.aws.iamRoleArn }}" - - name: AWS_STS_REGIONAL_ENDPOINTS - value: regional - - name: AWS_WEB_IDENTITY_TOKEN_FILE - value: /var/run/secrets/sts.amazonaws.com/serviceaccount/token - livenessProbe: - httpGet: - path: /healthz - port: 8081 - initialDelaySeconds: 15 - periodSeconds: 20 - readinessProbe: - httpGet: - path: /readyz - port: 8081 - initialDelaySeconds: 5 - periodSeconds: 10 - resources: - limits: - cpu: 500m - memory: 128Mi - requests: - cpu: 10m - memory: 64Mi - securityContext: - allowPrivilegeEscalation: false - volumeMounts: - - mountPath: /var/run/secrets/sts.amazonaws.com/serviceaccount/ - name: aws-token - readOnly: true - securityContext: - runAsNonRoot: true - serviceAccountName: kubezero-forseti - terminationGracePeriodSeconds: 10 - nodeSelector: - node-role.kubernetes.io/control-plane: "" - tolerations: - - key: node-role.kubernetes.io/control-plane - effect: NoSchedule - priorityClassName: system-cluster-critical - volumes: - - name: aws-token - projected: - defaultMode: 420 - sources: - - serviceAccountToken: - audience: sts.amazonaws.com - expirationSeconds: 86400 - path: token -{{- end }} diff --git a/charts/kubezero-addons/templates/forseti/rbac.yaml b/charts/kubezero-addons/templates/forseti/rbac.yaml deleted file mode 100644 index 7eb3f242..00000000 --- a/charts/kubezero-addons/templates/forseti/rbac.yaml +++ /dev/null @@ -1,104 +0,0 @@ -{{- if .Values.forseti.enabled }} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: kubezero-forseti - namespace: kube-system ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: kubezero-forseti-manager -rules: -- apiGroups: - - "" - resources: - - nodes - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - "" - resources: - - nodes/finalizers - verbs: - - update -- apiGroups: - - "" - resources: - - nodes/status - verbs: - - get - - patch - - update ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: forseti-leader-election - namespace: kube-system -rules: -- apiGroups: - - "" - resources: - - configmaps - verbs: - - get - - list - - watch - - create - - update - - patch - - delete -- apiGroups: - - coordination.k8s.io - resources: - - leases - verbs: - - get - - list - - watch - - create - - update - - patch - - delete -- apiGroups: - - "" - resources: - - events - verbs: - - create - - patch ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: kubezero-forseti-manager -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: kubezero-forseti-manager -subjects: - - kind: ServiceAccount - name: kubezero-forseti - namespace: kube-system ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: forseti-leader-election - namespace: kube-system -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: forseti-leader-election -subjects: -- kind: ServiceAccount - name: kubezero-forseti - namespace: kube-system -{{- end }} diff --git a/charts/kubezero-addons/templates/forseti/service.yaml b/charts/kubezero-addons/templates/forseti/service.yaml deleted file mode 100644 index 511204ad..00000000 --- a/charts/kubezero-addons/templates/forseti/service.yaml +++ /dev/null @@ -1,16 +0,0 @@ -{{- if .Values.forseti.enabled }} -apiVersion: v1 -kind: Service -metadata: - labels: - app: kubezero-forseti - name: forseti-metrics-service - namespace: kube-system -spec: - ports: - - name: http - port: 8080 - protocol: TCP - selector: - app: kubezero-forseti -{{- end }} diff --git a/charts/kubezero-addons/update.sh b/charts/kubezero-addons/update.sh deleted file mode 100755 index 55edb204..00000000 --- a/charts/kubezero-addons/update.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -set -ex - -. ../../scripts/lib-update.sh - -login_ecr_public -update_helm - -patch_chart aws-node-termination-handler -patch_chart aws-eks-asg-rolling-update-handler - -update_docs diff --git a/charts/kubezero-addons/values.yaml b/charts/kubezero-addons/values.yaml deleted file mode 100644 index 4e538a17..00000000 --- a/charts/kubezero-addons/values.yaml +++ /dev/null @@ -1,272 +0,0 @@ -clusterBackup: - enabled: false - - image: - name: public.ecr.aws/zero-downtime/kubezero-admin - # tag: v1.22.8 - - # -- s3:https://s3.amazonaws.com/${CFN[ConfigBucket]}/k8s/${CLUSTERNAME}/clusterBackup - repository: "" - # -- /etc/cloudbender/clusterBackup.passphrase - password: "" - - extraEnv: [] - -forseti: - enabled: false - - image: - name: public.ecr.aws/zero-downtime/forseti - tag: v0.1.2 - - aws: - region: "" - # -- "arn:aws:iam::${AWS::AccountId}:role/${AWS::Region}.${ClusterName}.kubezeroForseti" - iamRoleArn: "" - -sealed-secrets: - enabled: false - - # ensure kubeseal default values match - fullnameOverride: sealed-secrets-controller - - # Disable auto keyrotation for now - keyrenewperiod: "0" - - resources: - requests: - cpu: 10m - memory: 24Mi - limits: - memory: 128Mi - - metrics: - serviceMonitor: - enabled: false - - nodeSelector: - node-role.kubernetes.io/control-plane: "" - tolerations: - - key: node-role.kubernetes.io/control-plane - effect: NoSchedule - -aws-eks-asg-rolling-update-handler: - enabled: false - image: - repository: twinproduction/aws-eks-asg-rolling-update-handler - tag: v1.8.3 - - environmentVars: - - name: CLUSTER_NAME - value: "" - - name: AWS_REGION - value: us-west-2 - - name: EXECUTION_INTERVAL - value: "60" - - name: METRICS - value: "true" - - name: EAGER_CORDONING - value: "true" - # Only disable if all services have PDBs across AZs - - name: SLOW_MODE - value: "true" - - name: AWS_ROLE_ARN - value: "" - - name: AWS_WEB_IDENTITY_TOKEN_FILE - value: "/var/run/secrets/sts.amazonaws.com/serviceaccount/token" - - name: AWS_STS_REGIONAL_ENDPOINTS - value: "regional" - - securityContext: - runAsNonRoot: true - runAsUser: 1001 - seccompProfile: - type: RuntimeDefault - - containerSecurityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - - resources: - requests: - cpu: 10m - memory: 32Mi - limits: - memory: 128Mi - - nodeSelector: - node-role.kubernetes.io/control-plane: "" - tolerations: - - key: node-role.kubernetes.io/control-plane - effect: NoSchedule - -aws-node-termination-handler: - enabled: false - - fullnameOverride: "aws-node-termination-handler" - - # -- "zdt:kubezero:nth:${ClusterName}" - managedTag: "zdt:kubezero:nth:${ClusterName}" - - useProviderId: true - enableSqsTerminationDraining: true - # otherwise pds fails trying to reach IMDS - enableSpotInterruptionDraining: false - enableProbesServer: true - deleteLocalData: true - ignoreDaemonSets: true - taintNode: true - emitKubernetesEvents: true - - # -- https://sqs.${AWS::Region}.amazonaws.com/${AWS::AccountId}/${ClusterName}_Nth - queueURL: "" - - metadataTries: 0 - extraEnv: - # -- "arn:aws:iam::${AWS::AccountId}:role/${AWS::Region}.${ClusterName}.awsNth" - - name: AWS_ROLE_ARN - value: "" - - name: AWS_WEB_IDENTITY_TOKEN_FILE - value: "/var/run/secrets/sts.amazonaws.com/serviceaccount/token" - - name: AWS_STS_REGIONAL_ENDPOINTS - value: "regional" - - enablePrometheusServer: false - podMonitor: - create: false - - jsonLogging: true - logFormatVersion: 2 - - tolerations: - - key: node-role.kubernetes.io/control-plane - effect: NoSchedule - nodeSelector: - node-role.kubernetes.io/control-plane: "" - - rbac: - pspEnabled: false - -fuseDevicePlugin: - enabled: false - image: - name: public.ecr.aws/zero-downtime/fuse-device-plugin - tag: v1.2.0 - -awsNeuron: - enabled: false - - image: - name: public.ecr.aws/neuron/neuron-device-plugin - tag: 2.19.16.0 - -nvidia-device-plugin: - enabled: false - tolerations: - - key: nvidia.com/gpu - operator: Exists - effect: NoSchedule - - key: kubezero-workergroup - effect: NoSchedule - operator: Exists - - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "node.kubernetes.io/instance-type" - operator: In - values: - - g5.xlarge - - g5.2xlarge - - g5.4xlarge - - g5.8xlarge - - g5.12xlarge - - g5.16xlarge - - g5.24xlarge - - g5.48xlarge - - g4dn.xlarge - - g4dn.2xlarge - - g4dn.4xlarge - - g4dn.8xlarge - - g4dn.12xlarge - - g4dn.16xlarge - -cluster-autoscaler: - enabled: false - - image: - repository: registry.k8s.io/autoscaling/cluster-autoscaler - tag: v1.28.2 - - autoDiscovery: - clusterName: "" - awsRegion: "us-west-2" - - serviceMonitor: - enabled: false - interval: 30s - - prometheusRule: - enabled: false - interval: "30" - - # Disable pdb for now - podDisruptionBudget: false - - extraArgs: - scan-interval: 30s - skip-nodes-with-local-storage: false - balance-similar-node-groups: true - ignore-taint: "node.cilium.io/agent-not-ready" - - #securityContext: - # runAsNonRoot: true - - nodeSelector: - node-role.kubernetes.io/control-plane: "" - tolerations: - - key: node-role.kubernetes.io/control-plane - effect: NoSchedule - - # On AWS enable Projected Service Accounts to assume IAM role - #extraEnv: - # AWS_ROLE_ARN: - # AWS_WEB_IDENTITY_TOKEN_FILE: "/var/run/secrets/sts.amazonaws.com/serviceaccount/token" - # AWS_STS_REGIONAL_ENDPOINTS: "regional" - - #extraVolumes: - #- name: aws-token - # projected: - # sources: - # - serviceAccountToken: - # path: token - # expirationSeconds: 86400 - # audience: "sts.amazonaws.com" - - #extraVolumeMounts: - #- name: aws-token - # mountPath: "/var/run/secrets/sts.amazonaws.com/serviceaccount/" - # readOnly: true - -external-dns: - enabled: false - - interval: 3m - triggerLoopOnEvent: true - - tolerations: - - key: node-role.kubernetes.io/control-plane - effect: NoSchedule - nodeSelector: - node-role.kubernetes.io/control-plane: "" - - #logLevel: debug - sources: - - service - #- istio-gateway - - provider: inmemory diff --git a/charts/kubezero-argo/Chart.yaml b/charts/kubezero-argo/Chart.yaml deleted file mode 100644 index 5ede098f..00000000 --- a/charts/kubezero-argo/Chart.yaml +++ /dev/null @@ -1,36 +0,0 @@ -apiVersion: v2 -description: KubeZero Argo - Events, Workflow, CD -name: kubezero-argo -version: 0.2.2 -home: https://kubezero.com -icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png -keywords: - - kubezero - - argocd - - argo-events - - argo-workflow -maintainers: - - name: Stefan Reimer - email: stefan@zero-downtime.net -# Url: https://github.com/argoproj/argo-helm/tree/main/charts -dependencies: - - name: kubezero-lib - version: ">= 0.1.6" - repository: https://cdn.zero-downtime.net/charts/ - - name: argo-events - version: 2.4.4 - repository: https://argoproj.github.io/argo-helm - condition: argo-events.enabled - - name: argo-cd - version: 6.9.2 - repository: https://argoproj.github.io/argo-helm - condition: argo-cd.enabled - - name: argocd-apps - version: 2.0.0 - repository: https://argoproj.github.io/argo-helm - condition: argo-cd.enabled - - name: argocd-image-updater - version: 0.10.0 - repository: https://argoproj.github.io/argo-helm - condition: argocd-image-updater.enabled -kubeVersion: ">= 1.26.0" diff --git a/charts/kubezero-argo/README.md b/charts/kubezero-argo/README.md deleted file mode 100644 index 7bec4692..00000000 --- a/charts/kubezero-argo/README.md +++ /dev/null @@ -1,92 +0,0 @@ -# kubezero-argo - -![Version: 0.2.1](https://img.shields.io/badge/Version-0.2.1-informational?style=flat-square) - -KubeZero Argo - Events, Workflow, CD - -**Homepage:** - -## Maintainers - -| Name | Email | Url | -| ---- | ------ | --- | -| Stefan Reimer | | | - -## Requirements - -Kubernetes: `>= 1.26.0` - -| Repository | Name | Version | -|------------|------|---------| -| https://argoproj.github.io/argo-helm | argo-cd | 6.7.10 | -| https://argoproj.github.io/argo-helm | argo-events | 2.4.4 | -| https://argoproj.github.io/argo-helm | argocd-apps | 2.0.0 | -| https://argoproj.github.io/argo-helm | argocd-image-updater | 0.9.6 | -| https://cdn.zero-downtime.net/charts/ | kubezero-lib | >= 0.1.6 | - -## Values - -| Key | Type | Default | Description | -|-----|------|---------|-------------| -| argo-cd.applicationSet.enabled | bool | `false` | | -| argo-cd.configs.cm."resource.customizations" | string | `"cert-manager.io/Certificate:\n # Lua script for customizing the health status assessment\n health.lua: |\n hs = {}\n if obj.status ~= nil then\n if obj.status.conditions ~= nil then\n for i, condition in ipairs(obj.status.conditions) do\n if condition.type == \"Ready\" and condition.status == \"False\" then\n hs.status = \"Degraded\"\n hs.message = condition.message\n return hs\n end\n if condition.type == \"Ready\" and condition.status == \"True\" then\n hs.status = \"Healthy\"\n hs.message = condition.message\n return hs\n end\n end\n end\n end\n hs.status = \"Progressing\"\n hs.message = \"Waiting for certificate\"\n return hs\n"` | | -| argo-cd.configs.cm."timeout.reconciliation" | string | `"300s"` | | -| argo-cd.configs.cm."ui.bannercontent" | string | `"KubeZero v1.27 - Release notes"` | | -| argo-cd.configs.cm."ui.bannerpermanent" | string | `"true"` | | -| argo-cd.configs.cm."ui.bannerposition" | string | `"bottom"` | | -| argo-cd.configs.cm."ui.bannerurl" | string | `"https://kubezero.com/releases/v1.27"` | | -| argo-cd.configs.cm.url | string | `"https://argocd.example.com"` | | -| argo-cd.configs.params."controller.operation.processors" | string | `"5"` | | -| argo-cd.configs.params."controller.status.processors" | string | `"10"` | | -| argo-cd.configs.params."server.enable.gzip" | bool | `true` | | -| argo-cd.configs.params."server.insecure" | bool | `true` | | -| argo-cd.configs.secret.createSecret | bool | `false` | | -| argo-cd.configs.ssh.extraHosts | string | `"git.zero-downtime.net ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC8YdJ4YcOK7A0K7qOWsRjCS+wHTStXRcwBe7gjG43HPSNijiCKoGf/c+tfNsRhyouawg7Law6M6ahmS/jKWBpznRIM+OdOFVSuhnK/nr6h6wG3/ZfdLicyAPvx1/STGY/Fc6/zXA88i/9PV+g84gSVmhf3fGY92wokiASiu9DU4T9dT1gIkdyOX6fbMi1/mMKLSrHnAQcjyasYDvw9ISCJ95EoSwbj7O4c+7jo9fxYvdCfZZZAEZGozTRLAAO0AnjVcRah7bZV/jfHJuhOipV/TB7UVAhlVv1dfGV7hoTp9UKtKZFJF4cjIrSGxqQA/mdhSdLgkepK7yc4Jp2xGnaarhY29DfqsQqop+ugFpTbj7Xy5Rco07mXc6XssbAZhI1xtCOX20N4PufBuYippCK5AE6AiAyVtJmvfGQk4HP+TjOyhFo7PZm3wc9Hym7IBBVC0Sl30K8ddufkAgHwNGvvu1ZmD9ZWaMOXJDHBCZGMMr16QREZwVtZTwMEQalc7/yqmuqMhmcJIfs/GA2Lt91y+pq9C8XyeUL0VFPch0vkcLSRe3ghMZpRFJ/ht307xPcLzgTJqN6oQtNNDzSQglSEjwhge2K4GyWcIh+oGsWxWz5dHyk1iJmw90Y976BZIl/mYVgbTtZAJ81oGe/0k5rAe+LDL+Yq6tG28QFOg0QmiQ=="` | | -| argo-cd.configs.styles | string | `".sidebar__logo img { content: url(https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png); }\n.sidebar__logo__text-logo { height: 0em; }\n.sidebar { background: linear-gradient(to bottom, #6A4D79, #493558, #2D1B30, #0D0711); }\n"` | | -| argo-cd.controller.metrics.enabled | bool | `false` | | -| argo-cd.controller.metrics.serviceMonitor.enabled | bool | `true` | | -| argo-cd.controller.resources.limits.memory | string | `"2048Mi"` | | -| argo-cd.controller.resources.requests.cpu | string | `"100m"` | | -| argo-cd.controller.resources.requests.memory | string | `"512Mi"` | | -| argo-cd.dex.enabled | bool | `false` | | -| argo-cd.enabled | bool | `false` | | -| argo-cd.global.logging.format | string | `"json"` | | -| argo-cd.istio.enabled | bool | `false` | | -| argo-cd.istio.gateway | string | `"istio-ingress/ingressgateway"` | | -| argo-cd.istio.ipBlocks | list | `[]` | | -| argo-cd.notifications.enabled | bool | `false` | | -| argo-cd.repoServer.metrics.enabled | bool | `false` | | -| argo-cd.repoServer.metrics.serviceMonitor.enabled | bool | `true` | | -| argo-cd.server.metrics.enabled | bool | `false` | | -| argo-cd.server.metrics.serviceMonitor.enabled | bool | `true` | | -| argo-cd.server.service.servicePortHttpsName | string | `"grpc"` | | -| argo-events.configs.jetstream.settings.maxFileStore | int | `-1` | Maximum size of the file storage (e.g. 20G) | -| argo-events.configs.jetstream.settings.maxMemoryStore | int | `-1` | Maximum size of the memory storage (e.g. 1G) | -| argo-events.configs.jetstream.streamConfig.duplicates | string | `"300s"` | Not documented at the moment | -| argo-events.configs.jetstream.streamConfig.maxAge | string | `"72h"` | Maximum age of existing messages, i.e. “72h”, “4h35m” | -| argo-events.configs.jetstream.streamConfig.maxBytes | string | `"1GB"` | | -| argo-events.configs.jetstream.streamConfig.maxMsgs | int | `1000000` | Maximum number of messages before expiring oldest message | -| argo-events.configs.jetstream.streamConfig.replicas | int | `1` | Number of replicas, defaults to 3 and requires minimal 3 | -| argo-events.configs.jetstream.versions[0].configReloaderImage | string | `"natsio/nats-server-config-reloader:0.14.1"` | | -| argo-events.configs.jetstream.versions[0].metricsExporterImage | string | `"natsio/prometheus-nats-exporter:0.14.0"` | | -| argo-events.configs.jetstream.versions[0].natsImage | string | `"nats:2.10.11-scratch"` | | -| argo-events.configs.jetstream.versions[0].startCommand | string | `"/nats-server"` | | -| argo-events.configs.jetstream.versions[0].version | string | `"2.10.11"` | | -| argo-events.enabled | bool | `false` | | -| argocd-apps.applications | object | `{}` | | -| argocd-apps.enabled | bool | `false` | | -| argocd-apps.projects | object | `{}` | | -| argocd-image-updater.authScripts.enabled | bool | `true` | | -| argocd-image-updater.authScripts.scripts."ecr-login.sh" | string | `"#!/bin/sh\naws ecr --region $AWS_REGION get-authorization-token --output text --query 'authorizationData[].authorizationToken' | base64 -d\n"` | | -| argocd-image-updater.authScripts.scripts."ecr-public-login.sh" | string | `"#!/bin/sh\naws ecr-public --region us-east-1 get-authorization-token --output text --query 'authorizationData.authorizationToken' | base64 -d\n"` | | -| argocd-image-updater.config.argocd.plaintext | bool | `true` | | -| argocd-image-updater.enabled | bool | `false` | | -| argocd-image-updater.fullnameOverride | string | `"argocd-image-updater"` | | -| argocd-image-updater.metrics.enabled | bool | `false` | | -| argocd-image-updater.metrics.serviceMonitor.enabled | bool | `true` | | -| argocd-image-updater.sshConfig.config | string | `"Host *\n PubkeyAcceptedAlgorithms +ssh-rsa\n HostkeyAlgorithms +ssh-rsa\n"` | | - -## Resources -- https://argoproj.github.io/argo-cd/operator-manual/metrics/ -- https://raw.githubusercontent.com/argoproj/argo-cd/master/examples/dashboard.json - diff --git a/charts/kubezero-argo/README.md.gotmpl b/charts/kubezero-argo/README.md.gotmpl deleted file mode 100644 index f2d17e4f..00000000 --- a/charts/kubezero-argo/README.md.gotmpl +++ /dev/null @@ -1,21 +0,0 @@ -{{ template "chart.header" . }} -{{ template "chart.deprecationWarning" . }} - -{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }} - -{{ template "chart.description" . }} - -{{ template "chart.homepageLine" . }} - -{{ template "chart.maintainersSection" . }} - -{{ template "chart.sourcesSection" . }} - -{{ template "chart.requirementsSection" . }} - -{{ template "chart.valuesSection" . }} - -## Resources -- https://argoproj.github.io/argo-cd/operator-manual/metrics/ -- https://raw.githubusercontent.com/argoproj/argo-cd/master/examples/dashboard.json - diff --git a/charts/kubezero-argo/dashboards.yaml b/charts/kubezero-argo/dashboards.yaml deleted file mode 100644 index 86f759d8..00000000 --- a/charts/kubezero-argo/dashboards.yaml +++ /dev/null @@ -1,9 +0,0 @@ -configmap: grafana-dashboards -gzip: true -condition: 'index .Values "argo-cd" "controller" "metrics" "enabled"' -folder: KubeZero -dashboards: -- name: ArgoCD - url: https://grafana.com/api/dashboards/14584/revisions/1/download - tags: - - ArgoCD diff --git a/charts/kubezero-argo/templates/argo-cd/grafana-dashboards.yaml b/charts/kubezero-argo/templates/argo-cd/grafana-dashboards.yaml deleted file mode 100644 index 26895285..00000000 --- a/charts/kubezero-argo/templates/argo-cd/grafana-dashboards.yaml +++ /dev/null @@ -1,15 +0,0 @@ -{{- if index .Values "argo-cd" "controller" "metrics" "enabled" }} -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ printf "%s-%s" (include "kubezero-lib.fullname" $) "grafana-dashboards" | trunc 63 | trimSuffix "-" }} - namespace: {{ .Release.Namespace }} - labels: - grafana_dashboard: "1" - {{- include "kubezero-lib.labels" . | nindent 4 }} - annotations: - k8s-sidecar-target-directory: KubeZero -binaryData: - ArgoCD.json.gz: - H4sIAAAAAAAC/+2d63PbtpbAv+ev4OXt3LE7sivKsiV3JrPjJn3tpo0bJ72z22Q0EAlJrCmSJcHEqtf7ty8eJAWSIKkHZVH2yYckAijhdXDO7xyAwP0LTdNHI9v1IxLq32p/fOqIlAD/FdkB5mk0RdPu+d80jyx8TFN1H7nY0TtJsm2xxCmKpniZ6KI5f/bHbPJnHIS257Icnac9dNRlTAM0QS4qlJJPTsvJZ0glDU+7p93q4tRNCpA/Uxblz7Qjz7GON2iYsqQZRmSO/GJZP+UzVi7HQgSFXhSYOF+YH3hzTGY4CovlXSvypCKNDXsyJIgUC7vJpG7XgwTfKUp4n0ktlkD/FmKPXNejtaG5TO5FkbpjhySdBcuK0JxxZDvkZ/ZLRmeZKnW5uivpM9hFY4flkyDCUvrMthSptum5rzzHC9gPBtMxOup2tJ5h0L/OzzuacSz/dNLoq2VbtH9pVw4OSKYKSwkJZ2MPBZYe5z3wfz+9iLtex5ZNcrXVpy4mP7MeN/rnw75IYvPhvec5xPZpRpcn8lFxI8cRnwgOeI3YFy96ZxeDweBs0D/nvUf72b2VVBAfX4X6MT3HQX6I2S9PkBOmHVXf8frExo71ynMn9jQdX/FVPEGRwzXg/YPUSR4VloCOiahX0kHp701p3rUXZn9rlpOHL/Rzry8l3CXdE39esM+F3+ZddzFMPy/741OaRmzCx0V/S+v52cZflk1NhjfwvqjnUX1vlbaun29dTeMMdeN6F+nn7NiLrvez8zAefJdgl01H/R9/oGDq2XM0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OXQTrGAFeeMGYXEm7eJ7+O4W3wmccyzYrn4QBA/rnqzgL9it5Qwfvy1Jgh/ba432sH1q4jxuqr/Kh+ez0Cp4zyexm9GcmcYOWQ2Cgki2fnaoNbP91lVrzWifH/ijVqUFprkN1sqnXzTgL32nTGfhcBV+kyzpd9Eoc/WZKzSspdPNFvyL3Z1m5P8Zkt9jacBqmpu+kCz5X5wb938HXNysUn+6oY9lsaOJBuddKw6ce91kuZ0ihV4XMP/3DVmSHv5ielLJjhVikNkN1vm24i8nXCJLSt2+UTbZ7DooE5a4cbmKP+XLSE+iBUYm4tgvPYyEYu/Oi3pJI166DyWydL0zNd827zlq/Xxl2PkSyNnsuDq59Jik9GVPpzJH6TomBy90g35gxz8kWMzcuxEN2Lh+pS0gW3ILE6o8lLkH76Qf1gupdeXPyzFXR9Ycn2TumS672/PXQYQpJdVxBIZT4z4phf9r+vb6Y8/TQfxktrndNmNQ3FOr+lvJxPbtJGjiV/SXqNwNvZQYLENy95E+8/IxVqv2zP0Fw//D4RhmGe/kgEA -{{- end }} diff --git a/charts/kubezero-argo/templates/argo-cd/istio-authorization-policy.yaml b/charts/kubezero-argo/templates/argo-cd/istio-authorization-policy.yaml deleted file mode 100644 index 603d1dfb..00000000 --- a/charts/kubezero-argo/templates/argo-cd/istio-authorization-policy.yaml +++ /dev/null @@ -1,28 +0,0 @@ -{{- if index .Values "argo-cd" "istio" "enabled" }} -{{- if index .Values "argo-cd" "istio" "ipBlocks" }} -apiVersion: security.istio.io/v1beta1 -kind: AuthorizationPolicy -metadata: - name: argocd-deny-not-in-ipblocks - namespace: istio-system - labels: - {{- include "kubezero-lib.labels" . | nindent 4 }} -spec: - selector: - matchLabels: - app: istio-ingressgateway - action: DENY - rules: - - from: - - source: - notIpBlocks: - {{- toYaml (index .Values "argo-cd" "istio" "ipBlocks") | nindent 8 }} - to: - - operation: - hosts: [{{ index .Values "argo-cd" "configs" "cm" "url" | quote }}] - when: - - key: connection.sni - values: - - '*' -{{- end }} -{{- end }} diff --git a/charts/kubezero-argo/templates/argo-cd/istio-service.yaml b/charts/kubezero-argo/templates/argo-cd/istio-service.yaml deleted file mode 100644 index 0c757db8..00000000 --- a/charts/kubezero-argo/templates/argo-cd/istio-service.yaml +++ /dev/null @@ -1,31 +0,0 @@ -{{- if index .Values "argo-cd" "istio" "enabled" }} -apiVersion: networking.istio.io/v1alpha3 -kind: VirtualService -metadata: - name: argocd-server - namespace: {{ $.Release.Namespace }} - labels: - {{- include "kubezero-lib.labels" . | nindent 4 }} -spec: - gateways: - - {{ index .Values "argo-cd" "istio" "gateway" }} - hosts: - - {{ get (urlParse (index .Values "argo-cd" "configs" "cm" "url")) "host" }} - http: - - name: grpc - match: - - headers: - user-agent: - prefix: argocd-client - route: - - destination: - host: argo-argocd-server - port: - number: 443 - - name: http - route: - - destination: - host: argo-argocd-server - port: - number: 80 -{{- end }} diff --git a/charts/kubezero-argo/update.sh b/charts/kubezero-argo/update.sh deleted file mode 100755 index 4962882b..00000000 --- a/charts/kubezero-argo/update.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -. ../../scripts/lib-update.sh - -update_helm - -# Create ZDT dashboard configmap -../kubezero-metrics/sync_grafana_dashboards.py dashboards.yaml templates/argo-cd/grafana-dashboards.yaml - -update_docs diff --git a/charts/kubezero-argo/values.yaml b/charts/kubezero-argo/values.yaml deleted file mode 100644 index 86c440d1..00000000 --- a/charts/kubezero-argo/values.yaml +++ /dev/null @@ -1,186 +0,0 @@ -argo-events: - enabled: false - configs: - jetstream: - # Default JetStream settings, could be overridden by EventBus JetStream spec - # Ref: https://docs.nats.io/running-a-nats-service/configuration#jetstream - settings: - # -- Maximum size of the memory storage (e.g. 1G) - maxMemoryStore: -1 - # -- Maximum size of the file storage (e.g. 20G) - maxFileStore: -1 - streamConfig: - # -- Maximum number of messages before expiring oldest message - maxMsgs: 1000000 - # -- Maximum age of existing messages, i.e. “72h”, “4h35m” - maxAge: 72h - # Total size of messages before expiring oldest message, 0 means unlimited. - maxBytes: 1GB - # -- Number of replicas, defaults to 3 and requires minimal 3 - replicas: 1 - # -- Not documented at the moment - duplicates: 300s - # Supported versions of JetStream eventbus - # see: https://github.com/nats-io/k8s/blob/main/helm/charts/nats/values.yaml - # do NOT use -alpine tag as the entrypoint differs - versions: - - version: 2.10.11 - natsImage: nats:2.10.11-scratch - metricsExporterImage: natsio/prometheus-nats-exporter:0.14.0 - configReloaderImage: natsio/nats-server-config-reloader:0.14.1 - startCommand: /nats-server - - -argocd-apps: - enabled: false - projects: {} - applications: {} - -argo-cd: - enabled: false - #configs: - # secret: - # `htpasswd -nbBC 10 "" $ARGO_PWD | tr -d ':\n' | sed 's/$2y/$2a/'` - # argocdServerAdminPassword: "$2a$10$ivKzaXVxMqdeDSfS3nqi1Od3iDbnL7oXrixzDfZFRHlXHnAG6LydG" - # argocdServerAdminPasswordMtime: "2020-04-24T15:33:09BST" - - global: - logging: - format: json - # image: - # tag: v2.1.6 - - configs: - styles: | - .sidebar__logo img { content: url(https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png); } - .sidebar__logo__text-logo { height: 0em; } - .sidebar { background: linear-gradient(to bottom, #6A4D79, #493558, #2D1B30, #0D0711); } - - cm: - ui.bannercontent: "KubeZero v1.28 - Release notes" - ui.bannerurl: "https://kubezero.com/releases/v1.28" - ui.bannerpermanent: "true" - ui.bannerposition: "bottom" - - # argo-cd.server.config.url -- ArgoCD URL being exposed via Istio - url: https://argocd.example.com - - timeout.reconciliation: 300s - - resource.customizations: | - cert-manager.io/Certificate: - # Lua script for customizing the health status assessment - health.lua: | - hs = {} - if obj.status ~= nil then - if obj.status.conditions ~= nil then - for i, condition in ipairs(obj.status.conditions) do - if condition.type == "Ready" and condition.status == "False" then - hs.status = "Degraded" - hs.message = condition.message - return hs - end - if condition.type == "Ready" and condition.status == "True" then - hs.status = "Healthy" - hs.message = condition.message - return hs - end - end - end - end - hs.status = "Progressing" - hs.message = "Waiting for certificate" - return hs - - secret: - createSecret: false - - ssh: - extraHosts: "git.zero-downtime.net ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC8YdJ4YcOK7A0K7qOWsRjCS+wHTStXRcwBe7gjG43HPSNijiCKoGf/c+tfNsRhyouawg7Law6M6ahmS/jKWBpznRIM+OdOFVSuhnK/nr6h6wG3/ZfdLicyAPvx1/STGY/Fc6/zXA88i/9PV+g84gSVmhf3fGY92wokiASiu9DU4T9dT1gIkdyOX6fbMi1/mMKLSrHnAQcjyasYDvw9ISCJ95EoSwbj7O4c+7jo9fxYvdCfZZZAEZGozTRLAAO0AnjVcRah7bZV/jfHJuhOipV/TB7UVAhlVv1dfGV7hoTp9UKtKZFJF4cjIrSGxqQA/mdhSdLgkepK7yc4Jp2xGnaarhY29DfqsQqop+ugFpTbj7Xy5Rco07mXc6XssbAZhI1xtCOX20N4PufBuYippCK5AE6AiAyVtJmvfGQk4HP+TjOyhFo7PZm3wc9Hym7IBBVC0Sl30K8ddufkAgHwNGvvu1ZmD9ZWaMOXJDHBCZGMMr16QREZwVtZTwMEQalc7/yqmuqMhmcJIfs/GA2Lt91y+pq9C8XyeUL0VFPch0vkcLSRe3ghMZpRFJ/ht307xPcLzgTJqN6oQtNNDzSQglSEjwhge2K4GyWcIh+oGsWxWz5dHyk1iJmw90Y976BZIl/mYVgbTtZAJ81oGe/0k5rAe+LDL+Yq6tG28QFOg0QmiQ==" - - params: - controller.status.processors: "10" - controller.operation.processors: "5" - - server.insecure: true - server.enable.gzip: true - - controller: - metrics: - enabled: false - serviceMonitor: - enabled: true - - resources: - limits: - # cpu: 500m - memory: 2048Mi - requests: - cpu: 100m - memory: 512Mi - - repoServer: - metrics: - enabled: false - serviceMonitor: - enabled: true - - server: - # Rename former https port to grpc, works with istio + insecure - service: - servicePortHttpsName: grpc - metrics: - enabled: false - serviceMonitor: - enabled: true - - # redis: - # We might want to try to keep redis close to the controller - # affinity: - - dex: - enabled: false - - applicationSet: - enabled: false - - notifications: - enabled: false - - # Support for Istio Ingress for ArgoCD - istio: - # istio.enabled -- Deploy Istio VirtualService to expose ArgoCD - enabled: false - # istio.gateway -- Name of the Istio gateway to add the VirtualService to - gateway: istio-ingress/ingressgateway - ipBlocks: [] - -argocd-image-updater: - enabled: false - - # Unify all ArgoCD pieces under the same argocd namespace - fullnameOverride: argocd-image-updater - - config: - argocd: - plaintext: true - - metrics: - enabled: false - serviceMonitor: - enabled: true - - authScripts: - enabled: true - scripts: - ecr-login.sh: | - #!/bin/sh - aws ecr --region $AWS_REGION get-authorization-token --output text --query 'authorizationData[].authorizationToken' | base64 -d - ecr-public-login.sh: | - #!/bin/sh - aws ecr-public --region us-east-1 get-authorization-token --output text --query 'authorizationData.authorizationToken' | base64 -d - sshConfig: - config: | - Host * - PubkeyAcceptedAlgorithms +ssh-rsa - HostkeyAlgorithms +ssh-rsa diff --git a/charts/kubezero-auth/Chart.yaml b/charts/kubezero-auth/Chart.yaml deleted file mode 100644 index 8f4f71e8..00000000 --- a/charts/kubezero-auth/Chart.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: v2 -name: kubezero-auth -description: KubeZero umbrella chart for all things Authentication and Identity management -type: application -version: 0.4.6 -appVersion: 22.0.5 -home: https://kubezero.com -icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png -keywords: - - kubezero - - keycloak -maintainers: - - name: Stefan Reimer - email: stefan@zero-downtime.net -dependencies: - - name: kubezero-lib - version: ">= 0.1.6" - repository: https://cdn.zero-downtime.net/charts/ - - name: keycloak - version: 18.7.1 - repository: "oci://registry-1.docker.io/bitnamicharts" - condition: keycloak.enabled -kubeVersion: ">= 1.26.0" diff --git a/charts/kubezero-auth/README.md b/charts/kubezero-auth/README.md deleted file mode 100644 index 24a7a1b1..00000000 --- a/charts/kubezero-auth/README.md +++ /dev/null @@ -1,63 +0,0 @@ -# kubezero-auth - -![Version: 0.4.5](https://img.shields.io/badge/Version-0.4.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 22.0.5](https://img.shields.io/badge/AppVersion-22.0.5-informational?style=flat-square) - -KubeZero umbrella chart for all things Authentication and Identity management - -**Homepage:** - -## Maintainers - -| Name | Email | Url | -| ---- | ------ | --- | -| Stefan Reimer | | | - -## Requirements - -Kubernetes: `>= 1.26.0` - -| Repository | Name | Version | -|------------|------|---------| -| https://cdn.zero-downtime.net/charts/ | kubezero-lib | >= 0.1.6 | -| oci://registry-1.docker.io/bitnamicharts | keycloak | 18.3.2 | - -# Keycloak - -## Operator - -https://www.keycloak.org/operator/installation -https://github.com/keycloak/keycloak/tree/main/operator -https://github.com/aerogear/keycloak-metrics-spi -https://github.com/keycloak/keycloak-benchmark/tree/main/provision/minikube/keycloak/templates - -## Resources -- https://github.com/bitnami/charts/tree/main/bitnami/keycloak - -## Values - -| Key | Type | Default | Description | -|-----|------|---------|-------------| -| keycloak.auth.adminUser | string | `"admin"` | | -| keycloak.auth.existingSecret | string | `"kubezero-auth"` | | -| keycloak.auth.passwordSecretKey | string | `"admin-password"` | | -| keycloak.enabled | bool | `false` | | -| keycloak.istio.admin.enabled | bool | `false` | | -| keycloak.istio.admin.gateway | string | `"istio-ingress/private-ingressgateway"` | | -| keycloak.istio.admin.url | string | `""` | | -| keycloak.istio.auth.enabled | bool | `false` | | -| keycloak.istio.auth.gateway | string | `"istio-ingress/ingressgateway"` | | -| keycloak.istio.auth.url | string | `""` | | -| keycloak.metrics.enabled | bool | `false` | | -| keycloak.metrics.serviceMonitor.enabled | bool | `true` | | -| keycloak.pdb.create | bool | `false` | | -| keycloak.pdb.minAvailable | int | `1` | | -| keycloak.postgresql.auth.database | string | `"keycloak"` | | -| keycloak.postgresql.auth.existingSecret | string | `"kubezero-auth"` | | -| keycloak.postgresql.auth.username | string | `"keycloak"` | | -| keycloak.postgresql.primary.persistence.size | string | `"1Gi"` | | -| keycloak.postgresql.readReplicas.replicaCount | int | `0` | | -| keycloak.production | bool | `true` | | -| keycloak.proxy | string | `"edge"` | | -| keycloak.replicaCount | int | `1` | | -| keycloak.resources.requests.cpu | string | `"100m"` | | -| keycloak.resources.requests.memory | string | `"512Mi"` | | diff --git a/charts/kubezero-auth/README.md.gotmpl b/charts/kubezero-auth/README.md.gotmpl deleted file mode 100644 index e4bf1767..00000000 --- a/charts/kubezero-auth/README.md.gotmpl +++ /dev/null @@ -1,28 +0,0 @@ -{{ template "chart.header" . }} -{{ template "chart.deprecationWarning" . }} - -{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }} - -{{ template "chart.description" . }} - -{{ template "chart.homepageLine" . }} - -{{ template "chart.maintainersSection" . }} - -{{ template "chart.sourcesSection" . }} - -{{ template "chart.requirementsSection" . }} - -# Keycloak - -## Operator - -https://www.keycloak.org/operator/installation -https://github.com/keycloak/keycloak/tree/main/operator -https://github.com/aerogear/keycloak-metrics-spi -https://github.com/keycloak/keycloak-benchmark/tree/main/provision/minikube/keycloak/templates - -## Resources -- https://github.com/bitnami/charts/tree/main/bitnami/keycloak - -{{ template "chart.valuesSection" . }} diff --git a/charts/kubezero-auth/dashboards-keycloak.yaml b/charts/kubezero-auth/dashboards-keycloak.yaml deleted file mode 100644 index 9200d36e..00000000 --- a/charts/kubezero-auth/dashboards-keycloak.yaml +++ /dev/null @@ -1,9 +0,0 @@ -configmap: grafana-dashboards -condition: '.Values.keycloak.metrics.enabled' -gzip: true -# folder: -dashboards: -- name: keycloak - # url: https://grafana.com/api/dashboards/10441/revisions/2/download - url: https://grafana.com/api/dashboards/17878/revisions/1/download - tags: ['Keycloak', 'Auth'] diff --git a/charts/kubezero-auth/docs/keycloak.md b/charts/kubezero-auth/docs/keycloak.md deleted file mode 100644 index 60c95405..00000000 --- a/charts/kubezero-auth/docs/keycloak.md +++ /dev/null @@ -1,14 +0,0 @@ -# Abstract - -## IdP - -### AWS - -Get client descriptor for your realm and client via: -`wget https:///realms//protocol/saml/descriptor` - -# Resources - -## AWS -- https://aws.amazon.com/blogs/business-intelligence/federate-amazon-quicksight-access-with-open-source-identity-provider-keycloak/ -- https://docs.aws.amazon.com/singlesignon/latest/userguide/troubleshooting.html#issue8 diff --git a/charts/kubezero-auth/docs/postgres.md b/charts/kubezero-auth/docs/postgres.md deleted file mode 100644 index 6dd7a8e9..00000000 --- a/charts/kubezero-auth/docs/postgres.md +++ /dev/null @@ -1,49 +0,0 @@ -# Upgrade Postgres major version - -## backup - -- shell into running posgres-auth pod -``` -export PGPASSWORD="" -cd /bitnami/posgres -pg_dumpall > backup -``` - -- store backup off-site -``` -kubectl cp keycloak/kubezero-auth-postgresql-0:/bitnami/postgresql/backup postgres-backup -``` - -## upgrade - -- upgrade auth chart -- set replica of the keycloak statefulSet to 0 -- set replica of the postgres-auth statefulSet to 0 -- delete postgres-auth PVC and POD to flush old DB - -## restore - -- restore replica of postgres-auth statefulSet -- copy backup to new PVC -``` -kubectl cp postgres-backup keycloak/kubezero-auth-postgresql-0:/bitnami/postgresql/backup -``` - -- log into psql as admin ( shell on running pod ) -``` -psql -U postgres -``` - -- drop database `keycloak` in case the keycloak instances connected early -``` -DROP database keycloak -``` - -- actual restore -``` -psql -U postgres -d postgres -f backup -``` - -- reset replia of keycloak statefulSet or force ArgoCD sync - -success. diff --git a/charts/kubezero-auth/templates/keycloak/grafana-dashboards.yaml b/charts/kubezero-auth/templates/keycloak/grafana-dashboards.yaml deleted file mode 100644 index e310b245..00000000 --- a/charts/kubezero-auth/templates/keycloak/grafana-dashboards.yaml +++ /dev/null @@ -1,13 +0,0 @@ -{{- if .Values.keycloak.metrics.enabled }} -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ printf "%s-%s" (include "kubezero-lib.fullname" $) "grafana-dashboards" | trunc 63 | trimSuffix "-" }} - namespace: {{ .Release.Namespace }} - labels: - grafana_dashboard: "1" - {{- include "kubezero-lib.labels" . | nindent 4 }} -binaryData: - keycloak.json.gz: - H4sIAAAAAAAC/+1dbVPbuBb+zq/weDt32p1Ak/AWOrMfgNKWu9CyQNnZWzoZxVYSL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yeWv1mPJiNC6iATneiElerwYdQ9m0peVJJ2MZMg8894peKmzf2Q9M20JcLxO6F2KN1s1DnFRJDAB9WdQXlcC53oqhwVwiTwns/9FWJLhMAppB6yhRWbUVVKuS/7kfYRvVYKB53QhvuO6pagATW/SJHuRuDffJ9tKlHZpkpINM8mXfZgyDW1avNF2alnkFdtyaI2cqk9eC8XxTfI/xo4F0PXUnQ7ER1BF8iKJncTh6PcACxD2U9hkcVJr6B5GNRB1I7Fuo1fmN+O9Kz8K5u1m7ADAxcSiNu+Z7fZUohYfOo1Tm/nP3YxAW5+KcsEgKerZyeRDaSoboJk5PZGKi6zzIaorKQdsp50cP0K0NSOA9f/4k2qfd55yaDi+h6qdiLv/a9kyGY+tyQjluZoooSMEMPLSJMpXY+VEPG5SOx57sLG2cQ1kOuau6yqL9IaRTdpVRVaXlhL7HOV2MLdX7MJraq6Jclt8XrY7Aa4qsKcdP+lyPNa4smOIgiJBArV7EanMKbr3a03krvZTOLFaWbuMR9R5yOjyZPJaSewXnSEzG2BhWnUhS+b4peGcPXttvC5IX6h3oiQI9wg1xQ+N2Ki43syBuaeCGI5sRWx4h2xYrGV5pb4RbhNb9cW+5v0JTd9Pz03UxSZo5IgfiMWUOM9wP2OBwLb+AzvjCuEQ+Cgn9H1iNGzIffdTffj3X8/3zW3YkfiNnU2uFtl3kF4c0Fd1Ggjr43+D4qMqm3O6AAA -{{- end }} diff --git a/charts/kubezero-auth/templates/keycloak/istio-authorization-policy.yaml b/charts/kubezero-auth/templates/keycloak/istio-authorization-policy.yaml deleted file mode 100644 index 2b4b5275..00000000 --- a/charts/kubezero-auth/templates/keycloak/istio-authorization-policy.yaml +++ /dev/null @@ -1,37 +0,0 @@ -{{- if and .Values.keycloak.enabled .Values.keycloak.istio.admin.enabled }} -apiVersion: security.istio.io/v1beta1 -kind: AuthorizationPolicy -metadata: - name: {{ .Release.Name }}-keycloak-admin-deny-not-in-ipblocks - namespace: istio-system - labels: - {{- include "kubezero-lib.labels" $ | nindent 4 }} -spec: - selector: - matchLabels: - app: istio-ingressgateway - action: DENY - rules: - # block access to metrics via Ingress - - to: - - operation: - hosts: ["{{ .Values.keycloak.istio.admin.url }}"] - paths: ["/metrics", "/realms/*/metrics"] - when: - - key: connection.sni - values: - - '*' - {{- if .Values.keycloak.istio.admin.ipBlocks }} - - from: - - source: - notIpBlocks: - {{- toYaml .Values.keycloak.istio.admin.ipBlocks | nindent 8 }} - to: - - operation: - hosts: ["{{ .Values.keycloak.istio.admin.url }}"] - when: - - key: connection.sni - values: - - '*' - {{- end }} -{{- end }} diff --git a/charts/kubezero-auth/templates/keycloak/istio-service.yaml b/charts/kubezero-auth/templates/keycloak/istio-service.yaml deleted file mode 100644 index fe9ca50f..00000000 --- a/charts/kubezero-auth/templates/keycloak/istio-service.yaml +++ /dev/null @@ -1,44 +0,0 @@ -{{- if and .Values.keycloak.enabled .Values.keycloak.istio.admin.enabled .Values.keycloak.istio.admin.url }} -# Admin endpoint / all URLs allowed -apiVersion: networking.istio.io/v1beta1 -kind: VirtualService -metadata: - name: {{ template "kubezero-lib.fullname" $ }}-admin - namespace: {{ .Release.Namespace }} - labels: - {{- include "kubezero-lib.labels" $ | nindent 4 }} -spec: - gateways: - - {{ .Values.keycloak.istio.admin.gateway }} - hosts: - - {{ .Values.keycloak.istio.admin.url }} - http: - - route: - - destination: - host: {{ template "kubezero-lib.fullname" $ }}-keycloak -{{- end }} - ---- - -{{- if and .Values.keycloak.enabled .Values.keycloak.istio.auth.enabled .Values.keycloak.istio.auth.url }} -# auth endpoint - only expose minimal URls -apiVersion: networking.istio.io/v1beta1 -kind: VirtualService -metadata: - name: {{ template "kubezero-lib.fullname" $ }}-auth - namespace: {{ .Release.Namespace }} - labels: - {{- include "kubezero-lib.labels" $ | nindent 4 }} -spec: - gateways: - - {{ .Values.keycloak.istio.auth.gateway }} - hosts: - - {{ .Values.keycloak.istio.auth.url }} - http: - - match: - - uri: - regex: ^/(js/|realms/|resources/|robots.txt).* - route: - - destination: - host: {{ template "kubezero-lib.fullname" $ }}-keycloak -{{- end }} diff --git a/charts/kubezero-auth/update.sh b/charts/kubezero-auth/update.sh deleted file mode 100755 index 386349ef..00000000 --- a/charts/kubezero-auth/update.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -set -ex - -. ../../scripts/lib-update.sh - -login_ecr_public -update_helm - -# Fetch dashboards -../kubezero-metrics/sync_grafana_dashboards.py dashboards-keycloak.yaml templates/keycloak/grafana-dashboards.yaml - -update_docs diff --git a/charts/kubezero-auth/values.yaml b/charts/kubezero-auth/values.yaml deleted file mode 100644 index 807bc831..00000000 --- a/charts/kubezero-auth/values.yaml +++ /dev/null @@ -1,48 +0,0 @@ -keycloak: - enabled: false - - proxy: edge - production: true - - auth: - adminUser: admin - existingSecret: kubezero-auth - passwordSecretKey: admin-password - - replicaCount: 1 - - pdb: - create: false - minAvailable: 1 - - metrics: - enabled: false - serviceMonitor: - enabled: true - resources: - requests: - cpu: 100m - memory: 512Mi - - postgresql: - auth: - existingSecret: kubezero-auth - username: keycloak - database: keycloak - - primary: - persistence: - size: 1Gi - - readReplicas: - replicaCount: 0 - - istio: - admin: - enabled: false - gateway: istio-ingress/private-ingressgateway - url: "" - auth: - enabled: false - gateway: istio-ingress/ingressgateway - url: "" diff --git a/charts/kubezero-cert-manager/.gitignore b/charts/kubezero-cert-manager/.gitignore deleted file mode 100644 index 22d0d82f..00000000 --- a/charts/kubezero-cert-manager/.gitignore +++ /dev/null @@ -1 +0,0 @@ -vendor diff --git a/charts/kubezero-cert-manager/.helmignore b/charts/kubezero-cert-manager/.helmignore deleted file mode 100644 index 2f309f27..00000000 --- a/charts/kubezero-cert-manager/.helmignore +++ /dev/null @@ -1,25 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ -vendor -rules diff --git a/charts/kubezero-cert-manager/Chart.yaml b/charts/kubezero-cert-manager/Chart.yaml deleted file mode 100644 index 8fbab0a3..00000000 --- a/charts/kubezero-cert-manager/Chart.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: v2 -name: kubezero-cert-manager -description: KubeZero Umbrella Chart for cert-manager -type: application -version: 0.9.7 -home: https://kubezero.com -icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png -keywords: - - kubezero - - cert-manager -maintainers: - - name: Stefan Reimer - email: stefan@zero-downtime.net -dependencies: - - name: kubezero-lib - version: ">= 0.1.6" - repository: https://cdn.zero-downtime.net/charts/ - - name: cert-manager - version: v1.14.4 - repository: https://charts.jetstack.io -kubeVersion: ">= 1.26.0" diff --git a/charts/kubezero-cert-manager/README.md b/charts/kubezero-cert-manager/README.md deleted file mode 100644 index 103f1139..00000000 --- a/charts/kubezero-cert-manager/README.md +++ /dev/null @@ -1,59 +0,0 @@ -# kubezero-cert-manager - -![Version: 0.9.7](https://img.shields.io/badge/Version-0.9.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) - -KubeZero Umbrella Chart for cert-manager - -**Homepage:** - -## Maintainers - -| Name | Email | Url | -| ---- | ------ | --- | -| Stefan Reimer | | | - -## Requirements - -Kubernetes: `>= 1.26.0` - -| Repository | Name | Version | -|------------|------|---------| -| https://cdn.zero-downtime.net/charts/ | kubezero-lib | >= 0.1.6 | -| https://charts.jetstack.io | cert-manager | v1.14.4 | - -## AWS - OIDC IAM roles - -## Resolver Secrets -If your resolvers need additional sercrets like CloudFlare API tokens etc. make sure to provide these secrets separatly matching your defined issuers. - -## Resources -- [Backup & Restore](https://cert-manager.io/docs/tutorials/backup/) -## Values - -| Key | Type | Default | Description | -|-----|------|---------|-------------| -| cert-manager.cainjector.extraArgs[0] | string | `"--logging-format=json"` | | -| cert-manager.cainjector.extraArgs[1] | string | `"--leader-elect=false"` | | -| cert-manager.cainjector.nodeSelector."node-role.kubernetes.io/control-plane" | string | `""` | | -| cert-manager.cainjector.tolerations[0].effect | string | `"NoSchedule"` | | -| cert-manager.cainjector.tolerations[0].key | string | `"node-role.kubernetes.io/control-plane"` | | -| cert-manager.enableCertificateOwnerRef | bool | `true` | | -| cert-manager.enabled | bool | `true` | | -| cert-manager.extraArgs[0] | string | `"--logging-format=json"` | | -| cert-manager.extraArgs[1] | string | `"--leader-elect=false"` | | -| cert-manager.extraArgs[2] | string | `"--dns01-recursive-nameservers-only"` | | -| cert-manager.global.leaderElection.namespace | string | `"cert-manager"` | | -| cert-manager.ingressShim.defaultIssuerKind | string | `"ClusterIssuer"` | | -| cert-manager.ingressShim.defaultIssuerName | string | `"letsencrypt-dns-prod"` | | -| cert-manager.nodeSelector."node-role.kubernetes.io/control-plane" | string | `""` | | -| cert-manager.prometheus.servicemonitor.enabled | bool | `false` | | -| cert-manager.startupapicheck.enabled | bool | `false` | | -| cert-manager.tolerations[0].effect | string | `"NoSchedule"` | | -| cert-manager.tolerations[0].key | string | `"node-role.kubernetes.io/control-plane"` | | -| cert-manager.webhook.extraArgs[0] | string | `"--logging-format=json"` | | -| cert-manager.webhook.nodeSelector."node-role.kubernetes.io/control-plane" | string | `""` | | -| cert-manager.webhook.tolerations[0].effect | string | `"NoSchedule"` | | -| cert-manager.webhook.tolerations[0].key | string | `"node-role.kubernetes.io/control-plane"` | | -| clusterIssuer | object | `{}` | | -| localCA.enabled | bool | `false` | | -| localCA.selfsigning | bool | `true` | | diff --git a/charts/kubezero-cert-manager/README.md.gotmpl b/charts/kubezero-cert-manager/README.md.gotmpl deleted file mode 100644 index 0d3b9061..00000000 --- a/charts/kubezero-cert-manager/README.md.gotmpl +++ /dev/null @@ -1,23 +0,0 @@ -{{ template "chart.header" . }} -{{ template "chart.deprecationWarning" . }} - -{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }} - -{{ template "chart.description" . }} - -{{ template "chart.homepageLine" . }} - -{{ template "chart.maintainersSection" . }} - -{{ template "chart.sourcesSection" . }} - -{{ template "chart.requirementsSection" . }} - -## AWS - OIDC IAM roles - -## Resolver Secrets -If your resolvers need additional sercrets like CloudFlare API tokens etc. make sure to provide these secrets separatly matching your defined issuers. - -## Resources -- [Backup & Restore](https://cert-manager.io/docs/tutorials/backup/) -{{ template "chart.valuesSection" . }} diff --git a/charts/kubezero-cert-manager/backup-all.sh b/charts/kubezero-cert-manager/backup-all.sh deleted file mode 100755 index 03707bb0..00000000 --- a/charts/kubezero-cert-manager/backup-all.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -kubectl get -A -o yaml issuer,clusterissuer,certificates,certificaterequests > cert-manager-backup.yaml -echo '---' >> cert-manager-backup.yaml -kubectl get -A -o yaml secrets --field-selector type=kubernetes.io/tls >> cert-manager-backup.yaml -echo '---' >> cert-manager-backup.yaml -kubectl get -o yaml secrets -n cert-manager letsencrypt-dns-prod >> cert-manager-backup.yaml diff --git a/charts/kubezero-cert-manager/cert-manager-rules.yaml b/charts/kubezero-cert-manager/cert-manager-rules.yaml deleted file mode 100644 index bc6c821b..00000000 --- a/charts/kubezero-cert-manager/cert-manager-rules.yaml +++ /dev/null @@ -1,4 +0,0 @@ -rules: -- name: prometheus-rules - condition: 'index .Values "cert-manager" "prometheus" "servicemonitor" "enabled"' - url: file://rules/cert-manager-mixin-prometheusRule diff --git a/charts/kubezero-cert-manager/dashboards.yaml b/charts/kubezero-cert-manager/dashboards.yaml deleted file mode 100644 index e0613f81..00000000 --- a/charts/kubezero-cert-manager/dashboards.yaml +++ /dev/null @@ -1,9 +0,0 @@ -configmap: grafana-dashboard -gzip: true -folder: KubeZero -condition: 'index .Values "cert-manager" "prometheus" "servicemonitor" "enabled"' -dashboards: -- name: cert-manager - url: https://gitlab.com/uneeq-oss/cert-manager-mixin/-/raw/master/dashboards/cert-manager.json - tags: - - cert-manager diff --git a/charts/kubezero-cert-manager/jsonnetfile.json b/charts/kubezero-cert-manager/jsonnetfile.json deleted file mode 100644 index 615a6348..00000000 --- a/charts/kubezero-cert-manager/jsonnetfile.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "version": 1, - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/imusmanmalik/cert-manager-mixin.git", - "subdir": "" - } - }, - "version": "main" - }, - { - "source": { - "git": { - "remote": "https://github.com/prometheus-operator/kube-prometheus.git", - "subdir": "jsonnet/kube-prometheus" - } - }, - "version": "main" - } - ], - "legacyImports": true -} diff --git a/charts/kubezero-cert-manager/jsonnetfile.lock.json b/charts/kubezero-cert-manager/jsonnetfile.lock.json deleted file mode 100644 index da77c083..00000000 --- a/charts/kubezero-cert-manager/jsonnetfile.lock.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "version": 1, - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/brancz/kubernetes-grafana.git", - "subdir": "grafana" - } - }, - "version": "5698c8940b6dadca3f42107b7839557bc041761f", - "sum": "l6fPvh3tW6fWot308w71QY/amrYsFPeitvz1IgJxqQA=" - }, - { - "source": { - "git": { - "remote": "https://github.com/etcd-io/etcd.git", - "subdir": "contrib/mixin" - } - }, - "version": "5a53a708d8ab9ef936ac5b8062ffc66c77a2c18f", - "sum": "xuUBd2vqF7asyVDe5CE08uPT/RxAdy8O75EjFJoMXXU=" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafana.git", - "subdir": "grafana-mixin" - } - }, - "version": "1120f9e255760a3c104b57871fcb91801e934382", - "sum": "MkjR7zCgq6MUZgjDzop574tFKoTX2OBr7DTwm1K+Ofs=" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet-lib.git", - "subdir": "grafonnet" - } - }, - "version": "a1d61cce1da59c71409b99b5c7568511fec661ea", - "sum": "342u++/7rViR/zj2jeJOjshzglkZ1SY+hFNuyCBFMdc=" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet-lib.git", - "subdir": "grafonnet-7.0" - } - }, - "version": "a1d61cce1da59c71409b99b5c7568511fec661ea", - "sum": "gCtR9s/4D5fxU9aKXg0Bru+/njZhA0YjLjPiASc61FM=" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet.git", - "subdir": "gen/grafonnet-latest" - } - }, - "version": "6ac1593ca787638da223380ff4a3fd0f96e953e1", - "sum": "GxEO83uxgsDclLp/fmlUJZDbSGpeUZY6Ap3G2cgdL1g=" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet.git", - "subdir": "gen/grafonnet-v10.0.0" - } - }, - "version": "6ac1593ca787638da223380ff4a3fd0f96e953e1", - "sum": "W7sLuAvMSJPkC7Oo31t45Nz/cUdJV7jzNSJTd3F1daM=" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet.git", - "subdir": "gen/grafonnet-v10.4.0" - } - }, - "version": "6ac1593ca787638da223380ff4a3fd0f96e953e1", - "sum": "ZSmDT7i/qU9P8ggmuPuJT+jonq1ZEsBRCXycW/H5L/A=" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/jsonnet-libs.git", - "subdir": "grafana-builder" - } - }, - "version": "7561fd330312538d22b00e0c7caecb4ba66321ea", - "sum": "+z5VY+bPBNqXcmNAV8xbJcbsRA+pro1R3IM7aIY8OlU=" - }, - { - "source": { - "git": { - "remote": "https://github.com/imusmanmalik/cert-manager-mixin.git", - "subdir": "" - } - }, - "version": "72a094ff162bbd93921803994241d73900592c9a", - "sum": "h+YvBTXL5A02165i3yt3SxSAbFftChtXYJ0nYFnOAqo=" - }, - { - "source": { - "git": { - "remote": "https://github.com/jsonnet-libs/docsonnet.git", - "subdir": "doc-util" - } - }, - "version": "6ac6c69685b8c29c54515448eaca583da2d88150", - "sum": "BrAL/k23jq+xy9oA7TWIhUx07dsA/QLm3g7ktCwe//U=" - }, - { - "source": { - "git": { - "remote": "https://github.com/jsonnet-libs/xtd.git", - "subdir": "" - } - }, - "version": "fc2e57a8839902ed4ba6cab5a99d642500f7102b", - "sum": "43waffw1QzvpY4rKcWoo3L7Vpee+DCYexwLDd5cPG0M=" - }, - { - "source": { - "git": { - "remote": "https://github.com/kubernetes-monitoring/kubernetes-mixin.git", - "subdir": "" - } - }, - "version": "a1c276d7a46c4b06fa5d8b4a64441939d398efe5", - "sum": "b/mEai1MvVnZ22YvZlXEO4jWDZledrtJg8eOS1ZUj0M=" - }, - { - "source": { - "git": { - "remote": "https://github.com/kubernetes/kube-state-metrics.git", - "subdir": "jsonnet/kube-state-metrics" - } - }, - "version": "9ba1c3702142918e09e8eb5ca530e15198624259", - "sum": "msMZyUvcebzRILLzNlTIiSOwa1XgQKtP7jbZTkiqwM0=" - }, - { - "source": { - "git": { - "remote": "https://github.com/kubernetes/kube-state-metrics.git", - "subdir": "jsonnet/kube-state-metrics-mixin" - } - }, - "version": "9ba1c3702142918e09e8eb5ca530e15198624259", - "sum": "qclI7LwucTjBef3PkGBkKxF0mfZPbHnn4rlNWKGtR4c=" - }, - { - "source": { - "git": { - "remote": "https://github.com/prometheus-operator/kube-prometheus.git", - "subdir": "jsonnet/kube-prometheus" - } - }, - "version": "76f2e1ef95be0df752037baa040781c5219e1fb3", - "sum": "IgpAgyyBZ7VT2vr9kSYQP/lkZUNQnbqpGh2sYCtUKs0=" - }, - { - "source": { - "git": { - "remote": "https://github.com/prometheus-operator/prometheus-operator.git", - "subdir": "jsonnet/mixin" - } - }, - "version": "71d9433ba612f4b826ffa38520b23a7985b50db3", - "sum": "gi+knjdxs2T715iIQIntrimbHRgHnpM8IFBJDD1gYfs=", - "name": "prometheus-operator-mixin" - }, - { - "source": { - "git": { - "remote": "https://github.com/prometheus-operator/prometheus-operator.git", - "subdir": "jsonnet/prometheus-operator" - } - }, - "version": "71d9433ba612f4b826ffa38520b23a7985b50db3", - "sum": "S4LFa0h1AzANixqGMowtwVswVP+y6f+fXloxpO7hMes=" - }, - { - "source": { - "git": { - "remote": "https://github.com/prometheus/alertmanager.git", - "subdir": "doc/alertmanager-mixin" - } - }, - "version": "14cbe6301c732658d6fe877ec55ad5b738abcf06", - "sum": "IpF46ZXsm+0wJJAPtAre8+yxTNZA57mBqGpBP/r7/kw=", - "name": "alertmanager" - }, - { - "source": { - "git": { - "remote": "https://github.com/prometheus/node_exporter.git", - "subdir": "docs/node-mixin" - } - }, - "version": "3accd4cf8286e69d70516abdced6bf186274322a", - "sum": "vWhHvFqV7+fxrQddTeGVKi1e4EzB3VWtNyD8TjSmevY=" - }, - { - "source": { - "git": { - "remote": "https://github.com/prometheus/prometheus.git", - "subdir": "documentation/prometheus-mixin" - } - }, - "version": "773170f372e0a57949854b74231ee3e09185f728", - "sum": "u/Fpz2MPkezy71/q+c7mF0vc3hE9fWt2W/YbvF0LP/8=", - "name": "prometheus" - }, - { - "source": { - "git": { - "remote": "https://github.com/pyrra-dev/pyrra.git", - "subdir": "config/crd/bases" - } - }, - "version": "551856d42dff02ec38c5b0ea6a2d99c4cb127e82", - "sum": "bY/Pcrrbynguq8/HaI88cQ3B2hLv/xc+76QILY7IL+g=", - "name": "pyrra" - }, - { - "source": { - "git": { - "remote": "https://github.com/thanos-io/thanos.git", - "subdir": "mixin" - } - }, - "version": "93c79b61825ec00889188e35a58635eee247bc36", - "sum": "HhSSbGGCNHCMy1ee5jElYDm0yS9Vesa7QB2/SHKdjsY=", - "name": "thanos-mixin" - } - ], - "legacyImports": false -} diff --git a/charts/kubezero-cert-manager/rules.jsonnet b/charts/kubezero-cert-manager/rules.jsonnet deleted file mode 100644 index e5e93556..00000000 --- a/charts/kubezero-cert-manager/rules.jsonnet +++ /dev/null @@ -1,9 +0,0 @@ -local addMixin = (import 'kube-prometheus/lib/mixin.libsonnet'); - -local certManagerMixin = addMixin({ - name: 'cert-manager', - mixin: (import 'github.com/imusmanmalik/cert-manager-mixin/mixin.libsonnet') - }); - -{ 'cert-manager-mixin-prometheusRule': certManagerMixin.prometheusRules } - diff --git a/charts/kubezero-cert-manager/rules/cert-manager-mixin-prometheusRule b/charts/kubezero-cert-manager/rules/cert-manager-mixin-prometheusRule deleted file mode 100644 index 20d4e776..00000000 --- a/charts/kubezero-cert-manager/rules/cert-manager-mixin-prometheusRule +++ /dev/null @@ -1,80 +0,0 @@ -{ - "apiVersion": "monitoring.coreos.com/v1", - "kind": "PrometheusRule", - "metadata": { - "labels": { - "prometheus": "k8s" - }, - "name": "cert-manager", - "namespace": "monitoring" - }, - "spec": { - "groups": [ - { - "name": "cert-manager", - "rules": [ - { - "alert": "CertManagerAbsent", - "annotations": { - "description": "New certificates will not be able to be minted, and existing ones can't be renewed until cert-manager is back.", - "runbook_url": "https://github.com/imusmanmalik/cert-manager-mixin/blob/main/RUNBOOK.md#certmanagerabsent", - "summary": "Cert Manager has disappeared from Prometheus service discovery." - }, - "expr": "absent(up{job=\"cert-manager\"})", - "for": "10m", - "labels": { - "severity": "critical" - } - } - ] - }, - { - "name": "certificates", - "rules": [ - { - "alert": "CertManagerCertExpirySoon", - "annotations": { - "dashboard_url": "https://grafana.example.com/d/TvuRo2iMk/cert-manager", - "description": "The domain that this cert covers will be unavailable after {{ $value | humanizeDuration }}. Clients using endpoints that this cert protects will start to fail in {{ $value | humanizeDuration }}.", - "runbook_url": "https://github.com/imusmanmalik/cert-manager-mixin/blob/main/RUNBOOK.md#certmanagercertexpirysoon", - "summary": "The cert `{{ $labels.name }}` is {{ $value | humanizeDuration }} from expiry, it should have renewed over a week ago." - }, - "expr": "avg by (exported_namespace, namespace, name) (\n certmanager_certificate_expiration_timestamp_seconds - time()\n) < (21 * 24 * 3600) # 21 days in seconds\n", - "for": "1h", - "labels": { - "severity": "warning" - } - }, - { - "alert": "CertManagerCertNotReady", - "annotations": { - "dashboard_url": "https://grafana.example.com/d/TvuRo2iMk/cert-manager", - "description": "This certificate has not been ready to serve traffic for at least 10m. If the cert is being renewed or there is another valid cert, the ingress controller _may_ be able to serve that instead.", - "runbook_url": "https://github.com/imusmanmalik/cert-manager-mixin/blob/main/RUNBOOK.md#certmanagercertnotready", - "summary": "The cert `{{ $labels.name }}` is not ready to serve traffic." - }, - "expr": "max by (name, exported_namespace, namespace, condition) (\n certmanager_certificate_ready_status{condition!=\"True\"} == 1\n)\n", - "for": "10m", - "labels": { - "severity": "critical" - } - }, - { - "alert": "CertManagerHittingRateLimits", - "annotations": { - "dashboard_url": "https://grafana.example.com/d/TvuRo2iMk/cert-manager", - "description": "Depending on the rate limit, cert-manager may be unable to generate certificates for up to a week.", - "runbook_url": "https://github.com/imusmanmalik/cert-manager-mixin/blob/main/RUNBOOK.md#certmanagerhittingratelimits", - "summary": "Cert manager hitting LetsEncrypt rate limits." - }, - "expr": "sum by (host) (\n rate(certmanager_http_acme_client_request_count{status=\"429\"}[5m])\n) > 0\n", - "for": "5m", - "labels": { - "severity": "critical" - } - } - ] - } - ] - } -} diff --git a/charts/kubezero-cert-manager/templates/cluster-ca.yaml b/charts/kubezero-cert-manager/templates/cluster-ca.yaml deleted file mode 100644 index 01889599..00000000 --- a/charts/kubezero-cert-manager/templates/cluster-ca.yaml +++ /dev/null @@ -1,64 +0,0 @@ -{{- if .Values.localCA.enabled }} -{{- if .Values.localCA.selfsigning }} - -# KubeZero / Local cluster CA -# The resources are serialized via waves in Argo -apiVersion: cert-manager.io/v1 -kind: ClusterIssuer -metadata: - name: kubezero-selfsigning-issuer - namespace: {{ .Release.Namespace }} - labels: -{{ include "kubezero-lib.labels" . | indent 4 }} - annotations: - argocd.argoproj.io/sync-wave: "10" -spec: - selfSigned: {} ---- -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: kubezero-local-ca - namespace: {{ .Release.Namespace }} - labels: -{{ include "kubezero-lib.labels" . | indent 4 }} - annotations: - argocd.argoproj.io/sync-wave: "11" -spec: - secretName: kubezero-ca-tls - commonName: "kubezero-local-ca" - isCA: true - issuerRef: - name: kubezero-selfsigning-issuer - kind: ClusterIssuer - usages: - - "any" ---- - -{{ else }} -apiVersion: v1 -kind: Secret -metadata: - name: kubezero-ca-tls - namespace: {{ .Release.Namespace }} - labels: -{{ include "kubezero-lib.labels" . | indent 4 }} -data: - tls.crt: {{ .Values.localCA.ca.crt | b64enc }} - tls.key: {{ .Values.localCA.ca.key | b64enc }} ---- -{{- end }} - -apiVersion: cert-manager.io/v1 -kind: ClusterIssuer -metadata: - name: kubezero-local-ca-issuer - namespace: {{ .Release.Namespace }} - labels: -{{ include "kubezero-lib.labels" . | indent 4 }} - annotations: - argocd.argoproj.io/sync-wave: "12" -spec: - ca: - secretName: kubezero-ca-tls -{{- end }} diff --git a/charts/kubezero-cert-manager/templates/cluster-issuer.yaml b/charts/kubezero-cert-manager/templates/cluster-issuer.yaml deleted file mode 100644 index f7280fc4..00000000 --- a/charts/kubezero-cert-manager/templates/cluster-issuer.yaml +++ /dev/null @@ -1,16 +0,0 @@ -{{- if .Values.clusterIssuer.name }} -apiVersion: cert-manager.io/v1 -kind: ClusterIssuer -metadata: - name: {{ .Values.clusterIssuer.name }} - labels: -{{ include "kubezero-lib.labels" . | indent 4 }} -spec: - acme: - server: {{ .Values.clusterIssuer.server }} - email: {{ .Values.clusterIssuer.email }} - privateKeySecretRef: - name: {{ .Values.clusterIssuer.name }} - solvers: -{{ toYaml .Values.clusterIssuer.solvers | indent 6 }} -{{- end }} diff --git a/charts/kubezero-cert-manager/templates/grafana-dashboards.yaml b/charts/kubezero-cert-manager/templates/grafana-dashboards.yaml deleted file mode 100644 index 45cfc655..00000000 --- a/charts/kubezero-cert-manager/templates/grafana-dashboards.yaml +++ /dev/null @@ -1,15 +0,0 @@ -{{- if index .Values "cert-manager" "prometheus" "servicemonitor" "enabled" }} -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ printf "%s-%s" (include "kubezero-lib.fullname" $) "grafana-dashboard" | trunc 63 | trimSuffix "-" }} - namespace: {{ .Release.Namespace }} - labels: - grafana_dashboard: "1" - {{- include "kubezero-lib.labels" . | nindent 4 }} - annotations: - k8s-sidecar-target-directory: KubeZero -binaryData: - cert-manager.json.gz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-rules.yaml b/charts/kubezero-cert-manager/templates/prometheus-rules.yaml deleted file mode 100644 index 745cc57d..00000000 --- a/charts/kubezero-cert-manager/templates/prometheus-rules.yaml +++ /dev/null @@ -1,55 +0,0 @@ -{{- if index .Values "cert-manager" "prometheus" "servicemonitor" "enabled" }} -apiVersion: monitoring.coreos.com/v1 -kind: PrometheusRule -metadata: - name: {{ printf "%s-%s" (include "kubezero-lib.fullname" $) "prometheus-rules" | trunc 63 | trimSuffix "-" }} - namespace: {{ .Release.Namespace }} - labels: - {{- include "kubezero-lib.labels" . | nindent 4 }} -spec: - groups: - - name: cert-manager - rules: - - alert: CertManagerAbsent - annotations: - description: New certificates will not be able to be minted, and existing ones can't be renewed until cert-manager is back. - runbook_url: https://github.com/imusmanmalik/cert-manager-mixin/blob/main/RUNBOOK.md#certmanagerabsent - summary: Cert Manager has disappeared from Prometheus service discovery. - expr: absent(up{job="cert-manager"}) - for: 10m - labels: - severity: critical - - name: certificates - rules: - - alert: CertManagerCertExpirySoon - annotations: - dashboard_url: https://grafana.example.com/d/TvuRo2iMk/cert-manager - description: The domain that this cert covers will be unavailable after {{`{{`}} $value | humanizeDuration {{`}}`}}. Clients using endpoints that this cert protects will start to fail in {{`{{`}} $value | humanizeDuration {{`}}`}}. - runbook_url: https://github.com/imusmanmalik/cert-manager-mixin/blob/main/RUNBOOK.md#certmanagercertexpirysoon - summary: The cert `{{`{{`}} $labels.name {{`}}`}}` is {{`{{`}} $value | humanizeDuration {{`}}`}} from expiry, it should have renewed over a week ago. - expr: "avg by (exported_namespace, namespace, name) (\n certmanager_certificate_expiration_timestamp_seconds - time()\n) < (21 * 24 * 3600) # 21 days in seconds\n" - for: 1h - labels: - severity: warning - - alert: CertManagerCertNotReady - annotations: - dashboard_url: https://grafana.example.com/d/TvuRo2iMk/cert-manager - description: This certificate has not been ready to serve traffic for at least 10m. If the cert is being renewed or there is another valid cert, the ingress controller _may_ be able to serve that instead. - runbook_url: https://github.com/imusmanmalik/cert-manager-mixin/blob/main/RUNBOOK.md#certmanagercertnotready - summary: The cert `{{`{{`}} $labels.name {{`}}`}}` is not ready to serve traffic. - expr: "max by (name, exported_namespace, namespace, condition) (\n certmanager_certificate_ready_status{condition!=\"True\"} == 1\n)\n" - for: 10m - labels: - severity: critical - - alert: CertManagerHittingRateLimits - annotations: - dashboard_url: https://grafana.example.com/d/TvuRo2iMk/cert-manager - description: Depending on the rate limit, cert-manager may be unable to generate certificates for up to a week. - runbook_url: https://github.com/imusmanmalik/cert-manager-mixin/blob/main/RUNBOOK.md#certmanagerhittingratelimits - summary: Cert manager hitting LetsEncrypt rate limits. - expr: "sum by (host) (\n rate(certmanager_http_acme_client_request_count{status=\"429\"}[5m])\n) > 0\n" - for: 5m - labels: - severity: critical - -{{- end }} diff --git a/charts/kubezero-cert-manager/update.sh b/charts/kubezero-cert-manager/update.sh deleted file mode 100755 index 109827b6..00000000 --- a/charts/kubezero-cert-manager/update.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -set -ex - -. ../../scripts/lib-update.sh - -update_helm - -update_jsonnet - -# Install cert-mamanger mixin -jb install github.com/imusmanmalik/cert-manager-mixin@main - -# Install rules -rm -rf rules && mkdir -p rules -jsonnet -J vendor -m rules rules.jsonnet -../kubezero-metrics/sync_prometheus_rules.py cert-manager-rules.yaml templates - -# Fetch dashboards from Grafana.com and update ZDT CM -../kubezero-metrics/sync_grafana_dashboards.py dashboards.yaml templates/grafana-dashboards.yaml - -update_docs diff --git a/charts/kubezero-cert-manager/values.yaml b/charts/kubezero-cert-manager/values.yaml deleted file mode 100644 index e35137ee..00000000 --- a/charts/kubezero-cert-manager/values.yaml +++ /dev/null @@ -1,97 +0,0 @@ -clusterIssuer: {} -# name: letsencrypt-dns-prod -# server: https://acme-v02.api.letsencrypt.org/directory -# email: admin@example.com -# solvers: -# - dns01: -# route53: -# region: us-west-2 -# hostedZoneID: 1234567890 - -localCA: - enabled: false - # If selfsigning is false you must provide the ca key and crt below - selfsigning: true - #ca: - # key: - # crt: - -cert-manager: - enabled: true - - global: - leaderElection: - namespace: "cert-manager" - - # remove secrets if the cert is deleted - enableCertificateOwnerRef: true - - extraArgs: - - "--logging-format=json" - - "--leader-elect=false" - - "--dns01-recursive-nameservers-only" - # When this flag is enabled, secrets will be automatically removed when the certificate resource is deleted - # - --enable-certificate-owner-ref=true - - #enableCertificateOwnerRef: true - - # On AWS enable Projected Service Accounts to assume IAM role - #extraEnv: - #- name: AWS_ROLE_ARN - # value: "" - #- name: AWS_WEB_IDENTITY_TOKEN_FILE - # value: "/var/run/secrets/sts.amazonaws.com/serviceaccount/token" - #- name: AWS_STS_REGIONAL_ENDPOINTS - # value: regional - - #volumes: - #- name: aws-token - # projected: - # sources: - # - serviceAccountToken: - # path: token - # expirationSeconds: 86400 - # audience: "sts.amazonaws.com" - - #volumeMounts: - #- name: aws-token - # mountPath: "/var/run/secrets/sts.amazonaws.com/serviceaccount/" - # readOnly: true - - tolerations: - - key: node-role.kubernetes.io/control-plane - effect: NoSchedule - nodeSelector: - node-role.kubernetes.io/control-plane: "" - - ingressShim: - defaultIssuerName: letsencrypt-dns-prod - defaultIssuerKind: ClusterIssuer - - webhook: - tolerations: - - key: node-role.kubernetes.io/control-plane - effect: NoSchedule - nodeSelector: - node-role.kubernetes.io/control-plane: "" - extraArgs: - - "--logging-format=json" - - cainjector: - tolerations: - - key: node-role.kubernetes.io/control-plane - effect: NoSchedule - nodeSelector: - node-role.kubernetes.io/control-plane: "" - extraArgs: - - "--logging-format=json" - - "--leader-elect=false" - - prometheus: - servicemonitor: - enabled: false - - # cert-manager.podAnnotations -- "iam.amazonaws.com/roleIAM:" role ARN the cert-manager might use via kiam eg."arn:aws:iam::123456789012:role/certManagerRoleArn" - - startupapicheck: - enabled: false diff --git a/charts/kubezero-ci/Chart.yaml b/charts/kubezero-ci/Chart.yaml deleted file mode 100644 index 1dabd282..00000000 --- a/charts/kubezero-ci/Chart.yaml +++ /dev/null @@ -1,36 +0,0 @@ -apiVersion: v2 -name: kubezero-ci -description: KubeZero umbrella chart for all things CI -type: application -version: 0.8.11 -home: https://kubezero.com -icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png -keywords: - - kubezero - - jenkins - - gitea - - renovate -maintainers: - - name: Stefan Reimer - email: stefan@zero-downtime.net -dependencies: - - name: kubezero-lib - version: ">= 0.1.6" - repository: https://cdn.zero-downtime.net/charts/ - - name: gitea - version: 10.1.4 - repository: https://dl.gitea.io/charts/ - condition: gitea.enabled - - name: jenkins - version: 5.1.18 - repository: https://charts.jenkins.io - condition: jenkins.enabled - - name: trivy - version: 0.7.0 - repository: https://aquasecurity.github.io/helm-charts/ - condition: trivy.enabled - - name: renovate - version: 37.368.2 - repository: https://docs.renovatebot.com/helm-charts - condition: renovate.enabled -kubeVersion: ">= 1.25.0" diff --git a/charts/kubezero-ci/README.md b/charts/kubezero-ci/README.md deleted file mode 100644 index 3754925d..00000000 --- a/charts/kubezero-ci/README.md +++ /dev/null @@ -1,165 +0,0 @@ -# kubezero-ci - -![Version: 0.8.10](https://img.shields.io/badge/Version-0.8.10-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) - -KubeZero umbrella chart for all things CI - -**Homepage:** - -## Maintainers - -| Name | Email | Url | -| ---- | ------ | --- | -| Stefan Reimer | | | - -## Requirements - -Kubernetes: `>= 1.25.0` - -| Repository | Name | Version | -|------------|------|---------| -| https://aquasecurity.github.io/helm-charts/ | trivy | 0.7.0 | -| https://cdn.zero-downtime.net/charts/ | kubezero-lib | >= 0.1.6 | -| https://charts.jenkins.io | jenkins | 5.1.6 | -| https://dl.gitea.io/charts/ | gitea | 10.1.4 | -| https://docs.renovatebot.com/helm-charts | renovate | 37.321.1 | - -# Jenkins -- default build retention 10 builds, 32days -- memory request 1.25GB -- dark theme -- trivy scanner incl. HTML reporting and publisher - -# goCD - -# Gitea - -# Verdaccio - -## Authentication sealed-secret -```htpasswd -n -b -B -C 4 | kubeseal --raw --namespace verdaccio --name verdaccio-htpasswd``` - -## Resources - -### JVM tuning in containers -- https://developers.redhat.com/blog/2017/04/04/openjdk-and-containers?extIdCarryOver=true&sc_cid=701f2000001Css5AAC - -## Values - -| Key | Type | Default | Description | -|-----|------|---------|-------------| -| gitea.checkDeprecation | bool | `false` | | -| gitea.enabled | bool | `false` | | -| gitea.extraVolumeMounts[0].mountPath | string | `"/data/gitea/public/assets/css"` | | -| gitea.extraVolumeMounts[0].name | string | `"gitea-themes"` | | -| gitea.extraVolumeMounts[0].readOnly | bool | `true` | | -| gitea.extraVolumes[0].configMap.name | string | `"gitea-kubezero-ci-themes"` | | -| gitea.extraVolumes[0].name | string | `"gitea-themes"` | | -| gitea.gitea.admin.existingSecret | string | `"gitea-admin-secret"` | | -| gitea.gitea.config.cache.ADAPTER | string | `"memory"` | | -| gitea.gitea.config.database.DB_TYPE | string | `"sqlite3"` | | -| gitea.gitea.config.log.LEVEL | string | `"warn"` | | -| gitea.gitea.config.queue.TYPE | string | `"level"` | | -| gitea.gitea.config.session.PROVIDER | string | `"memory"` | | -| gitea.gitea.config.ui.DEFAULT_THEME | string | `"github-dark"` | | -| gitea.gitea.config.ui.THEMES | string | `"gitea,github-dark"` | | -| gitea.gitea.demo | bool | `false` | | -| gitea.gitea.metrics.enabled | bool | `false` | | -| gitea.gitea.metrics.serviceMonitor.enabled | bool | `true` | | -| gitea.image.rootless | bool | `true` | | -| gitea.image.tag | string | `"1.21.11"` | | -| gitea.istio.enabled | bool | `false` | | -| gitea.istio.gateway | string | `"istio-ingress/private-ingressgateway"` | | -| gitea.istio.url | string | `"git.example.com"` | | -| gitea.persistence.create | bool | `false` | | -| gitea.persistence.enabled | bool | `true` | | -| gitea.persistence.mount | bool | `true` | | -| gitea.persistence.size | string | `"4Gi"` | | -| gitea.postgresql-ha.enabled | bool | `false` | | -| gitea.postgresql.enabled | bool | `false` | | -| gitea.redis-cluster.enabled | bool | `false` | | -| gitea.repliaCount | int | `1` | | -| gitea.resources.limits.memory | string | `"2048Mi"` | | -| gitea.resources.requests.cpu | string | `"150m"` | | -| gitea.resources.requests.memory | string | `"320Mi"` | | -| gitea.securityContext.allowPrivilegeEscalation | bool | `false` | | -| gitea.securityContext.capabilities.add[0] | string | `"SYS_CHROOT"` | | -| gitea.securityContext.capabilities.drop[0] | string | `"ALL"` | | -| gitea.strategy.type | string | `"Recreate"` | | -| gitea.test.enabled | bool | `false` | | -| jenkins.agent.annotations."container.apparmor.security.beta.kubernetes.io/jnlp" | string | `"unconfined"` | | -| jenkins.agent.containerCap | int | `2` | | -| jenkins.agent.customJenkinsLabels[0] | string | `"podman-aws-trivy"` | | -| jenkins.agent.idleMinutes | int | `30` | | -| jenkins.agent.image.repository | string | `"public.ecr.aws/zero-downtime/jenkins-podman"` | | -| jenkins.agent.image.tag | string | `"v0.5.0"` | | -| jenkins.agent.podName | string | `"podman-aws"` | | -| jenkins.agent.podRetention | string | `"Default"` | | -| jenkins.agent.resources.limits.cpu | string | `""` | | -| jenkins.agent.resources.limits.memory | string | `""` | | -| jenkins.agent.resources.requests.cpu | string | `""` | | -| jenkins.agent.resources.requests.memory | string | `""` | | -| jenkins.agent.serviceAccount | string | `"jenkins-podman-aws"` | | -| jenkins.agent.showRawYaml | bool | `false` | | -| jenkins.agent.yamlMergeStrategy | string | `"merge"` | | -| jenkins.agent.yamlTemplate | string | `"apiVersion: v1\nkind: Pod\nspec:\n securityContext:\n fsGroup: 1000\n containers:\n - name: jnlp\n resources:\n requests:\n cpu: \"512m\"\n memory: \"1024Mi\"\n limits:\n cpu: \"4\"\n memory: \"6144Mi\"\n github.com/fuse: 1\n volumeMounts:\n - name: aws-token\n mountPath: \"/var/run/secrets/sts.amazonaws.com/serviceaccount/\"\n readOnly: true\n - name: host-registries-conf\n mountPath: \"/home/jenkins/.config/containers/registries.conf\"\n readOnly: true\n volumes:\n - name: aws-token\n projected:\n sources:\n - serviceAccountToken:\n path: token\n expirationSeconds: 86400\n audience: \"sts.amazonaws.com\"\n - name: host-registries-conf\n hostPath:\n path: /etc/containers/registries.conf\n type: File"` | | -| jenkins.controller.JCasC.configScripts.zdt-settings | string | `"jenkins:\n noUsageStatistics: true\n disabledAdministrativeMonitors:\n - \"jenkins.security.ResourceDomainRecommendation\"\nappearance:\n themeManager:\n disableUserThemes: true\n theme: \"dark\"\nunclassified:\n openTelemetry:\n configurationProperties: |-\n otel.exporter.otlp.protocol=grpc\n otel.instrumentation.jenkins.web.enabled=false\n ignoredSteps: \"dir,echo,isUnix,pwd,properties\"\n #endpoint: \"telemetry-jaeger-collector.telemetry:4317\"\n exportOtelConfigurationAsEnvironmentVariables: false\n #observabilityBackends:\n # - jaeger:\n # jaegerBaseUrl: \"https://jaeger.example.com\"\n # name: \"KubeZero Jaeger\"\n serviceName: \"Jenkins\"\n buildDiscarders:\n configuredBuildDiscarders:\n - \"jobBuildDiscarder\"\n - defaultBuildDiscarder:\n discarder:\n logRotator:\n artifactDaysToKeepStr: \"32\"\n artifactNumToKeepStr: \"10\"\n daysToKeepStr: \"100\"\n numToKeepStr: \"10\"\n"` | | -| jenkins.controller.containerEnv[0].name | string | `"OTEL_LOGS_EXPORTER"` | | -| jenkins.controller.containerEnv[0].value | string | `"none"` | | -| jenkins.controller.containerEnv[1].name | string | `"OTEL_METRICS_EXPORTER"` | | -| jenkins.controller.containerEnv[1].value | string | `"none"` | | -| jenkins.controller.disableRememberMe | bool | `true` | | -| jenkins.controller.enableRawHtmlMarkupFormatter | bool | `true` | | -| jenkins.controller.image.tag | string | `"alpine-jdk17"` | | -| jenkins.controller.initContainerResources.limits.memory | string | `"1024Mi"` | | -| jenkins.controller.initContainerResources.requests.cpu | string | `"50m"` | | -| jenkins.controller.initContainerResources.requests.memory | string | `"256Mi"` | | -| jenkins.controller.installPlugins[0] | string | `"kubernetes"` | | -| jenkins.controller.installPlugins[10] | string | `"htmlpublisher"` | | -| jenkins.controller.installPlugins[11] | string | `"build-discarder"` | | -| jenkins.controller.installPlugins[12] | string | `"dark-theme"` | | -| jenkins.controller.installPlugins[13] | string | `"matrix-auth"` | | -| jenkins.controller.installPlugins[14] | string | `"reverse-proxy-auth-plugin"` | | -| jenkins.controller.installPlugins[15] | string | `"opentelemetry"` | | -| jenkins.controller.installPlugins[1] | string | `"kubernetes-credentials-provider"` | | -| jenkins.controller.installPlugins[2] | string | `"workflow-aggregator"` | | -| jenkins.controller.installPlugins[3] | string | `"git"` | | -| jenkins.controller.installPlugins[4] | string | `"basic-branch-build-strategies"` | | -| jenkins.controller.installPlugins[5] | string | `"pipeline-graph-view"` | | -| jenkins.controller.installPlugins[6] | string | `"pipeline-stage-view"` | | -| jenkins.controller.installPlugins[7] | string | `"configuration-as-code"` | | -| jenkins.controller.installPlugins[8] | string | `"antisamy-markup-formatter"` | | -| jenkins.controller.installPlugins[9] | string | `"prometheus"` | | -| jenkins.controller.javaOpts | string | `"-XX:+UseContainerSupport -XX:+UseStringDeduplication -Dhudson.model.DirectoryBrowserSupport.CSP=\"sandbox allow-popups; default-src 'none'; img-src 'self' cdn.zero-downtime.net; style-src 'unsafe-inline';\""` | | -| jenkins.controller.jenkinsOpts | string | `"--sessionTimeout=300 --sessionEviction=10800"` | | -| jenkins.controller.prometheus.enabled | bool | `false` | | -| jenkins.controller.resources.limits.memory | string | `"4096Mi"` | | -| jenkins.controller.resources.requests.cpu | string | `"250m"` | | -| jenkins.controller.resources.requests.memory | string | `"1280Mi"` | | -| jenkins.controller.testEnabled | bool | `false` | | -| jenkins.enabled | bool | `false` | | -| jenkins.istio.agent.enabled | bool | `false` | | -| jenkins.istio.agent.gateway | string | `"istio-ingress/private-ingressgateway"` | | -| jenkins.istio.agent.url | string | `"jenkins-agent.example.com"` | | -| jenkins.istio.enabled | bool | `false` | | -| jenkins.istio.gateway | string | `"istio-ingress/private-ingressgateway"` | | -| jenkins.istio.url | string | `"jenkins.example.com"` | | -| jenkins.istio.webhook.enabled | bool | `false` | | -| jenkins.istio.webhook.gateway | string | `"istio-ingress/ingressgateway"` | | -| jenkins.istio.webhook.url | string | `"jenkins-webhook.example.com"` | | -| jenkins.persistence.size | string | `"4Gi"` | | -| jenkins.rbac.readSecrets | bool | `true` | | -| jenkins.serviceAccountAgent.create | bool | `true` | | -| jenkins.serviceAccountAgent.name | string | `"jenkins-podman-aws"` | | -| renovate.cronjob.concurrencyPolicy | string | `"Forbid"` | | -| renovate.cronjob.jobBackoffLimit | int | `3` | | -| renovate.cronjob.schedule | string | `"0 3 * * *"` | | -| renovate.cronjob.successfulJobsHistoryLimit | int | `1` | | -| renovate.enabled | bool | `false` | | -| renovate.env.LOG_FORMAT | string | `"json"` | | -| renovate.securityContext.fsGroup | int | `1000` | | -| trivy.enabled | bool | `false` | | -| trivy.image.tag | string | `"0.50.1"` | | -| trivy.persistence.enabled | bool | `true` | | -| trivy.persistence.size | string | `"1Gi"` | | -| trivy.rbac.create | bool | `false` | | diff --git a/charts/kubezero-ci/README.md.gotmpl b/charts/kubezero-ci/README.md.gotmpl deleted file mode 100644 index 5b389823..00000000 --- a/charts/kubezero-ci/README.md.gotmpl +++ /dev/null @@ -1,36 +0,0 @@ -{{ template "chart.header" . }} -{{ template "chart.deprecationWarning" . }} - -{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }} - -{{ template "chart.description" . }} - -{{ template "chart.homepageLine" . }} - -{{ template "chart.maintainersSection" . }} - -{{ template "chart.sourcesSection" . }} - -{{ template "chart.requirementsSection" . }} - -# Jenkins -- default build retention 10 builds, 32days -- memory request 1.25GB -- dark theme -- trivy scanner incl. HTML reporting and publisher - -# goCD - -# Gitea - -# Verdaccio - -## Authentication sealed-secret -```htpasswd -n -b -B -C 4 | kubeseal --raw --namespace verdaccio --name verdaccio-htpasswd``` - -## Resources - -### JVM tuning in containers -- https://developers.redhat.com/blog/2017/04/04/openjdk-and-containers?extIdCarryOver=true&sc_cid=701f2000001Css5AAC - -{{ template "chart.valuesSection" . }} diff --git a/charts/kubezero-ci/dashboard-gitea.yaml b/charts/kubezero-ci/dashboard-gitea.yaml deleted file mode 100644 index 41ad30b7..00000000 --- a/charts/kubezero-ci/dashboard-gitea.yaml +++ /dev/null @@ -1,9 +0,0 @@ -configmap: grafana-dashboards -gzip: true -condition: '.Values.gitea.gitea.metrics.enabled' -folder: KubeZero -dashboards: -- name: Gitea - url: https://grafana.com/api/dashboards/13192/revisions/1/download - tags: - - CI diff --git a/charts/kubezero-ci/dashboard-jenkins.yaml b/charts/kubezero-ci/dashboard-jenkins.yaml deleted file mode 100644 index b395f9c4..00000000 --- a/charts/kubezero-ci/dashboard-jenkins.yaml +++ /dev/null @@ -1,9 +0,0 @@ -configmap: grafana-dashboards -gzip: true -condition: '.Values.jenkins.controller.prometheus.enabled' -folder: KubeZero -dashboards: -- name: Jenkins - url: https://grafana.com/api/dashboards/9964/revisions/1/download - tags: - - CI diff --git a/charts/kubezero-ci/files/gitea/themes/theme-github-dark.css b/charts/kubezero-ci/files/gitea/themes/theme-github-dark.css deleted file mode 100644 index 900c8363..00000000 --- a/charts/kubezero-ci/files/gitea/themes/theme-github-dark.css +++ /dev/null @@ -1,1034 +0,0 @@ -:root { - --color-primary: #347d39; - --color-secondary: #373e47; - --border-radius: 6px; - --color-body: #0d1117; - --color-navbar: #161b22; - --color-footer: #161b22; - --color-text-light: #a6aab5; - --color-text-light-2: #adbac7; - --color-grey-light: var(--color-text-light); - --color-text: #bbc0ca; - --color-box-body: #22272e; - --color-markup-code-block: #636e7b66; - --color-light: #22272e; - --color-button: #22272e; - --color-input-background: #22272e; - --color-input-border-hover: #8e8c8c; - --color-input-text: #adbac7; - --color-box-header: #22272e; - --color-active: #22272e; - --color-menu: #22272e; - --color-caret: var(--color-text); - --is-dark-theme: true; - --color-blue: #4796f9; - --color-input-background: #22272e; - --color-primary-contrast: #adbac7; - --color-text-light-2: #a6aab5; - --color-box-body: #161b22; - --color-box-header: #161b22; - --color-green-light: #16ab39; - --color-nav-bg: #161b22; - --color-header-wrapper: #161b22; - --color-nav-hover-bg: #808080; - - /* code editor colors are set in https://github.com/go-gitea/gitea/blob/f5b300ea77081a1b78ac044cb1c0f9225538d091/web_src/js/features/codeeditor.js#L82-L97. */ - /* monaco editor dark theme is toggled via variable `--is-dark-theme` */ - --color-primary-light-3: #71798e; - --color-editor-line-highlight: #71798e; - --color-code-bg: var(--color-input-background); -} - -.ui.list .list > .item > .content, -.ui.list > .item > .content { - color: unset; -} - -.ui.list .list > .item .description, -.ui.list > .item .description { - color: var(--color-text); -} - -.ui.repository.list, -.ui.user.list { - background: var(--color-box-body); - padding: 1em; - border-radius: 0.75em; -} - -.ui.header .sub.header { - color: #636e7b; -} - -.ui .error.header { - border-color: var(--color-red) !important; - background-color: var(--color-red) !important; - color: #cdd9e5fff !important; -} - -.ui.modal > .header { - background: var(--color-secondary); - color: #dbdbdb; -} - -.ui.modal > .actions { - background: var(--color-secondary); - border-color: var(--color-secondary); -} - -.ui.modal > .content { - background: #383c4a; -} - -.ui.green.buttons .button, -.ui.green.button { - background-color: #347d39; - color: #cdd9e5 !important; - border-radius: 2em; - padding: 5px 10px; -} - -.repository.file.list #repo-files-table tbody .svg.octicon-file-directory, -.repository.file.list #repo-files-table tbody .svg.octicon-file-submodule { - color: #768390; -} - -a, -.ui.breadcrumb a { - /* color: var(--color-text); */ - color: var(--color-blue); -} - -.repo-title a { - color: var(--color-blue) !important; -} - -.ui.table > thead > tr > th { - background: #636e7b1a; - color: #dbdbdb !important; -} - -.repository.file.list #repo-files-table tr { - background: #22272e; -} - -.repo-icon { - display: inline-block; - transform: scale(0.75); - margin-right: -0.05rem !important; -} - -.repository.file.list #file-buttons .ui.button { - color: #cdd9e5 !important; -} - -.ui.basic.green.button, -.ui.basic.green.buttons .button, -.ui.basic.primary.button, -.ui.basic.primary.buttons .button { - background-color: #22272e !important; - box-shadow: inset 0 0 0 1px rgba(34, 36, 38, 0.15) !important; - color: #cdd9e5 !important; -} - -.ui.basic.green.button:focus, -.ui.basic.green.buttons .button:focus, -.ui.basic.primary.button:focus, -.ui.basic.primary.buttons .button:focus { - box-shadow: inset 0 0 0 0px #808080 !important; -} - -.ui.basic.green.button:hover, -.ui.basic.green.buttons .button:hover, -.ui.basic.primary.button:hover, -.ui.basic.primary.buttons .button:hover { - background-color: #22272e !important; -} - -.ui.basic.green.button:hover, -.ui.basic.green.buttons .button:hover, -.ui.basic.primary.button:hover, -.ui.basic.primary.buttons .button:hover { - box-shadow: inset 0 0 0 0px #808080 !important; -} - -.issue.list { - list-style: none; - margin-top: 1rem; - background-color: #22272e; - border-radius: 6px; - padding: 3px 10px 3px 10px; - border: 1px solid #373e47; -} - -.ui.menu .item { - background-color: #22272e; -} - -.ui.horizontal.segments > .segment { - background-color: #22272e; - border-radius: 6px; -} - -.ui.attached.header { - border-radius: 6px; -} - -.repository.file.list .repo-description { - color: #adbac7; -} - -.commit-summary a.default-link { - color: #adbac7 !important; -} - -.markup h1, -.markup h2, -.markup h3, -.markup h4, -.markup h5, -.markup h6 { - color: #adbac7; -} - -.markup code, -.markup tt { - color: #adbac7; -} - -.markup p, -.markup blockquote, -.markup details, -.markup ul, -.markup ol, -.markup dl, -.markup table, -.markup pre { - color: #adbac7; -} - -.repo-list-link { - color: var(--color-blue) !important; -} - -.ui.menu.two.item .item { - border: 1px solid #373e47; - background: #161b22; -} - -a, -.push.news { - color: null; -} - -.ui.header { - color: #a6aab5; -} - -.repo-description { - color: #a6aab5 !important; -} - -a.ui.label { - color: #adbac7 !important; - border-color: var(--color-secondary) !important; -} - -.ui.label { - border-color: var(--color-secondary) !important; -} - -.ui.menu .item { - color: #adbac7; -} - -.ui .sha.label { - padding: 6px 10px 6px; -} - -/* repo list dashboard */ -.feeds .list ul li.private { - background-color: #22272e; -} - -/* ssh and search repository fields */ -input, -textarea, -.ui.input > input, -.ui.form input:not([type]), -.ui.form select, -.ui.form textarea, -.ui.form input[type="date"], -.ui.form input[type="datetime-local"], -.ui.form input[type="email"], -.ui.form input[type="file"], -.ui.form input[type="number"], -.ui.form input[type="password"], -.ui.form input[type="search"], -.ui.form input[type="tel"], -.ui.form input[type="text"], -.ui.form input[type="time"], -.ui.form input[type="url"], -.ui.selection.dropdown, -.ui.checkbox label:before, -.ui.checkbox input:checked ~ label:before, -.ui.checkbox input:not([type="radio"]):indeterminate ~ label:before { - border-color: #373e47 !important; -} - -/* hover repository rows */ -.repository.file.list #repo-files-table tr:hover { - background-color: var(--color-hover); -} - -/* due date boxes */ -.repository .metas #deadlineForm input { - border-color: var(--color-secondary); -} - -/* border color dependencies block in issues */ -#new-dependency-drop-list.ui.selection.dropdown { - border-color: var(--color-secondary); -} - -.page-content .ui.button { - border-color: var(--color-secondary); -} - -/* border color form fields settings page */ -input, -textarea, -.ui.input > input, -.ui.form input:not([type]), -.ui.form select, -.ui.form textarea, -.ui.form input[type="date"], -.ui.form input[type="datetime-local"], -.ui.form input[type="email"], -.ui.form input[type="file"], -.ui.form input[type="number"], -.ui.form input[type="password"], -.ui.form input[type="search"], -.ui.form input[type="tel"], -.ui.form input[type="text"], -.ui.form input[type="time"], -.ui.form input[type="url"], -.ui.selection.dropdown, -.ui.checkbox label:before, -.ui.checkbox input:checked ~ label:before, -.ui.checkbox input:not([type="radio"]):indeterminate ~ label:before { - border-color: var(--color-secondary); -} - -/* background color of code display */ -.lines-code { - background-color: #22272e; -} - -.code-diff-unified .add-code, -.code-diff-unified .add-code td, -.code-diff-split .add-code .lines-num-new, -.code-diff-split .add-code .lines-type-marker-new, -.code-diff-split .add-code .lines-code-new, -.code-diff-split .del-code .add-code.lines-num-new, -.code-diff-split .del-code .add-code.lines-type-marker-new, -.code-diff-split .del-code .add-code.lines-code-new { - background: rgba(70, 149, 74, 0.15); -} - -.tag-code, -.tag-code td { - background-color: var(--color-body); -} - -/* green code color dark theme */ -.chroma .s2 { - color: #8ddb8c; -} - -.chroma .k { - color: #f47067; -} - -.chroma .m { - color: #6cb6ff; -} - -.chroma .nf { - color: #96d0ff; -} - -.chroma .nb { - color: var(--color-blue); -} - -.chroma .nx { - color: var(--color-text); -} - -.chroma .nv { - color: #08dddd; -} - -.chroma .si { - color: #8ddb8c; -} - -.chroma .nt { - color: #50eb75; -} - -.chroma .nd { - color: #c4cfcf; -} - -.chroma .o { - color: #eb3243; -} - -.chroma .nc { - color: #16e9e9; -} - -.chroma .nn { - color: #16e9e9; -} - -.chroma .s { - color: #8ddb8c; -} - -/* border color repo files */ -.repository.file.list #repo-files-table td { - // border-bottom: 1px solid #373e47; -} - -/* text color repo files */ -.repository.file.list #repo-files-table td { - color: var(--color-text-light) !important; - background: #161b22; -} - -.repository.file.list #repo-files-table td a { - /* color: #7f8699 !important; */ - color: var(--color-blue) !important; -} - -/* gpg commit label */ -.repository #commits-table td.sha .sha.label.isSigned.isVerified, -.repository #repo-files-table .sha.label.isSigned.isVerified, -.repository #rev-list .sha.label.isSigned.isVerified, -.repository - .timeline-item.commits-list - .singular-commit - .sha.label.isSigned.isVerified { - border: 1.5px solid #21ba45 !important; - background: transparent; - border-radius: 6px; -} - -/* color of active tabular item, e.g. in PR view (conversations, commits, files changed) */ -.ui.tabular.menu .active.item, -.ui.tabular.menu .active.item:hover { - background: var(--color-navbar); - border-bottom: 3px solid #f78166 !important; - border: 0px solid black; - color: #adbac7; -} - -/* repo watch and fork counters */ -.ui.basic.labels:not(.tag):not(.image):not(.ribbon) .label, -.ui.basic.label:not(.tag):not(.image):not(.ribbon) { - color: #adbac7; -} - -.repo-buttons .ui.labeled.button.disabled > .label { - color: #adbac7; -} - -/* border color of warning message */ -.ui.warning.message { - background-color: #22272e; - color: var(--color-text); -} - -.ui.warning.message, -.ui.attached.warning.message { - box-shadow: null; -} - -.ui.warning.message, -.ui.attached.warning.message { - box-shadow: 0 0 0 0px #c9ba9b inset, 0 0 #0000; -} - -/* repo svg icons */ -.repository.view.issue .comment-list .timeline-item .badge .svg { - fill: #cdd9e5fff !important; -} - -/* background emoji reactions */ -.repository .segment.reactions .ui.label.basic.blue { - background-color: transparent; -} - -.ui.positive.message { - background-color: #22272e; - color: #cdd9e5; -} - -.ui.positive.message, -.ui.attached.positive.message { - box-shadow: 0 0 0 1px #347d39 inset, 0 0 #0000; -} - -/* diff color deletion */ -.code-diff-unified .del-code, -.code-diff-unified .del-code td, -.code-diff-split .del-code .lines-num-old, -.code-diff-split .del-code .lines-type-marker-old, -.code-diff-split .del-code .lines-code-old { - background: rgba(229, 83, 75, 0.15); -} - -/* diff color neutral */ -.lines-num, -.lines-code { - background-color: var(--color-navbar); -} - -.lines-type-marker { - background-color: var(--color-navbar); -} - -a.blob-excerpt { - background: var(--color-body); -} - -/* PR open label */ -.ui.green.labels .label, -.ui.ui.ui.green.label { - background-color: #347d39; -} - -/* bg color of PR comment form */ -.ui.form, -.ui.form .field .dropdown, -.ui.form .field .dropdown .menu > .item { - background-color: var(--color-navbar); -} - -.comment-code-cloud { - background-color: var(--color-navbar); -} - -/* remove border of "new file" button */ -.ui.buttons .button:first-child { - border-left: 1px solid var(--color-markup-code-block); -} - -/* border color of dropdown svg */ -.ui.form, -.ui.form .field .dropdown, -.ui.form .field .dropdown .menu > .item { - background-color: var(--color-border); - /* border: 0px solid black !important; */ -} - -/* hover font color */ -.ui.secondary.pointing.menu .active.item, -.ui.secondary.pointing.menu .active.item:hover, -.ui.secondary.pointing.menu .dropdown.item:hover, -.ui.secondary.pointing.menu .link.item:hover, -.ui.secondary.pointing.menu a.item:hover { - color: var(--color-text); -} - -.ui.selection.active.dropdown, -.ui.selection.active.dropdown:hover, -.ui.selection.active.dropdown .menu, -.ui.selection.active.dropdown:hover .menu { - border-color: #373e47; -} - -/* user avatar background */ -.user.profile .ui.card #profile-avatar { - background: var(--color-navbar); -} - -.ui.cards > .card > .content, -.ui.card > .content { - background: var(--color-navbar); -} - -.user.profile .ui.card .extra.content ul li:not(:last-child) { - border-bottom: 1px solid var(--color-secondary); - background-color: var(--color-navbar); -} - -.user.profile .ui.card .extra.content ul li { - background-color: var(--color-navbar); -} - -/* right border of profile search bar */ -.ui.action.input:not([class*="left action"]) > input { - border-right-color: var(--color-secondary); -} - -.ui.action.input:not([class*="left action"]) > input:focus { - border-right-color: var(--color-secondary); -} - -/* font color line numbers */ -.lines-num span:after { - color: var(--color-text); -} - -/* gpg key signed message */ -.repository .ui.attached.isSigned.isVerified.message { - background-color: var(--color-primary); - color: black; -} - -.repository .ui.attached.isSigned.isVerified.message .ui.text { - color: var(--color-active); -} - -.ui .info.segment.top { - background-color: var(--color-navbar) !important; -} - -.repository .ui.attached.isSigned.isVerified.top, -.repository .ui.attached.isSigned.isVerified.message { - border-top: 0px solid var(--color-text); -} - -.repository .ui.attached.isSigned.isVerified { - border-left: 0px solid var(--color-text); - border-right: 0px solid var(--color-text); -} - -.repository .ui.attached.isSigned.isVerified:last-child, -.repository .ui.attached.isSigned.isVerified.bottom { - border-bottom: 0px solid #a3c293; -} - -/* info message banner colors */ -.ui.info.message { - background-color: var(--color-navbar); - color: var(--color-text); -} - -/* PR timelines colors */ -.repository.view.issue .comment-list .timeline-item .badge .svg { - fill: black; -} - -.repository.view.issue .comment-list .timeline-item .badge { - background-color: var(--color-navbar); - color: var(--color-text); - width: 30px; - height: 30px; - margin-left: -31px; -} - -.repository.view.issue .comment-list .timeline-item .badge.badge-commit { - border-color: var(--color-navbar); - background: var(--color-navbar); -} - -.repository.view.issue .comment-list .timeline:before { - background-color: #373e47; -} - -.repository.view.issue .comment-list .timeline-item .badge .svg { - width: 20px; - height: 20px; - padding: 3px; -} - -input { - caret-color: var(--color-text); -} - -.removed-code { - background: #b70f22; - color: var(--color-text); -} - -.added-code { - background: #0d8b2c; - color: var(--color-text); -} - -/* review - pending label */ -.ui.basic.labels .yellow.label, -.ui.ui.ui.basic.yellow.label { - background: var(--color-project-board-bg); - color: #333 !important; -} - -/* green checkmark background when approving PRs */ -.bg-green { - background: var(--color-primary) !important; -} - -i.green.icon.icon.icon.icon { - color: var(--color-primary); -} - -span.green .svg { - color: var(--color-primary); -} - -/* highlight color bg for highlighted lines */ -.lines-code.active, -.lines-code .active { - border-radius: 6px; - background: #000000 !important; -} - -.ui.ui.ui.ui.table tr.active, -.ui.ui.table td.active { - box-shadow: 0 0 #000000de inset; - background: #e0e0e0; - color: --var(--color-text); -} - -/* navbar font size */ -.ui.secondary.menu .item { - font-size: 13px; -} - -#navbar .item { - margin: 0; - padding: 0.5em; - font-size: 14px; -} - -.following.bar #navbar { - width: 100vw; - border-bottom: 1px solid #373e47; - /* default 52px */ - min-height: 40px; - padding: 0 0.5rem; - background: var(--color-navbar); -} - -::-webkit-scrollbar-thumb { - box-shadow: inset 0 0 0 6px var(--color-navbar); -} -::-webkit-scrollbar-thumb:hover { - box-shadow: inset 0 0 0 6px var(--color-text); -} - -.following.bar #navbar .brand { - margin-top: -2px; -} - -/* border colors of search fields, e.g. "find repository" on main page */ -input:hover, -textarea:hover, -.ui.input input:hover, -.ui.form input:not([type]):hover, -.ui.form select:hover, -.ui.form textarea:hover, -.ui.form input[type="date"]:hover, -.ui.form input[type="datetime-local"]:hover, -.ui.form input[type="email"]:hover, -.ui.form input[type="file"]:hover, -.ui.form input[type="number"]:hover, -.ui.form input[type="password"]:hover, -.ui.form input[type="search"]:hover, -.ui.form input[type="tel"]:hover, -.ui.form input[type="text"]:hover, -.ui.form input[type="time"]:hover, -.ui.form input[type="url"]:hover, -.ui.selection.dropdown:hover, -.ui.checkbox label:hover:before, -.ui.checkbox label:active:before, -.ui.radio.checkbox label:after, -.ui.radio.checkbox input:focus ~ label:before, -.ui.radio.checkbox input:checked ~ label:before { - border-color: var(--color-secondary); -} - -a:hover, -a.muted:hover, -.ui.breadcrumb a:hover { - color: var(--color-blue); -} - -input:focus, -textarea:focus, -.ui.input input:focus, -.ui.form input:not([type]):focus, -.ui.form select:focus, -.ui.form textarea:focus, -.ui.form input[type="date"]:focus, -.ui.form input[type="datetime-local"]:focus, -.ui.form input[type="email"]:focus, -.ui.form input[type="file"]:focus, -.ui.form input[type="number"]:focus, -.ui.form input[type="password"]:focus, -.ui.form input[type="search"]:focus, -.ui.form input[type="tel"]:focus, -.ui.form input[type="text"]:focus, -.ui.form input[type="time"]:focus, -.ui.form input[type="url"]:focus, -.ui.selection.dropdown:focus, -.ui.checkbox input:focus ~ label:before, -.ui.checkbox input:not([type="radio"]):indeterminate:focus ~ label:before, -.ui.checkbox input:checked:focus ~ label:before, -.ui.radio.checkbox input:focus:checked ~ label:before { - border-color: ; -} - -.repo-icon { - display: none; -} - -/* reduce navbar bottom margin */ -.ui.ui.ui.container:not(.fluid) { - margin-bottom: -3px; -} - -.ui.green.button { - padding: 5px 16px; - line-height: 20px; -} - -.ui.green.labels .label, -.ui.ui.ui.green.label { - padding: 2px 5px; - line-height: 20px; - color: #cdd9e5 !important; - border-radius: 2em; -} - -.ui.tabular.menu .active.item { - margin-bottom: 1px; -} - -/* repository icon for directories */ -.repository.file.list #repo-files-table tbody .svg.octicon-file-directory-fill, -.repository.file.list #repo-files-table tbody .svg.octicon-file-submodule { - color: #768390; -} - -.ui.secondary.pointing.menu .item > .circular.label { - line-height: 10px; -} - -.ui.grey.labels .label, -.ui.ui.ui.grey.label { - line-height: 10px; -} - -.ui.primary.label, -.ui.primary.labels .label { - background-color: #373e47 !important; -} - -// timeline view icon color -.repository.view.issue .comment-list .timeline-item .badge .svg { - fill: #cdd9e5 !important; -} - -/* borders -------------------------------------------------------------------*/ - -// border width of active item in repo view -.ui.tabular.menu .active.item, -.ui.tabular.menu .active.item:hover { - border-width: initial; -} - -// README border -.ui.attached:not(.message) + .ui.attached.segment:not(.top) { - border-width: inherit; -} - -.ui.top.attached.header { - border-width: inherit; - border: 1px solid #373e47; -} - -.following.bar.light { - border-bottom: 0px solid var(--color-secondary); -} - -.ui.action.input:not([class*="left action"]) > input { - border-width: inherit; -} - -.ui.action.input > .dropdown:last-child, -.ui.action.input > .button:last-child, -.ui.action.input > .buttons:last-child > .button { - border-width: inherit; -} - -.ui.action.input:not([class*="left action"]) - > .ui.dropdown.selection:not(:focus):not(:hover) { - border-width: inherit; -} - -.repository #clone-panel #repo-clone-https, -.repository #clone-panel #repo-clone-ssh { - border-width: inherit; -} - -.ui.action.input > .dropdown:not(:first-child), -.ui.action.input > .button:not(:first-child), -.ui.action.input > .buttons:not(:first-child) > .button { - border-width: inherit; -} - -.ui.segment, -.ui.segments, -.ui.attached.segment { - border-width: inherit; -} - -.ui.table { - border-width: inherit; -} - -footer { - border-width: inherit; -} - -.page-content .ui.button { - border-width: inherit; -} - -.repo-buttons .ui.labeled.button > .label { - border-width: inherit; - border: 1px solid #373e47 !important; -} - -.repo-button-row .button { - height: unset; -} - -.repository .repository-summary .segment.language-stats { - height: 14px; - border-radius: 6px; -} - -.ui.table[class*="single line"], -.ui.table [class*="single line"] { - white-space: nowrap; - border: 1px solid #373e47; -} - -.ui.tiny.input { - font-size: 0.85714286em; - border: 1px solid #373e47; - border-radius: 6px; -} - -.ui.fluid.input { - border: 1px solid #373e47 !important; - border-radius: 6px; -} - -.repository.view.issue .comment-list .comment > .content > div:last-child { - border: 0px solid #373e47 !important; -} -.ui.basic.secondary.buttons .button, -.ui.basic.secondary.button { - color: var(--color-text) !important; - border: 1px solid #373e47 !important; -} -.ui.small.buttons .dropdown, -.ui.small.buttons .dropdown .menu > .item, -.ui.small.buttons .button, -.ui.small.buttons .or, -.ui.ui.ui.ui.small.button { - border: 1px solid #373e47 !important; -} - -.ui.table > tr > td, -.ui.table > tbody > tr > td { - border-top-color: #373e47; -} - -.ui.basic.primary.button, -.ui.basic.primary.buttons .button { - color: #adbac7 !important; - font-weight: 500 !important; -} - -.feeds .list ul li .repo-list-link { - background: #161b22; -} -.ui.attached:not(.message) + .ui.attached.segment:not(.top) { - border: 1px solid #373e47; -} -.ui.menu .active.item, -.ui.menu .active.item:hover, -.ui.vertical.menu .active.item, -.ui.vertical.menu .active.item:hover { - background: #161b22; - font-weight: 500; - color: #adbac7; -} -.ui.primary.labels .label, -.ui.ui.ui.primary.label { - color: #a6aab5; -} -.issue.list a:not(.label):hover { - color: var(--color-blue) !important; -} -.ui.segment, -.ui.segments, -.ui.attached.segment { - border: 1px solid #373e47 !important; -} -.repository.view.issue .comment-list .comment .comment-container { - border: 1px solid #373e47; - border-radius: 0px; -} -.repository.view.issue .comment-list .comment > .content > div:first-child { - border-bottom: 1px solid #373e47 !important; -} -.tag-code, -.tag-code td, -.tag-code .blob-excerpt { - background-color: var(--color-body); -} - -/* issue \& PR count labels */ -.ui.menu .item > .label { - background: rgba(99, 110, 123, 0.4); - color: #cdd9e5; -} - -.ui.basic.red.buttons .button, -.ui.basic.red.button { - color: var(--color-red); - border: 1px solid var(--color-red); - border-radius: 16px; - padding: 5px 16px; - line-height: 20px; -} - -#navbar a.item .notification_count { - color: var(--color-text); -} - -.ui.secondary.menu .dropdown.item:hover, -.ui.secondary.menu a.item:hover { - color: #e3e3e3; -} - -.ui.secondary.menu .active.item, -.ui.secondary.menu .active.item:hover { - color: #e3e3e3; - background-color: var(--color-nav-bg); -} - -// list in Pull requests view -.issue.list > .item .desc { - color: var(--color-text); -} diff --git a/charts/kubezero-ci/templates/gitea/grafana-dashboard.yaml b/charts/kubezero-ci/templates/gitea/grafana-dashboard.yaml deleted file mode 100644 index f008aa86..00000000 --- a/charts/kubezero-ci/templates/gitea/grafana-dashboard.yaml +++ /dev/null @@ -1,15 +0,0 @@ -{{- if .Values.gitea.gitea.metrics.enabled }} -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ printf "%s-%s" (include "kubezero-lib.fullname" $) "grafana-dashboards" | trunc 63 | trimSuffix "-" }} - namespace: {{ .Release.Namespace }} - labels: - grafana_dashboard: "1" - {{- include "kubezero-lib.labels" . | nindent 4 }} - annotations: - k8s-sidecar-target-directory: KubeZero -binaryData: - Gitea.json.gz: - H4sIAAAAAAAC/+1cW2/bNhR+z68QhGLYgDSwnMRJC+whS5cuaG5I2vVhDQxKomU2FKmSVBw38H8fSd2oixNjSBqrY4G61jmSeK7fR4ku7zccxx2PEUlSwd23zj/y2HHu9afUEBBDKXXfXY0vLs9P//z415+frtzNQo2BD7HSXzAaQzGFKa+UIeQBQ4lAlKhTKoWYJ/qmIRCA05QFs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Fzkx8xy6Zo+8OLq+67x3TMPtgemxtj5ZGh89/L9pesOfad6bx3XZ3TGi32kyzzpLaYzWZrtAU7OvnnHs9333zPpLWBI7TjNHwpctSf43sbiX1mpsRuhXgAA -{{- end }} diff --git a/charts/kubezero-ci/templates/gitea/istio-authorization-policy.yaml b/charts/kubezero-ci/templates/gitea/istio-authorization-policy.yaml deleted file mode 100644 index 266cddd4..00000000 --- a/charts/kubezero-ci/templates/gitea/istio-authorization-policy.yaml +++ /dev/null @@ -1,26 +0,0 @@ -{{- if and .Values.gitea.enabled .Values.gitea.istio.enabled .Values.gitea.istio.ipBlocks }} -apiVersion: security.istio.io/v1beta1 -kind: AuthorizationPolicy -metadata: - name: {{ .Release.Name }}-deny-not-in-ipblocks - namespace: istio-system - labels: - {{- include "kubezero-lib.labels" $ | nindent 4 }} -spec: - selector: - matchLabels: - app: istio-ingressgateway - action: DENY - rules: - - from: - - source: - notIpBlocks: - {{- toYaml .Values.gitea.istio.ipBlocks | nindent 8 }} - to: - - operation: - hosts: ["{{ .Values.gitea.istio.url }}"] - when: - - key: connection.sni - values: - - '*' -{{- end }} diff --git a/charts/kubezero-ci/templates/gitea/istio-service.yaml b/charts/kubezero-ci/templates/gitea/istio-service.yaml deleted file mode 100644 index 9d92adaf..00000000 --- a/charts/kubezero-ci/templates/gitea/istio-service.yaml +++ /dev/null @@ -1,33 +0,0 @@ -{{- if and .Values.gitea.enabled .Values.gitea.istio.enabled }} -apiVersion: networking.istio.io/v1beta1 -kind: VirtualService -metadata: - name: gitea - namespace: {{ .Release.Namespace }} - labels: - {{- include "kubezero-lib.labels" $ | nindent 4 }} -spec: - gateways: - - {{ .Values.gitea.istio.gateway }} - hosts: - - {{ .Values.gitea.istio.url }} - http: - {{- if .Values.gitea.istio.authProvider }} - # https://github.com/go-gitea/gitea/issues/13606 - - match: - - uri: - regex: ^/user/login.* - redirect: - uri: /user/oauth2/{{ .Values.gitea.istio.authProvider }} - redirectCode: 302 - {{- end }} - - route: - - destination: - host: gitea-http - tcp: - - match: - - port: 22 - route: - - destination: - host: gitea-ssh -{{- end }} diff --git a/charts/kubezero-ci/templates/gitea/secrets.yaml b/charts/kubezero-ci/templates/gitea/secrets.yaml deleted file mode 100644 index 9dff274e..00000000 --- a/charts/kubezero-ci/templates/gitea/secrets.yaml +++ /dev/null @@ -1,12 +0,0 @@ -{{- if and .Values.gitea.enabled .Values.gitea.gitea.demo }} -apiVersion: v1 -kind: Secret -type: Opaque -metadata: - name: gitea-admin-secret - labels: -{{ include "kubezero-lib.labels" . | indent 4 }} -data: - username: {{ "demo" | b64enc | quote }} - password: {{ "secret" | b64enc | quote }} -{{- end }} diff --git a/charts/kubezero-ci/templates/gitea/themes-cm.yaml b/charts/kubezero-ci/templates/gitea/themes-cm.yaml deleted file mode 100644 index 0b46592b..00000000 --- a/charts/kubezero-ci/templates/gitea/themes-cm.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{{- if .Values.gitea.enabled }} -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ printf "%s-%s" (include "kubezero-lib.fullname" $) "themes" | trunc 63 | trimSuffix "-" }} -data: - {{ (.Files.Glob "files/gitea/themes/*").AsConfig | nindent 2 }} -{{- end }} diff --git a/charts/kubezero-ci/templates/jenkins/grafana-dashboard.yaml b/charts/kubezero-ci/templates/jenkins/grafana-dashboard.yaml deleted file mode 100644 index feff0a64..00000000 --- a/charts/kubezero-ci/templates/jenkins/grafana-dashboard.yaml +++ /dev/null @@ -1,15 +0,0 @@ -{{- if .Values.jenkins.controller.prometheus.enabled }} -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ printf "%s-%s" (include "kubezero-lib.fullname" $) "grafana-dashboards" | trunc 63 | trimSuffix "-" }} - namespace: {{ .Release.Namespace }} - labels: - grafana_dashboard: "1" - {{- include "kubezero-lib.labels" . | nindent 4 }} - annotations: - k8s-sidecar-target-directory: KubeZero -binaryData: - Jenkins.json.gz: - H4sIAAAAAAAC/+1dW3OcOBZ+z69gSe1WPN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9l77ie0lEo3rpTQKqo6k6cGW5ETlMhp0LOrQeh4Q9e+acPH5mnboCbPDaBjangZe+77BFq5m/MZEHdmCbt+usy6lST+rT+NmK6md1a3VPoTaakbEvSx68KWRWyqpd0NoVZmIUUtdnXdR8caTc8GJzHP+WfAlah4J56KLjBosOu3QbWtUYoOBYx6AhfZgOtBRRaMVIcCzR8EsTkriHv/xBFGwaYQwwXL9KAxir43P4Fn6Mq9QonwfwQmwdvFhZJ3wM5OHjyAeuK4Ne1b+ypcHWPGq5O1xuCwFm7FKyusZd7HKpOuQKNh4UafAFLOQPKGdh5Z8CFY5D4xM6RPnvF0weYpH8XcL/hF/jmYn66GE5n9ei7H8L2nQpe+xjeQICVKyDv5aJHBCpsrdpb34mwtatsrqtQtmpzfQceW/c7G0bsy6PXPnLIvtrmuheyiEILPty4Scja2c74+/A1benp7o2/yMoxwTGZpEEDU2jQMUXEAHyl5jR189KPDlEX/S6Vkku1Ly1JaUQxLP34vT6rl8AgZh5dOJnpKNUrTHIH6mdaygsKHS7WS/T9tZm7evmSoIpWui32qLOHipuzgdi5pRXFrXcF0DMN4aItXphB8XdX+NsUL9qGmCM4pJbwt+mmcr7Kx8CYRBST3D1f2IpYcU+sWGzF6ogXgm3su2J/876UxPd3xK2HPkLRd0pxsumsHLb4VTuHiMN+6EANhK72O98z1Bi1u/EocvHbEg52OnX+70D4Olu1adZNoUQvfv4DNoJhvICTAAA= -{{- end }} diff --git a/charts/kubezero-ci/templates/jenkins/istio-authorization-policy.yaml b/charts/kubezero-ci/templates/jenkins/istio-authorization-policy.yaml deleted file mode 100644 index 7faf6b7d..00000000 --- a/charts/kubezero-ci/templates/jenkins/istio-authorization-policy.yaml +++ /dev/null @@ -1,26 +0,0 @@ -{{- if and .Values.jenkins.enabled .Values.jenkins.istio.enabled .Values.jenkins.istio.ipBlocks }} -apiVersion: security.istio.io/v1beta1 -kind: AuthorizationPolicy -metadata: - name: {{ .Release.Name }}-deny-not-in-ipblocks - namespace: istio-system - labels: - {{- include "kubezero-lib.labels" $ | nindent 4 }} -spec: - selector: - matchLabels: - app: istio-ingressgateway - action: DENY - rules: - - from: - - source: - notIpBlocks: - {{- toYaml .Values.jenkins.istio.ipBlocks | nindent 8 }} - to: - - operation: - hosts: ["{{ .Values.jenkins.istio.url }}"] - when: - - key: connection.sni - values: - - '*' -{{- end }} diff --git a/charts/kubezero-ci/templates/jenkins/istio-service.yaml b/charts/kubezero-ci/templates/jenkins/istio-service.yaml deleted file mode 100644 index 6872d1f7..00000000 --- a/charts/kubezero-ci/templates/jenkins/istio-service.yaml +++ /dev/null @@ -1,68 +0,0 @@ -{{- if and .Values.jenkins.enabled .Values.jenkins.istio.enabled }} -apiVersion: networking.istio.io/v1beta1 -kind: VirtualService -metadata: - name: {{ template "kubezero-lib.fullname" (merge (dict "subchart" "jenkins") .) }} - namespace: {{ template "jenkins.namespace" . }} -spec: - hosts: - - {{ .Values.jenkins.istio.url }} - gateways: - - {{ .Values.jenkins.istio.gateway }} - http: - - route: - - destination: - host: {{ template "kubezero-lib.fullname" (merge (dict "subchart" "jenkins") .) }} - port: - number: 8080 - -{{- if .Values.jenkins.istio.webhook.enabled }} ---- -apiVersion: networking.istio.io/v1beta1 -kind: VirtualService -metadata: - name: {{ template "kubezero-lib.fullname" (merge (dict "subchart" "jenkins") .) }}-webhook - namespace: {{ template "jenkins.namespace" . }} -spec: - hosts: - - {{ .Values.jenkins.istio.webhook.url }} - gateways: - - {{ .Values.jenkins.istio.webhook.gateway }} - http: - - route: - - destination: - host: {{ template "kubezero-lib.fullname" (merge (dict "subchart" "jenkins") .) }} - port: - number: 8080 - match: - - uri: - exact: "/bitbucket-scmsource-hook/notify" - method: - exact: "POST" - - uri: - exact: "/github-webhook/" - method: - exact: "POST" -{{- end }} -{{- if .Values.jenkins.istio.agent.enabled }} ---- -apiVersion: networking.istio.io/v1beta1 -kind: VirtualService -metadata: - name: {{ template "kubezero-lib.fullname" (merge (dict "subchart" "jenkins") .) }}-agent - namespace: {{ template "jenkins.namespace" . }} -spec: - hosts: - - {{ .Values.jenkins.istio.agent.url }} - gateways: - - {{ .Values.jenkins.istio.agent.gateway }} - tcp: - - match: - - port: 50000 - route: - - destination: - host: {{ template "kubezero-lib.fullname" (merge (dict "subchart" "jenkins") .) }}-agent - port: - number: 50000 -{{- end }} -{{- end }} diff --git a/charts/kubezero-ci/update.sh b/charts/kubezero-ci/update.sh deleted file mode 100755 index 2215b555..00000000 --- a/charts/kubezero-ci/update.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -set -ex - -. ../../scripts/lib-update.sh - -#login_ecr_public -update_helm - -# Create ZDT dashboard configmap -../kubezero-metrics/sync_grafana_dashboards.py dashboard-jenkins.yaml templates/jenkins/grafana-dashboard.yaml -../kubezero-metrics/sync_grafana_dashboards.py dashboard-gitea.yaml templates/gitea/grafana-dashboard.yaml - -update_docs diff --git a/charts/kubezero-ci/values.yaml b/charts/kubezero-ci/values.yaml deleted file mode 100644 index 0a29ca20..00000000 --- a/charts/kubezero-ci/values.yaml +++ /dev/null @@ -1,296 +0,0 @@ -gitea: - enabled: false - - image: - tag: 1.21.11 - rootless: true - - repliaCount: 1 - - # We use RWO persistence - strategy: - type: "Recreate" - - # Since V9 they default to RWX and deployment, we default to old existing RWO from statefulset - persistence: - enabled: true - mount: true - create: false - #claimName: - size: 4Gi - - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - add: - - SYS_CHROOT - - resources: - requests: - cpu: "150m" - memory: "320Mi" - limits: - memory: "2048Mi" - - extraVolumes: - - name: gitea-themes - configMap: - name: gitea-kubezero-ci-themes - - extraVolumeMounts: - - name: gitea-themes - readOnly: true - mountPath: "/data/gitea/public/assets/css" - - checkDeprecation: false - test: - enabled: false - - gitea: - admin: - existingSecret: gitea-admin-secret - - # Enable to install demo creds - demo: false - - metrics: - enabled: false - serviceMonitor: - enabled: true - - config: - database: - DB_TYPE: sqlite3 - cache: - ADAPTER: memory - session: - PROVIDER: memory - queue: - TYPE: level - ui: - THEMES: "gitea,github-dark" - DEFAULT_THEME: "github-dark" - log: - LEVEL: warn - - redis-cluster: - enabled: false - postgresql-ha: - enabled: false - postgresql: - enabled: false - - istio: - enabled: false - gateway: istio-ingress/private-ingressgateway - url: git.example.com - - -jenkins: - enabled: false - - controller: - image: - tag: alpine-jdk17 - #tagLabel: alpine - disableRememberMe: true - prometheus: - enabled: false - testEnabled: false - enableRawHtmlMarkupFormatter: true - javaOpts: "-XX:+UseContainerSupport -XX:+UseStringDeduplication -Dhudson.model.DirectoryBrowserSupport.CSP=\"sandbox allow-popups; default-src 'none'; img-src 'self' cdn.zero-downtime.net; style-src 'unsafe-inline';\"" - jenkinsOpts: "--sessionTimeout=300 --sessionEviction=10800" - - # Until we setup the logging and metrics pipelines in OTEL - containerEnv: - - name: OTEL_LOGS_EXPORTER - value: "none" - - name: OTEL_METRICS_EXPORTER - value: "none" - - resources: - requests: - cpu: "250m" - memory: "1280Mi" - limits: - #cpu: "2000m" - memory: "4096Mi" - initContainerResources: - requests: - cpu: "50m" - memory: "256Mi" - limits: - #cpu: "1000m" - memory: "1024Mi" - - JCasC: - configScripts: - zdt-settings: | - jenkins: - noUsageStatistics: true - disabledAdministrativeMonitors: - - "jenkins.security.ResourceDomainRecommendation" - appearance: - themeManager: - disableUserThemes: true - theme: "dark" - unclassified: - openTelemetry: - configurationProperties: |- - otel.exporter.otlp.protocol=grpc - otel.instrumentation.jenkins.web.enabled=false - ignoredSteps: "dir,echo,isUnix,pwd,properties" - #endpoint: "telemetry-jaeger-collector.telemetry:4317" - exportOtelConfigurationAsEnvironmentVariables: false - #observabilityBackends: - # - jaeger: - # jaegerBaseUrl: "https://jaeger.example.com" - # name: "KubeZero Jaeger" - serviceName: "Jenkins" - buildDiscarders: - configuredBuildDiscarders: - - "jobBuildDiscarder" - - defaultBuildDiscarder: - discarder: - logRotator: - artifactDaysToKeepStr: "32" - artifactNumToKeepStr: "10" - daysToKeepStr: "100" - numToKeepStr: "10" - - installPlugins: - - kubernetes - - kubernetes-credentials-provider - - workflow-aggregator - - git - - basic-branch-build-strategies - - pipeline-graph-view - - pipeline-stage-view - - configuration-as-code - - antisamy-markup-formatter - - prometheus - - htmlpublisher - - build-discarder - - dark-theme - - matrix-auth - - reverse-proxy-auth-plugin - - opentelemetry - - serviceAccountAgent: - create: true - name: jenkins-podman-aws - - # Preconfigure agents to use zdt podman requires fuse/overlayfs - agent: - image: - repository: public.ecr.aws/zero-downtime/jenkins-podman - tag: v0.5.0 - #alwaysPullImage: true - podRetention: "Default" - showRawYaml: false - podName: "podman-aws" - serviceAccount: jenkins-podman-aws - annotations: - container.apparmor.security.beta.kubernetes.io/jnlp: unconfined - customJenkinsLabels: - - podman-aws-trivy - idleMinutes: 30 - containerCap: 2 - resources: - requests: - cpu: "" - memory: "" - limits: - cpu: "" - memory: "" - # envVars: - # - name: AWS_WEB_IDENTITY_TOKEN_FILE - # value: "/var/run/secrets/sts.amazonaws.com/serviceaccount/token" - # - name: AWS_STS_REGIONAL_ENDPOINTS - # value: regional - # - name: AWS_ROLE_ARN - # value: "" - yamlMergeStrategy: "merge" - yamlTemplate: |- - apiVersion: v1 - kind: Pod - spec: - securityContext: - fsGroup: 1000 - containers: - - name: jnlp - resources: - requests: - cpu: "512m" - memory: "1024Mi" - limits: - cpu: "4" - memory: "6144Mi" - github.com/fuse: 1 - volumeMounts: - - name: aws-token - mountPath: "/var/run/secrets/sts.amazonaws.com/serviceaccount/" - readOnly: true - - name: host-registries-conf - mountPath: "/home/jenkins/.config/containers/registries.conf" - readOnly: true - volumes: - - name: aws-token - projected: - sources: - - serviceAccountToken: - path: token - expirationSeconds: 86400 - audience: "sts.amazonaws.com" - - name: host-registries-conf - hostPath: - path: /etc/containers/registries.conf - type: File - - rbac: - readSecrets: true - - persistence: - size: "4Gi" - - istio: - enabled: false - gateway: istio-ingress/private-ingressgateway - url: jenkins.example.com - - # Dedicated VirtualService for webhooks - webhook: - enabled: false - gateway: istio-ingress/ingressgateway - url: jenkins-webhook.example.com - - # Remote Agents - agent: - enabled: false - gateway: istio-ingress/private-ingressgateway - url: jenkins-agent.example.com - -trivy: - enabled: false - image: - tag: 0.50.1 - persistence: - enabled: true - size: 1Gi - rbac: - create: false - -renovate: - enabled: false - - env: - LOG_FORMAT: json - cronjob: - concurrencyPolicy: Forbid - jobBackoffLimit: 3 - schedule: "0 3 * * *" - successfulJobsHistoryLimit: 1 - securityContext: - fsGroup: 1000 diff --git a/charts/kubezero-falco/Chart.yaml b/charts/kubezero-falco/Chart.yaml deleted file mode 100644 index ff902637..00000000 --- a/charts/kubezero-falco/Chart.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: v2 -name: kubezero-falco -description: Falco Container Security and Audit components -type: application -version: 0.1.2 -home: https://kubezero.com -icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png -keywords: - - kubezero - - falco -maintainers: - - name: Stefan Reimer - email: stefan@zero-downtime.net -dependencies: - - name: kubezero-lib - version: ">= 0.1.6" - repository: https://cdn.zero-downtime.net/charts/ - - name: falco - version: 4.2.5 - repository: https://falcosecurity.github.io/charts - condition: k8saudit.enabled - alias: k8saudit -kubeVersion: ">= 1.26.0" diff --git a/charts/kubezero-falco/README.md b/charts/kubezero-falco/README.md deleted file mode 100644 index 16773496..00000000 --- a/charts/kubezero-falco/README.md +++ /dev/null @@ -1,64 +0,0 @@ -# kubezero-falco - -![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) - -Falco Container Security and Audit components - -**Homepage:** - -## Maintainers - -| Name | Email | Url | -| ---- | ------ | --- | -| Stefan Reimer | | | - -## Requirements - -Kubernetes: `>= 1.26.0` - -| Repository | Name | Version | -|------------|------|---------| -| https://cdn.zero-downtime.net/charts/ | kubezero-lib | >= 0.1.6 | -| https://falcosecurity.github.io/charts | k8saudit(falco) | 4.2.5 | - -## Values - -| Key | Type | Default | Description | -|-----|------|---------|-------------| -| k8saudit.collectors | object | `{"enabled":false}` | Disable the collectors, no syscall events to enrich with metadata. | -| k8saudit.controller | object | `{"deployment":{"replicas":1},"kind":"deployment"}` | Deploy Falco as a deployment. One instance of Falco is enough. Anyway the number of replicas is configurabale. | -| k8saudit.controller.deployment.replicas | int | `1` | Number of replicas when installing Falco using a deployment. Change it if you really know what you are doing. For more info check the section on Plugins in the README.md file. | -| k8saudit.driver | object | `{"enabled":false}` | Disable the drivers since we want to deploy only the k8saudit plugin. | -| k8saudit.enabled | bool | `false` | | -| k8saudit.falco.buffered_outputs | bool | `true` | | -| k8saudit.falco.json_output | bool | `true` | | -| k8saudit.falco.load_plugins[0] | string | `"k8saudit"` | | -| k8saudit.falco.load_plugins[1] | string | `"json"` | | -| k8saudit.falco.log_syslog | bool | `false` | | -| k8saudit.falco.plugins[0].init_config.maxEventSize | int | `1048576` | | -| k8saudit.falco.plugins[0].library_path | string | `"libk8saudit.so"` | | -| k8saudit.falco.plugins[0].name | string | `"k8saudit"` | | -| k8saudit.falco.plugins[0].open_params | string | `"http://:9765/k8s-audit"` | | -| k8saudit.falco.plugins[1].init_config | string | `""` | | -| k8saudit.falco.plugins[1].library_path | string | `"libjson.so"` | | -| k8saudit.falco.plugins[1].name | string | `"json"` | | -| k8saudit.falco.rules_file[0] | string | `"/etc/falco/rules.d"` | | -| k8saudit.falco.syslog_output.enabled | bool | `false` | | -| k8saudit.falcoctl.artifact.follow.enabled | bool | `false` | | -| k8saudit.falcoctl.artifact.install.enabled | bool | `false` | | -| k8saudit.fullnameOverride | string | `"falco-k8saudit"` | | -| k8saudit.mounts.volumeMounts[0].mountPath | string | `"/etc/falco/rules.d"` | | -| k8saudit.mounts.volumeMounts[0].name | string | `"rules-volume"` | | -| k8saudit.mounts.volumes[0].configMap.name | string | `"falco-k8saudit-rules"` | | -| k8saudit.mounts.volumes[0].name | string | `"rules-volume"` | | -| k8saudit.nodeSelector."node-role.kubernetes.io/control-plane" | string | `""` | | -| k8saudit.resources.limits.cpu | string | `"1000m"` | | -| k8saudit.resources.limits.memory | string | `"512Mi"` | | -| k8saudit.resources.requests.cpu | string | `"100m"` | | -| k8saudit.resources.requests.memory | string | `"256Mi"` | | -| k8saudit.services[0].name | string | `"webhook"` | | -| k8saudit.services[0].ports[0].port | int | `9765` | | -| k8saudit.services[0].ports[0].protocol | string | `"TCP"` | | - ----------------------------------------------- -Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0) diff --git a/charts/kubezero-falco/files/rules/k8s_audit_rules.yaml b/charts/kubezero-falco/files/rules/k8s_audit_rules.yaml deleted file mode 100644 index 71293c1f..00000000 --- a/charts/kubezero-falco/files/rules/k8s_audit_rules.yaml +++ /dev/null @@ -1,804 +0,0 @@ -# SPDX-License-Identifier: Apache-2.0 -# -# Copyright (C) 2023 The Falco Authors. -# -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -- required_engine_version: 15 - -- required_plugin_versions: - - name: k8saudit - version: 0.7.0 - alternatives: - - name: k8saudit-eks - version: 0.4.0 - - name: k8saudit-gke - version: 0.1.0 - - name: json - version: 0.7.0 - -# Like always_true/always_false, but works with k8s audit events -- macro: k8s_audit_always_true - condition: (jevt.rawtime exists) - -- macro: k8s_audit_never_true - condition: (jevt.rawtime=0) - -# Generally only consider audit events once the response has completed -- list: k8s_audit_stages - items: ["ResponseComplete"] - -# Generally exclude users starting with "system:" -- macro: non_system_user - condition: (not ka.user.name startswith "system:") - -# This macro selects the set of Audit Events used by the below rules. -- macro: kevt - condition: (jevt.value[/stage] in (k8s_audit_stages)) - -- macro: kevt_started - condition: (jevt.value[/stage]=ResponseStarted) - -# If you wish to restrict activity to a specific set of users, override/append to this list. -# users created by kops are included -- list: vertical_pod_autoscaler_users - items: ["vpa-recommender", "vpa-updater"] - -- list: allowed_k8s_users - items: [ - "minikube", "minikube-user", "kubelet", "kops", "admin", "kube", "kube-proxy", "kube-apiserver-healthcheck", - "kubernetes-admin", - vertical_pod_autoscaler_users, - cluster-autoscaler, - "system:addon-manager", - "cloud-controller-manager", - "system:kube-controller-manager" - ] - -- list: eks_allowed_k8s_users - items: [ - "eks:node-manager", - "eks:certificate-controller", - "eks:fargate-scheduler", - "eks:k8s-metrics", - "eks:authenticator", - "eks:cluster-event-watcher", - "eks:nodewatcher", - "eks:pod-identity-mutating-webhook", - "eks:cloud-controller-manager", - "eks:vpc-resource-controller", - "eks:addon-manager", - ] - -- list: k8s_audit_sensitive_mount_images - items: [ - falcosecurity/falco, docker.io/falcosecurity/falco, public.ecr.aws/falcosecurity/falco, - docker.io/sysdig/sysdig, sysdig/sysdig, - gcr.io/google_containers/hyperkube, - gcr.io/google_containers/kube-proxy, docker.io/calico/node, - docker.io/rook/toolbox, docker.io/cloudnativelabs/kube-router, docker.io/consul, - docker.io/datadog/docker-dd-agent, docker.io/datadog/agent, docker.io/docker/ucp-agent, docker.io/gliderlabs/logspout, - docker.io/netdata/netdata, docker.io/google/cadvisor, docker.io/prom/node-exporter, - amazon/amazon-ecs-agent, prom/node-exporter, amazon/cloudwatch-agent - ] - -- list: k8s_audit_privileged_images - items: [ - falcosecurity/falco, docker.io/falcosecurity/falco, public.ecr.aws/falcosecurity/falco, - docker.io/calico/node, calico/node, - docker.io/cloudnativelabs/kube-router, - docker.io/docker/ucp-agent, - docker.io/mesosphere/mesos-slave, - docker.io/rook/toolbox, - docker.io/sysdig/sysdig, - gcr.io/google_containers/kube-proxy, - gcr.io/google-containers/startup-script, - gcr.io/projectcalico-org/node, - gke.gcr.io/kube-proxy, - gke.gcr.io/gke-metadata-server, - gke.gcr.io/netd-amd64, - gke.gcr.io/watcher-daemonset, - gcr.io/google-containers/prometheus-to-sd, - registry.k8s.io/ip-masq-agent-amd64, - registry.k8s.io/kube-proxy, - registry.k8s.io/prometheus-to-sd, - quay.io/calico/node, - sysdig/sysdig, - registry.k8s.io/dns/k8s-dns-node-cache, - mcr.microsoft.com/oss/kubernetes/kube-proxy - ] - -- rule: Disallowed K8s User - desc: Detect any k8s operation by users outside of an allowed set of users. - condition: kevt and non_system_user and not ka.user.name in (allowed_k8s_users) and not ka.user.name in (eks_allowed_k8s_users) - output: K8s Operation performed by user not in allowed list of users (user=%ka.user.name target=%ka.target.name/%ka.target.resource verb=%ka.verb uri=%ka.uri resp=%ka.response.code) - priority: WARNING - source: k8s_audit - tags: [k8s] - -# In a local/user rules file, you could override this macro to -# explicitly enumerate the container images that you want to run in -# your environment. In this main falco rules file, there isn't any way -# to know all the containers that can run, so any container is -# allowed, by using the always_true macro. In the overridden macro, the condition -# would look something like (ka.req.pod.containers.image.repository in (my-repo/my-image)) -- macro: allowed_k8s_containers - condition: (k8s_audit_always_true) - -- macro: response_successful - condition: (ka.response.code startswith 2) - -- macro: kget - condition: ka.verb=get - -- macro: kcreate - condition: ka.verb=create - -- macro: kmodify - condition: (ka.verb in (create,update,patch)) - -- macro: kdelete - condition: ka.verb=delete - -- macro: pod - condition: ka.target.resource=pods and not ka.target.subresource exists - -- macro: pod_subresource - condition: ka.target.resource=pods and ka.target.subresource exists - -- macro: deployment - condition: ka.target.resource=deployments - -- macro: service - condition: ka.target.resource=services - -- macro: configmap - condition: ka.target.resource=configmaps - -- macro: namespace - condition: ka.target.resource=namespaces - -- macro: serviceaccount - condition: ka.target.resource=serviceaccounts - -- macro: clusterrole - condition: ka.target.resource=clusterroles - -- macro: clusterrolebinding - condition: ka.target.resource=clusterrolebindings - -- macro: role - condition: ka.target.resource=roles - -- macro: secret - condition: ka.target.resource=secrets - -- macro: health_endpoint - condition: ka.uri=/healthz or ka.uri startswith /healthz? - -- macro: live_endpoint - condition: ka.uri=/livez or ka.uri startswith /livez? - -- macro: ready_endpoint - condition: ka.uri=/readyz or ka.uri startswith /readyz? - -- rule: Create Disallowed Pod - desc: > - Detect an attempt to start a pod with a container image outside of a list of allowed images. - condition: kevt and pod and kcreate and not allowed_k8s_containers - output: Pod started with container not in allowed list (user=%ka.user.name pod=%ka.resp.name ns=%ka.target.namespace images=%ka.req.pod.containers.image) - priority: WARNING - source: k8s_audit - tags: [k8s] - -- rule: Create Privileged Pod - desc: > - Detect an attempt to start a pod with a privileged container - condition: kevt and pod and kcreate and ka.req.pod.containers.privileged intersects (true) and not ka.req.pod.containers.image.repository in (k8s_audit_privileged_images) - output: Pod started with privileged container (user=%ka.user.name pod=%ka.resp.name resource=%ka.target.resource ns=%ka.target.namespace images=%ka.req.pod.containers.image) - priority: WARNING - source: k8s_audit - tags: [k8s] - -- macro: sensitive_vol_mount - condition: > - (ka.req.pod.volumes.hostpath intersects (/proc, /var/run/docker.sock, /, /etc, /root, /var/run/crio/crio.sock, /run/containerd/containerd.sock, /home/admin, /var/lib/kubelet, /var/lib/kubelet/pki, /etc/kubernetes, /etc/kubernetes/manifests)) - -- rule: Create Sensitive Mount Pod - desc: > - Detect an attempt to start a pod with a volume from a sensitive host directory (i.e. /proc). - Exceptions are made for known trusted images. - condition: kevt and pod and kcreate and sensitive_vol_mount and not ka.req.pod.containers.image.repository in (k8s_audit_sensitive_mount_images) - output: Pod started with sensitive mount (user=%ka.user.name pod=%ka.resp.name ns=%ka.target.namespace resource=%ka.target.resource images=%ka.req.pod.containers.image volumes=%jevt.value[/requestObject/spec/volumes]) - priority: WARNING - source: k8s_audit - tags: [k8s] - -# These container images are allowed to run with hostnetwork=true -# TODO: Remove k8s.gcr.io reference after 01/Dec/2023 -- list: k8s_audit_hostnetwork_images - items: [ - gcr.io/google-containers/prometheus-to-sd, - gcr.io/projectcalico-org/typha, - gcr.io/projectcalico-org/node, - gke.gcr.io/gke-metadata-server, - gke.gcr.io/kube-proxy, - gke.gcr.io/netd-amd64, - registry.k8s.io/ip-masq-agent-amd64, - registry.k8s.io/prometheus-to-sd - ] - -# Corresponds to K8s CIS Benchmark 1.7.4 -- rule: Create HostNetwork Pod - desc: Detect an attempt to start a pod using the host network. - condition: kevt and pod and kcreate and ka.req.pod.host_network intersects (true) and not ka.req.pod.containers.image.repository in (k8s_audit_hostnetwork_images) - output: Pod started using host network (user=%ka.user.name pod=%ka.resp.name resource=%ka.target.resource ns=%ka.target.namespace images=%ka.req.pod.containers.image) - priority: WARNING - source: k8s_audit - tags: [k8s] - -- list: k8s_audit_hostpid_images - items: [] - -- rule: Create HostPid Pod - desc: Detect an attempt to start a pod using the host pid namespace. - condition: kevt and pod and kcreate and ka.req.pod.host_pid intersects (true) and not ka.req.pod.containers.image.repository in (k8s_audit_hostpid_images) - output: Pod started using host pid namespace (user=%ka.user.name pod=%ka.resp.name resource=%ka.target.resource ns=%ka.target.namespace images=%ka.req.pod.containers.image) - priority: WARNING - source: k8s_audit - tags: [k8s] - -- list: k8s_audit_hostipc_images - items: [] - -- rule: Create HostIPC Pod - desc: Detect an attempt to start a pod using the host ipc namespace. - condition: kevt and pod and kcreate and ka.req.pod.host_ipc intersects (true) and not ka.req.pod.containers.image.repository in (k8s_audit_hostipc_images) - output: Pod started using host ipc namespace (user=%ka.user.name pod=%ka.resp.name resource=%ka.target.resource ns=%ka.target.namespace images=%ka.req.pod.containers.image) - priority: WARNING - source: k8s_audit - tags: [k8s] - -- macro: user_known_node_port_service - condition: (k8s_audit_never_true) - -- rule: Create NodePort Service - desc: > - Detect an attempt to start a service with a NodePort service type - condition: kevt and service and kcreate and ka.req.service.type=NodePort and not user_known_node_port_service - output: NodePort Service Created (user=%ka.user.name service=%ka.target.name resource=%ka.target.resource ns=%ka.target.namespace ports=%ka.req.service.ports) - priority: WARNING - source: k8s_audit - tags: [k8s] - -- macro: contains_private_credentials - condition: > - (ka.req.configmap.obj contains "aws_access_key_id" or - ka.req.configmap.obj contains "aws-access-key-id" or - ka.req.configmap.obj contains "aws_s3_access_key_id" or - ka.req.configmap.obj contains "aws-s3-access-key-id" or - ka.req.configmap.obj contains "password" or - ka.req.configmap.obj contains "passphrase") - -- rule: Create/Modify Configmap With Private Credentials - desc: > - Detect creating/modifying a configmap containing a private credential (aws key, password, etc.) - condition: kevt and configmap and kmodify and contains_private_credentials - output: K8s configmap with private credential (user=%ka.user.name verb=%ka.verb resource=%ka.target.resource configmap=%ka.req.configmap.name config=%ka.req.configmap.obj) - priority: WARNING - source: k8s_audit - tags: [k8s] - -# Corresponds to K8s CIS Benchmark, 1.1.1. -- rule: Anonymous Request Allowed - desc: > - Detect any request made by the anonymous user that was allowed - condition: kevt and ka.user.name=system:anonymous and ka.auth.decision="allow" and not health_endpoint and not live_endpoint and not ready_endpoint - output: Request by anonymous user allowed (user=%ka.user.name verb=%ka.verb uri=%ka.uri reason=%ka.auth.reason)) - priority: WARNING - source: k8s_audit - tags: [k8s] - -# Roughly corresponds to K8s CIS Benchmark, 1.1.12. In this case, -# notifies an attempt to exec/attach to a privileged container. - -# Ideally, we'd add a more stringent rule that detects attaches/execs -# to a privileged pod, but that requires the engine for k8s audit -# events to be stateful, so it could know if a container named in an -# attach request was created privileged or not. For now, we have a -# less severe rule that detects attaches/execs to any pod. -# -# For the same reason, you can't use things like image names/prefixes, -# as the event that creates the pod (which has the images) is a -# separate event than the actual exec/attach to the pod. - -- macro: user_known_exec_pod_activities - condition: (k8s_audit_never_true) - -- rule: Attach/Exec Pod - desc: > - Detect any attempt to attach/exec to a pod - condition: kevt_started and pod_subresource and kcreate and ka.target.subresource in (exec,attach) and not user_known_exec_pod_activities - output: Attach/Exec to pod (user=%ka.user.name pod=%ka.target.name resource=%ka.target.resource ns=%ka.target.namespace action=%ka.target.subresource command=%ka.uri.param[command]) - priority: NOTICE - source: k8s_audit - tags: [k8s] - -- macro: user_known_portforward_activities - condition: (k8s_audit_never_true) - -- rule: port-forward - desc: > - Detect any attempt to portforward - condition: ka.target.subresource in (portforward) and not user_known_portforward_activities - output: Portforward to pod (user=%ka.user.name pod=%ka.target.name ns=%ka.target.namespace action=%ka.target.subresource ) - priority: NOTICE - source: k8s_audit - tags: [k8s] - -- macro: user_known_pod_debug_activities - condition: (k8s_audit_never_true) - -# Only works when feature gate EphemeralContainers is enabled -- rule: EphemeralContainers Created - desc: > - Detect any ephemeral container created - condition: kevt and pod_subresource and kmodify and ka.target.subresource in (ephemeralcontainers) and not user_known_pod_debug_activities - output: Ephemeral container is created in pod (user=%ka.user.name pod=%ka.target.name resource=%ka.target.resource ns=%ka.target.namespace ephemeral_container_name=%jevt.value[/requestObject/ephemeralContainers/0/name] ephemeral_container_image=%jevt.value[/requestObject/ephemeralContainers/0/image]) - priority: NOTICE - source: k8s_audit - tags: [k8s] - -# In a local/user rules fie, you can append to this list to add additional allowed namespaces -- list: allowed_namespaces - items: [kube-system, kube-public, default] - -- rule: Create Disallowed Namespace - desc: Detect any attempt to create a namespace outside of a set of known namespaces - condition: kevt and namespace and kcreate and not ka.target.name in (allowed_namespaces) - output: Disallowed namespace created (user=%ka.user.name ns=%ka.target.name resource=%ka.target.resource) - priority: WARNING - source: k8s_audit - tags: [k8s] - -# Only defined for backwards compatibility. Use the more specific -# user_allowed_kube_namespace_image_list instead. -- list: user_trusted_image_list - items: [] - -- list: user_allowed_kube_namespace_image_list - items: [user_trusted_image_list] - -# Only defined for backwards compatibility. Use the more specific -# allowed_kube_namespace_image_list instead. -- list: k8s_image_list - items: [] - -# TODO: Remove k8s.gcr.io reference after 01/Dec/2023 -- list: allowed_kube_namespace_image_list - items: [ - gcr.io/google-containers/prometheus-to-sd, - gcr.io/projectcalico-org/node, - gke.gcr.io/addon-resizer, - gke.gcr.io/heapster, - gke.gcr.io/gke-metadata-server, - registry.k8s.io/ip-masq-agent-amd64, - registry.k8s.io/kube-apiserver, - gke.gcr.io/kube-proxy, - gke.gcr.io/netd-amd64, - gke.gcr.io/watcher-daemonset, - registry.k8s.io/addon-resizer, - registry.k8s.io/prometheus-to-sd, - registry.k8s.io/k8s-dns-dnsmasq-nanny-amd64, - registry.k8s.io/k8s-dns-kube-dns-amd64, - registry.k8s.io/k8s-dns-sidecar-amd64, - registry.k8s.io/metrics-server-amd64, - kope/kube-apiserver-healthcheck, - k8s_image_list - ] - -- macro: allowed_kube_namespace_pods - condition: (ka.req.pod.containers.image.repository in (user_allowed_kube_namespace_image_list) or - ka.req.pod.containers.image.repository in (allowed_kube_namespace_image_list)) - -# Detect any new pod created in the kube-system namespace -- rule: Pod Created in Kube Namespace - desc: Detect any attempt to create a pod in the kube-system or kube-public namespaces - condition: kevt and pod and kcreate and ka.target.namespace in (kube-system, kube-public) and not allowed_kube_namespace_pods - output: Pod created in kube namespace (user=%ka.user.name pod=%ka.resp.name resource=%ka.target.resource ns=%ka.target.namespace images=%ka.req.pod.containers.image) - priority: WARNING - source: k8s_audit - tags: [k8s] - -- list: user_known_sa_list - items: [] - -- list: known_sa_list - items: [ - coredns, - coredns-autoscaler, - cronjob-controller, - daemon-set-controller, - deployment-controller, - disruption-controller, - endpoint-controller, - endpointslice-controller, - endpointslicemirroring-controller, - generic-garbage-collector, - horizontal-pod-autoscaler, - job-controller, - namespace-controller, - node-controller, - persistent-volume-binder, - pod-garbage-collector, - pv-protection-controller, - pvc-protection-controller, - replicaset-controller, - resourcequota-controller, - root-ca-cert-publisher, - service-account-controller, - statefulset-controller - ] - -- macro: trusted_sa - condition: (ka.target.name in (known_sa_list, user_known_sa_list)) - -# Detect creating a service account in the kube-system/kube-public namespace -- rule: Service Account Created in Kube Namespace - desc: Detect any attempt to create a serviceaccount in the kube-system or kube-public namespaces - condition: kevt and serviceaccount and kcreate and ka.target.namespace in (kube-system, kube-public) and response_successful and not trusted_sa - output: Service account created in kube namespace (user=%ka.user.name serviceaccount=%ka.target.name resource=%ka.target.resource ns=%ka.target.namespace) - priority: WARNING - source: k8s_audit - tags: [k8s] - -# Detect any modify/delete to any ClusterRole starting with -# "system:". "system:coredns" is excluded as changes are expected in -# normal operation. -- rule: System ClusterRole Modified/Deleted - desc: Detect any attempt to modify/delete a ClusterRole/Role starting with system - condition: kevt and (role or clusterrole) and (kmodify or kdelete) and (ka.target.name startswith "system:") and - not ka.target.name in (system:coredns, system:managed-certificate-controller) - output: System ClusterRole/Role modified or deleted (user=%ka.user.name role=%ka.target.name resource=%ka.target.resource ns=%ka.target.namespace action=%ka.verb) - priority: WARNING - source: k8s_audit - tags: [k8s] - -# Detect any attempt to create a ClusterRoleBinding to the cluster-admin user -# (expand this to any built-in cluster role that does "sensitive" things) -- rule: Attach to cluster-admin Role - desc: Detect any attempt to create a ClusterRoleBinding to the cluster-admin user - condition: kevt and clusterrolebinding and kcreate and ka.req.binding.role=cluster-admin - output: Cluster Role Binding to cluster-admin role (user=%ka.user.name subject=%ka.req.binding.subjects) - priority: WARNING - source: k8s_audit - tags: [k8s] - -- rule: ClusterRole With Wildcard Created - desc: Detect any attempt to create a Role/ClusterRole with wildcard resources or verbs - condition: kevt and (role or clusterrole) and kcreate and (ka.req.role.rules.resources intersects ("*") or ka.req.role.rules.verbs intersects ("*")) - output: Created Role/ClusterRole with wildcard (user=%ka.user.name role=%ka.target.name resource=%ka.target.resource rules=%ka.req.role.rules) - priority: WARNING - source: k8s_audit - tags: [k8s] - -- macro: writable_verbs - condition: > - (ka.req.role.rules.verbs intersects (create, update, patch, delete, deletecollection)) - -- rule: ClusterRole With Write Privileges Created - desc: Detect any attempt to create a Role/ClusterRole that can perform write-related actions - condition: kevt and (role or clusterrole) and kcreate and writable_verbs - output: Created Role/ClusterRole with write privileges (user=%ka.user.name role=%ka.target.name resource=%ka.target.resource rules=%ka.req.role.rules) - priority: NOTICE - source: k8s_audit - tags: [k8s] - -- rule: ClusterRole With Pod Exec Created - desc: Detect any attempt to create a Role/ClusterRole that can exec to pods - condition: kevt and (role or clusterrole) and kcreate and ka.req.role.rules.resources intersects ("pods/exec") - output: Created Role/ClusterRole with pod exec privileges (user=%ka.user.name role=%ka.target.name resource=%ka.target.resource rules=%ka.req.role.rules) - priority: WARNING - source: k8s_audit - tags: [k8s] - -# The rules below this point are less discriminatory and generally -# represent a stream of activity for a cluster. If you wish to disable -# these events, modify the following macro. -- macro: consider_activity_events - condition: (k8s_audit_always_true) - -- macro: kactivity - condition: (kevt and consider_activity_events) - -- rule: K8s Deployment Created - desc: Detect any attempt to create a deployment - condition: (kactivity and kcreate and deployment and response_successful) - output: K8s Deployment Created (user=%ka.user.name deployment=%ka.target.name ns=%ka.target.namespace resource=%ka.target.resource resp=%ka.response.code decision=%ka.auth.decision reason=%ka.auth.reason) - priority: INFO - source: k8s_audit - tags: [k8s] - -- rule: K8s Deployment Deleted - desc: Detect any attempt to delete a deployment - condition: (kactivity and kdelete and deployment and response_successful) - output: K8s Deployment Deleted (user=%ka.user.name deployment=%ka.target.name ns=%ka.target.namespace resource=%ka.target.resource resp=%ka.response.code decision=%ka.auth.decision reason=%ka.auth.reason) - priority: INFO - source: k8s_audit - tags: [k8s] - -- rule: K8s Service Created - desc: Detect any attempt to create a service - condition: (kactivity and kcreate and service and response_successful) - output: K8s Service Created (user=%ka.user.name service=%ka.target.name ns=%ka.target.namespace resource=%ka.target.resource resp=%ka.response.code decision=%ka.auth.decision reason=%ka.auth.reason) - priority: INFO - source: k8s_audit - tags: [k8s] - -- rule: K8s Service Deleted - desc: Detect any attempt to delete a service - condition: (kactivity and kdelete and service and response_successful) - output: K8s Service Deleted (user=%ka.user.name service=%ka.target.name ns=%ka.target.namespace resource=%ka.target.resource resp=%ka.response.code decision=%ka.auth.decision reason=%ka.auth.reason) - priority: INFO - source: k8s_audit - tags: [k8s] - -- rule: K8s ConfigMap Created - desc: Detect any attempt to create a configmap - condition: (kactivity and kcreate and configmap and response_successful) - output: K8s ConfigMap Created (user=%ka.user.name configmap=%ka.target.name ns=%ka.target.namespace resource=%ka.target.resource resp=%ka.response.code decision=%ka.auth.decision reason=%ka.auth.reason) - priority: INFO - source: k8s_audit - tags: [k8s] - -- rule: K8s ConfigMap Deleted - desc: Detect any attempt to delete a configmap - condition: (kactivity and kdelete and configmap and response_successful) - output: K8s ConfigMap Deleted (user=%ka.user.name configmap=%ka.target.name ns=%ka.target.namespace resource=%ka.target.resource resp=%ka.response.code decision=%ka.auth.decision reason=%ka.auth.reason) - priority: INFO - source: k8s_audit - tags: [k8s] - -- rule: K8s Namespace Created - desc: Detect any attempt to create a namespace - condition: (kactivity and kcreate and namespace and response_successful) - output: K8s Namespace Created (user=%ka.user.name namespace=%ka.target.name resource=%ka.target.resource resp=%ka.response.code decision=%ka.auth.decision reason=%ka.auth.reason) - priority: INFO - source: k8s_audit - tags: [k8s] - -- rule: K8s Namespace Deleted - desc: Detect any attempt to delete a namespace - condition: (kactivity and non_system_user and kdelete and namespace and response_successful) - output: K8s Namespace Deleted (user=%ka.user.name namespace=%ka.target.name resource=%ka.target.resource resp=%ka.response.code decision=%ka.auth.decision reason=%ka.auth.reason) - priority: INFO - source: k8s_audit - tags: [k8s] - -- rule: K8s Serviceaccount Created - desc: Detect any attempt to create a service account - condition: (kactivity and kcreate and serviceaccount and response_successful) - output: K8s Serviceaccount Created (user=%ka.user.name serviceaccount=%ka.target.name ns=%ka.target.namespace resource=%ka.target.resource resp=%ka.response.code decision=%ka.auth.decision reason=%ka.auth.reason) - priority: INFO - source: k8s_audit - tags: [k8s] - -- rule: K8s Serviceaccount Deleted - desc: Detect any attempt to delete a service account - condition: (kactivity and kdelete and serviceaccount and response_successful) - output: K8s Serviceaccount Deleted (user=%ka.user.name serviceaccount=%ka.target.name ns=%ka.target.namespace resource=%ka.target.resource resp=%ka.response.code decision=%ka.auth.decision reason=%ka.auth.reason) - priority: INFO - source: k8s_audit - tags: [k8s] - -- rule: K8s Role/Clusterrole Created - desc: Detect any attempt to create a cluster role/role - condition: (kactivity and kcreate and (clusterrole or role) and response_successful) - output: K8s Cluster Role Created (user=%ka.user.name role=%ka.target.name resource=%ka.target.resource rules=%ka.req.role.rules resp=%ka.response.code decision=%ka.auth.decision reason=%ka.auth.reason) - priority: INFO - source: k8s_audit - tags: [k8s] - -- rule: K8s Role/Clusterrole Deleted - desc: Detect any attempt to delete a cluster role/role - condition: (kactivity and kdelete and (clusterrole or role) and response_successful) - output: K8s Cluster Role Deleted (user=%ka.user.name role=%ka.target.name resource=%ka.target.resource resp=%ka.response.code decision=%ka.auth.decision reason=%ka.auth.reason) - priority: INFO - source: k8s_audit - tags: [k8s] - -- rule: K8s Role/Clusterrolebinding Created - desc: Detect any attempt to create a clusterrolebinding - condition: (kactivity and kcreate and clusterrolebinding and response_successful) - output: K8s Cluster Role Binding Created (user=%ka.user.name binding=%ka.target.name resource=%ka.target.resource subjects=%ka.req.binding.subjects role=%ka.req.binding.role resp=%ka.response.code decision=%ka.auth.decision reason=%ka.auth.reason) - priority: INFO - source: k8s_audit - tags: [k8s] - -- rule: K8s Role/Clusterrolebinding Deleted - desc: Detect any attempt to delete a clusterrolebinding - condition: (kactivity and kdelete and clusterrolebinding and response_successful) - output: K8s Cluster Role Binding Deleted (user=%ka.user.name binding=%ka.target.name resource=%ka.target.resource resp=%ka.response.code decision=%ka.auth.decision reason=%ka.auth.reason) - priority: INFO - source: k8s_audit - tags: [k8s] - -- rule: K8s Secret Created - desc: Detect any attempt to create a secret. Service account tokens are excluded. - condition: (kactivity and kcreate and secret and ka.target.namespace!=kube-system and non_system_user and response_successful) - output: K8s Secret Created (user=%ka.user.name secret=%ka.target.name ns=%ka.target.namespace resource=%ka.target.resource resp=%ka.response.code decision=%ka.auth.decision reason=%ka.auth.reason) - priority: INFO - source: k8s_audit - tags: [k8s] - -- rule: K8s Secret Deleted - desc: Detect any attempt to delete a secret. Service account tokens are excluded. - condition: (kactivity and kdelete and secret and ka.target.namespace!=kube-system and non_system_user and response_successful) - output: K8s Secret Deleted (user=%ka.user.name secret=%ka.target.name ns=%ka.target.namespace resource=%ka.target.resource resp=%ka.response.code decision=%ka.auth.decision reason=%ka.auth.reason) - priority: INFO - source: k8s_audit - tags: [k8s] - -- rule: K8s Secret Get Successfully - desc: > - Detect any attempt to get a secret. Service account tokens are excluded. - condition: > - secret and kget - and kactivity - and response_successful - output: K8s Secret Get Successfully (user=%ka.user.name secret=%ka.target.name ns=%ka.target.namespace resource=%ka.target.resource resp=%ka.response.code decision=%ka.auth.decision reason=%ka.auth.reason) - priority: ERROR - source: k8s_audit - tags: [k8s] - -- rule: K8s Secret Get Unsuccessfully Tried - desc: > - Detect an unsuccessful attempt to get the secret. Service account tokens are excluded. - condition: > - secret and kget - and kactivity - and not response_successful - output: K8s Secret Get Unsuccessfully Tried (user=%ka.user.name secret=%ka.target.name ns=%ka.target.namespace resource=%ka.target.resource resp=%ka.response.code decision=%ka.auth.decision reason=%ka.auth.reason) - priority: WARNING - source: k8s_audit - tags: [k8s] - -# This rule generally matches all events, and as a result is disabled -# by default. If you wish to enable these events, modify the -# following macro. -# condition: (jevt.rawtime exists) -- macro: consider_all_events - condition: (k8s_audit_never_true) - -- macro: kall - condition: (kevt and consider_all_events) - -- rule: All K8s Audit Events - desc: Match all K8s Audit Events - condition: kall - output: K8s Audit Event received (user=%ka.user.name verb=%ka.verb uri=%ka.uri obj=%jevt.obj) - priority: DEBUG - source: k8s_audit - tags: [k8s] - - -# This macro disables following rule, change to k8s_audit_never_true to enable it -- macro: allowed_full_admin_users - condition: (k8s_audit_always_true) - -# This list includes some of the default user names for an administrator in several K8s installations -- list: full_admin_k8s_users - items: ["admin", "kubernetes-admin", "kubernetes-admin@kubernetes", "kubernetes-admin@cluster.local", "minikube-user"] - -# This rules detect an operation triggered by an user name that is -# included in the list of those that are default administrators upon -# cluster creation. This may signify a permission setting too broader. -# As we can't check for role of the user on a general ka.* event, this -# may or may not be an administrator. Customize the full_admin_k8s_users -# list to your needs, and activate at your discretion. - -# # How to test: -# # Execute any kubectl command connected using default cluster user, as: -# kubectl create namespace rule-test - -- rule: Full K8s Administrative Access - desc: Detect any k8s operation by a user name that may be an administrator with full access. - condition: > - kevt - and non_system_user - and ka.user.name in (full_admin_k8s_users) - and not allowed_full_admin_users - output: K8s Operation performed by full admin user (user=%ka.user.name target=%ka.target.name/%ka.target.resource verb=%ka.verb uri=%ka.uri resp=%ka.response.code) - priority: WARNING - source: k8s_audit - tags: [k8s] - -- macro: ingress - condition: ka.target.resource=ingresses - -- macro: ingress_tls - condition: (jevt.value[/requestObject/spec/tls] exists) - -# # How to test: -# # Create an ingress.yaml file with content: -# apiVersion: networking.k8s.io/v1beta1 -# kind: Ingress -# metadata: -# name: test-ingress -# annotations: -# nginx.ingress.kubernetes.io/rewrite-target: / -# spec: -# rules: -# - http: -# paths: -# - path: /testpath -# backend: -# serviceName: test -# servicePort: 80 -# # Execute: kubectl apply -f ingress.yaml - -- rule: Ingress Object without TLS Certificate Created - desc: Detect any attempt to create an ingress without TLS certification. - condition: > - (kactivity and kcreate and ingress and response_successful and not ingress_tls) - output: > - K8s Ingress Without TLS Cert Created (user=%ka.user.name ingress=%ka.target.name - namespace=%ka.target.namespace resource=%ka.target.resource) - source: k8s_audit - priority: WARNING - tags: [k8s, network] - -- macro: node - condition: ka.target.resource=nodes - -- macro: allow_all_k8s_nodes - condition: (k8s_audit_always_true) - -- list: allowed_k8s_nodes - items: [] - -# # How to test: -# # Create a Falco monitored cluster with Kops -# # Increase the number of minimum nodes with: -# kops edit ig nodes -# kops apply --yes - -- rule: Untrusted Node Successfully Joined the Cluster - desc: > - Detect a node successfully joined the cluster outside of the list of allowed nodes. - condition: > - kevt and node - and kcreate - and response_successful - and not allow_all_k8s_nodes - and not ka.target.name in (allowed_k8s_nodes) - output: Node not in allowed list successfully joined the cluster (user=%ka.user.name node=%ka.target.name resource=%ka.target.resource) - priority: ERROR - source: k8s_audit - tags: [k8s] - -- rule: Untrusted Node Unsuccessfully Tried to Join the Cluster - desc: > - Detect an unsuccessful attempt to join the cluster for a node not in the list of allowed nodes. - condition: > - kevt and node - and kcreate - and not response_successful - and not allow_all_k8s_nodes - and not ka.target.name in (allowed_k8s_nodes) - output: Node not in allowed list tried unsuccessfully to join the cluster (user=%ka.user.name node=%ka.target.name reason=%ka.response.reason resource=%ka.target.resource) - priority: WARNING - source: k8s_audit - tags: [k8s] diff --git a/charts/kubezero-falco/templates/k8saudit-rules-cm.yaml b/charts/kubezero-falco/templates/k8saudit-rules-cm.yaml deleted file mode 100644 index cde4473a..00000000 --- a/charts/kubezero-falco/templates/k8saudit-rules-cm.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{{- if .Values.k8saudit.enabled }} -apiVersion: v1 -kind: ConfigMap -metadata: - name: falco-k8saudit-rules - labels: - {{- include "falco.labels" . | nindent 4 }} -data: - {{- (.Files.Glob "files/rules/**.yaml").AsConfig | nindent 2 }} -{{- end }} diff --git a/charts/kubezero-falco/update.sh b/charts/kubezero-falco/update.sh deleted file mode 100755 index f8ffc8df..00000000 --- a/charts/kubezero-falco/update.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -set -ex - -. ../../scripts/lib-update.sh - -#login_ecr_public -update_helm - -# update falco rules -wget -qO files/rules/k8s_audit_rules.yaml https://raw.githubusercontent.com/falcosecurity/plugins/master/plugins/k8saudit/rules/k8s_audit_rules.yaml - -update_docs diff --git a/charts/kubezero-falco/values.yaml b/charts/kubezero-falco/values.yaml deleted file mode 100644 index 7e80d1b3..00000000 --- a/charts/kubezero-falco/values.yaml +++ /dev/null @@ -1,82 +0,0 @@ -k8saudit: - enabled: false - - fullnameOverride: falco-k8saudit - - # -- Disable the drivers since we want to deploy only the k8saudit plugin. - driver: - enabled: false - - # -- Disable the collectors, no syscall events to enrich with metadata. - collectors: - enabled: false - - # falcoctl disabled so we can reduce resources quite a bit - resources: - requests: - cpu: 100m - memory: 64Mi - limits: - cpu: 1 - memory: 512Mi - - nodeSelector: - node-role.kubernetes.io/control-plane: "" - - # -- Deploy Falco as a deployment. One instance of Falco is enough. Anyway the number of replicas is configurabale. - controller: - kind: deployment - deployment: - # -- Number of replicas when installing Falco using a deployment. Change it if you really know what you are doing. - # For more info check the section on Plugins in the README.md file. - replicas: 1 - - # This provides k8s-audit rules via custom CM - mounts: - volumeMounts: - - mountPath: /etc/falco/rules.d - name: rules-volume - volumes: - - name: rules-volume - configMap: - name: falco-k8saudit-rules - - falcoctl: - artifact: - follow: - enabled: false - # Since 0.37 the plugins are not part of the image anymore - # but we provide our rules static via our CM - config: - artifact: - allowedTypes: - - plugin - install: - refs: [k8saudit:0.7.0,json:0.7.2] - - services: - - name: webhook - ports: - - port: 9765 # See plugin open_params - protocol: TCP - - falco: - rules_file: - - /etc/falco/rules.d - plugins: - - name: k8saudit - library_path: libk8saudit.so - init_config: - maxEventSize: 1048576 - open_params: "http://:9765/k8s-audit" - - name: json - library_path: libjson.so - init_config: "" - # Plugins that Falco will load. Note: the same plugins are installed by the falcoctl-artifact-install init container. - load_plugins: [k8saudit, json] - - json_output: true - buffered_outputs: true - log_syslog: false - syslog_output: - enabled: false diff --git a/charts/kubezero-istio-gateway/Chart.yaml b/charts/kubezero-istio-gateway/Chart.yaml deleted file mode 100644 index c1d6ed6a..00000000 --- a/charts/kubezero-istio-gateway/Chart.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: v2 -name: kubezero-istio-gateway -description: KubeZero Umbrella Chart for Istio gateways -type: application -version: 0.21.2 -home: https://kubezero.com -icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png -keywords: - - kubezero - - istio - - ingress -maintainers: - - name: Stefan Reimer - email: stefan@zero-downtime.net -dependencies: - - name: kubezero-lib - version: ">= 0.1.6" - repository: https://cdn.zero-downtime.net/charts/ - - name: gateway - version: 1.21.2 - repository: https://istio-release.storage.googleapis.com/charts -kubeVersion: ">= 1.26.0" diff --git a/charts/kubezero-istio-gateway/README.md b/charts/kubezero-istio-gateway/README.md deleted file mode 100644 index dbc4ca59..00000000 --- a/charts/kubezero-istio-gateway/README.md +++ /dev/null @@ -1,53 +0,0 @@ -# kubezero-istio-gateway - -![Version: 0.21.2](https://img.shields.io/badge/Version-0.21.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) - -KubeZero Umbrella Chart for Istio gateways - -Installs Istio Ingress Gateways, requires kubezero-istio to be installed ! - -**Homepage:** - -## Maintainers - -| Name | Email | Url | -| ---- | ------ | --- | -| Stefan Reimer | | | - -## Requirements - -Kubernetes: `>= 1.26.0` - -| Repository | Name | Version | -|------------|------|---------| -| https://cdn.zero-downtime.net/charts/ | kubezero-lib | >= 0.1.6 | -| https://istio-release.storage.googleapis.com/charts | gateway | 1.21.2 | - -## Values - -| Key | Type | Default | Description | -|-----|------|---------|-------------| -| certificates | list | `[]` | | -| gateway.autoscaling.enabled | bool | `false` | | -| gateway.autoscaling.maxReplicas | int | `4` | | -| gateway.autoscaling.minReplicas | int | `1` | | -| gateway.autoscaling.targetCPUUtilizationPercentage | int | `80` | | -| gateway.podAnnotations."proxy.istio.io/config" | string | `"{ \"terminationDrainDuration\": \"20s\" }"` | | -| gateway.priorityClassName | string | `"system-cluster-critical"` | | -| gateway.replicaCount | int | `1` | | -| gateway.resources.limits.memory | string | `"512Mi"` | | -| gateway.resources.requests.cpu | string | `"50m"` | | -| gateway.resources.requests.memory | string | `"64Mi"` | | -| gateway.service.externalTrafficPolicy | string | `"Local"` | | -| gateway.service.type | string | `"NodePort"` | | -| gateway.terminationGracePeriodSeconds | int | `120` | | -| hardening.rejectUnderscoresHeaders | bool | `true` | | -| hardening.unescapeSlashes | bool | `true` | | -| proxyProtocol | bool | `true` | | -| telemetry.enabled | bool | `false` | | - -## Resources - -- https://istio.io/latest/docs/reference/config/istio.operator.v1alpha1/#IstioOperatorSpec -- https://github.com/istio/istio/blob/master/manifests/profiles/default.yaml -- https://istio.io/latest/docs/setup/install/standalone-operator/ diff --git a/charts/kubezero-istio-gateway/README.md.gotmpl b/charts/kubezero-istio-gateway/README.md.gotmpl deleted file mode 100644 index fcd08643..00000000 --- a/charts/kubezero-istio-gateway/README.md.gotmpl +++ /dev/null @@ -1,24 +0,0 @@ -{{ template "chart.header" . }} -{{ template "chart.deprecationWarning" . }} - -{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }} - -{{ template "chart.description" . }} - -Installs Istio Ingress Gateways, requires kubezero-istio to be installed ! - -{{ template "chart.homepageLine" . }} - -{{ template "chart.maintainersSection" . }} - -{{ template "chart.sourcesSection" . }} - -{{ template "chart.requirementsSection" . }} - -{{ template "chart.valuesSection" . }} - -## Resources - -- https://istio.io/latest/docs/reference/config/istio.operator.v1alpha1/#IstioOperatorSpec -- https://github.com/istio/istio/blob/master/manifests/profiles/default.yaml -- https://istio.io/latest/docs/setup/install/standalone-operator/ diff --git a/charts/kubezero-istio-gateway/charts/gateway/Chart.yaml b/charts/kubezero-istio-gateway/charts/gateway/Chart.yaml deleted file mode 100644 index 91367b32..00000000 --- a/charts/kubezero-istio-gateway/charts/gateway/Chart.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v2 -appVersion: 1.21.2 -description: Helm chart for deploying Istio gateways -icon: https://istio.io/latest/favicons/android-192x192.png -keywords: -- istio -- gateways -name: gateway -sources: -- https://github.com/istio/istio -type: application -version: 1.21.2 diff --git a/charts/kubezero-istio-gateway/charts/gateway/README.md b/charts/kubezero-istio-gateway/charts/gateway/README.md deleted file mode 100644 index 929188cb..00000000 --- a/charts/kubezero-istio-gateway/charts/gateway/README.md +++ /dev/null @@ -1,170 +0,0 @@ -# Istio Gateway Helm Chart - -This chart installs an Istio gateway deployment. - -## Setup Repo Info - -```console -helm repo add istio https://istio-release.storage.googleapis.com/charts -helm repo update -``` - -_See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command documentation._ - -## Installing the Chart - -To install the chart with the release name `istio-ingressgateway`: - -```console -helm install istio-ingressgateway istio/gateway -``` - -## Uninstalling the Chart - -To uninstall/delete the `istio-ingressgateway` deployment: - -```console -helm delete istio-ingressgateway -``` - -## Configuration - -To view support configuration options and documentation, run: - -```console -helm show values istio/gateway -``` - -### Profiles - -Istio Helm charts have a concept of a `profile`, which is a bundled collection of value presets. -These can be set with `--set profile=`. -For example, the `demo` profile offers a preset configuration to try out Istio in a test environment, with additional features enabled and lowered resource requirements. - -For consistency, the same profiles are used across each chart, even if they do not impact a given chart. - -Explicitly set values have highest priority, then profile settings, then chart defaults. - -As an implementation detail of profiles, the default values for the chart are all nested under `defaults`. -When configuring the chart, you should not include this. -That is, `--set some.field=true` should be passed, not `--set defaults.some.field=true`. - -### OpenShift - -When deploying the gateway in an OpenShift cluster, use the `openshift` profile to override the default values, for example: - -```console -helm install istio-ingressgateway istio/gateway -- set profile=openshift -``` - -### `image: auto` Information - -The image used by the chart, `auto`, may be unintuitive. -This exists because the pod spec will be automatically populated at runtime, using the same mechanism as [Sidecar Injection](istio.io/latest/docs/setup/additional-setup/sidecar-injection). -This allows the same configurations and lifecycle to apply to gateways as sidecars. - -Note: this does mean that the namespace the gateway is deployed in must not have the `istio-injection=disabled` label. -See [Controlling the injection policy](https://istio.io/latest/docs/setup/additional-setup/sidecar-injection/#controlling-the-injection-policy) for more info. - -### Examples - -#### Egress Gateway - -Deploying a Gateway to be used as an [Egress Gateway](https://istio.io/latest/docs/tasks/traffic-management/egress/egress-gateway/): - -```yaml -service: - # Egress gateways do not need an external LoadBalancer IP - type: ClusterIP -``` - -#### Multi-network/VM Gateway - -Deploying a Gateway to be used as a [Multi-network Gateway](https://istio.io/latest/docs/setup/install/multicluster/) for network `network-1`: - -```yaml -networkGateway: network-1 -``` - -### Migrating from other installation methods - -Installations from other installation methods (such as istioctl, Istio Operator, other helm charts, etc) can be migrated to use the new Helm charts -following the guidance below. -If you are able to, a clean installation is simpler. However, this often requires an external IP migration which can be challenging. - -WARNING: when installing over an existing deployment, the two deployments will be merged together by Helm, which may lead to unexpected results. - -#### Legacy Gateway Helm charts - -Istio historically offered two different charts - `manifests/charts/gateways/istio-ingress` and `manifests/charts/gateways/istio-egress`. -These are replaced by this chart. -While not required, it is recommended all new users use this chart, and existing users migrate when possible. - -This chart has the following benefits and differences: -* Designed with Helm best practices in mind (standardized values options, values schema, values are not all nested under `gateways.istio-ingressgateway.*`, release name and namespace taken into account, etc). -* Utilizes Gateway injection, simplifying upgrades, allowing gateways to run in any namespace, and avoiding repeating config for sidecars and gateways. -* Published to official Istio Helm repository. -* Single chart for all gateways (Ingress, Egress, East West). - -#### General concerns - -For a smooth migration, the resource names and `Deployment.spec.selector` labels must match. - -If you install with `helm install istio-gateway istio/gateway`, resources will be named `istio-gateway` and the `selector` labels set to: - -```yaml -app: istio-gateway -istio: gateway # the release name with leading istio- prefix stripped -``` - -If your existing installation doesn't follow these names, you can override them. For example, if you have resources named `my-custom-gateway` with `selector` labels -`foo=bar,istio=ingressgateway`: - -```yaml -name: my-custom-gateway # Override the name to match existing resources -labels: - app: "" # Unset default app selector label - istio: ingressgateway # override default istio selector label - foo: bar # Add the existing custom selector label -``` - -#### Migrating an existing Helm release - -An existing helm release can be `helm upgrade`d to this chart by using the same release name. For example, if a previous -installation was done like: - -```console -helm install istio-ingress manifests/charts/gateways/istio-ingress -n istio-system -``` - -It could be upgraded with - -```console -helm upgrade istio-ingress manifests/charts/gateway -n istio-system --set name=istio-ingressgateway --set labels.app=istio-ingressgateway --set labels.istio=ingressgateway -``` - -Note the name and labels are overridden to match the names of the existing installation. - -Warning: the helm charts here default to using port 80 and 443, while the old charts used 8080 and 8443. -If you have AuthorizationPolicies that reference port these ports, you should update them during this process, -or customize the ports to match the old defaults. -See the [security advisory](https://istio.io/latest/news/security/istio-security-2021-002/) for more information. - -#### Other migrations - -If you see errors like `rendered manifests contain a resource that already exists` during installation, you may need to forcibly take ownership. - -The script below can handle this for you. Replace `RELEASE` and `NAMESPACE` with the name and namespace of the release: - -```console -KINDS=(service deployment) -RELEASE=istio-ingressgateway -NAMESPACE=istio-system -for KIND in "${KINDS[@]}"; do - kubectl --namespace $NAMESPACE --overwrite=true annotate $KIND $RELEASE meta.helm.sh/release-name=$RELEASE - kubectl --namespace $NAMESPACE --overwrite=true annotate $KIND $RELEASE meta.helm.sh/release-namespace=$NAMESPACE - kubectl --namespace $NAMESPACE --overwrite=true label $KIND $RELEASE app.kubernetes.io/managed-by=Helm -done -``` - -You may ignore errors about resources not being found. diff --git a/charts/kubezero-istio-gateway/charts/gateway/files/profile-ambient.yaml b/charts/kubezero-istio-gateway/charts/gateway/files/profile-ambient.yaml deleted file mode 100644 index 59dd9114..00000000 --- a/charts/kubezero-istio-gateway/charts/gateway/files/profile-ambient.yaml +++ /dev/null @@ -1,25 +0,0 @@ -# The ambient profile enables ambient mode. The Istiod, CNI, and ztunnel charts must be deployed -meshConfig: - defaultConfig: - proxyMetadata: - ISTIO_META_ENABLE_HBONE: "true" -variant: distroless -pilot: - variant: distroless - env: - # Setup more secure default that is off in 'default' only for backwards compatibility - VERIFY_CERTIFICATE_AT_CLIENT: "true" - ENABLE_AUTO_SNI: "true" - - PILOT_ENABLE_HBONE: "true" - CA_TRUSTED_NODE_ACCOUNTS: "istio-system/ztunnel,kube-system/ztunnel" - PILOT_ENABLE_AMBIENT_CONTROLLERS: "true" -cni: - logLevel: info - privileged: true - ambient: - enabled: true - - # Default excludes istio-system; its actually fine to redirect there since we opt-out istiod, ztunnel, and istio-cni - excludeNamespaces: - - kube-system diff --git a/charts/kubezero-istio-gateway/charts/gateway/files/profile-compatibility-version-1.20.yaml b/charts/kubezero-istio-gateway/charts/gateway/files/profile-compatibility-version-1.20.yaml deleted file mode 100644 index 9f0fd563..00000000 --- a/charts/kubezero-istio-gateway/charts/gateway/files/profile-compatibility-version-1.20.yaml +++ /dev/null @@ -1,6 +0,0 @@ -pilot: - env: - ENABLE_EXTERNAL_NAME_ALIAS: "false" - PERSIST_OLDEST_FIRST_HEURISTIC_FOR_VIRTUAL_SERVICE_HOST_MATCHING: "true" - VERIFY_CERTIFICATE_AT_CLIENT: "false" - ENABLE_AUTO_SNI: "false" diff --git a/charts/kubezero-istio-gateway/charts/gateway/files/profile-demo.yaml b/charts/kubezero-istio-gateway/charts/gateway/files/profile-demo.yaml deleted file mode 100644 index 4ed37fed..00000000 --- a/charts/kubezero-istio-gateway/charts/gateway/files/profile-demo.yaml +++ /dev/null @@ -1,69 +0,0 @@ -# The demo profile enables a variety of things to try out Istio in non-production environments. -# * Lower resource utilization. -# * Some additional features are enabled by default; especially ones used in some tasks in istio.io. -# * More ports enabled on the ingress, which is used in some tasks. -meshConfig: - accessLogFile: /dev/stdout - extensionProviders: - - name: otel - envoyOtelAls: - service: opentelemetry-collector.istio-system.svc.cluster.local - port: 4317 - - name: skywalking - skywalking: - service: tracing.istio-system.svc.cluster.local - port: 11800 - - name: otel-tracing - opentelemetry: - port: 4317 - service: opentelemetry-collector.otel-collector.svc.cluster.local - -global: - proxy: - resources: - requests: - cpu: 10m - memory: 40Mi - -pilot: - autoscaleEnabled: false - traceSampling: 100 - resources: - requests: - cpu: 10m - memory: 100Mi - -gateways: - istio-egressgateway: - autoscaleEnabled: false - resources: - requests: - cpu: 10m - memory: 40Mi - istio-ingressgateway: - autoscaleEnabled: false - ports: - ## You can add custom gateway ports in user values overrides, but it must include those ports since helm replaces. - # Note that AWS ELB will by default perform health checks on the first port - # on this list. Setting this to the health check port will ensure that health - # checks always work. https://github.com/istio/istio/issues/12503 - - port: 15021 - targetPort: 15021 - name: status-port - - port: 80 - targetPort: 8080 - name: http2 - - port: 443 - targetPort: 8443 - name: https - - port: 31400 - targetPort: 31400 - name: tcp - # This is the port where sni routing happens - - port: 15443 - targetPort: 15443 - name: tls - resources: - requests: - cpu: 10m - memory: 40Mi \ No newline at end of file diff --git a/charts/kubezero-istio-gateway/charts/gateway/files/profile-openshift.yaml b/charts/kubezero-istio-gateway/charts/gateway/files/profile-openshift.yaml deleted file mode 100644 index 6f32659a..00000000 --- a/charts/kubezero-istio-gateway/charts/gateway/files/profile-openshift.yaml +++ /dev/null @@ -1,18 +0,0 @@ -# The OpenShift profile provides a basic set of settings to run Istio on OpenShift -# CNI must be installed. -cni: - cniBinDir: /var/lib/cni/bin - cniConfDir: /etc/cni/multus/net.d - chained: false - cniConfFileName: "istio-cni.conf" - excludeNamespaces: - - istio-system - - kube-system - logLevel: info - privileged: true - provider: "multus" -global: - platform: openshift -istio_cni: - enabled: true - chained: false \ No newline at end of file diff --git a/charts/kubezero-istio-gateway/charts/gateway/files/profile-preview.yaml b/charts/kubezero-istio-gateway/charts/gateway/files/profile-preview.yaml deleted file mode 100644 index 390ed749..00000000 --- a/charts/kubezero-istio-gateway/charts/gateway/files/profile-preview.yaml +++ /dev/null @@ -1,9 +0,0 @@ -# The preview profile contains features that are experimental. -# This is intended to explore new features coming to Istio. -# Stability, security, and performance are not guaranteed - use at your own risk. -meshConfig: - defaultConfig: - proxyMetadata: - # Enable Istio agent to handle DNS requests for known hosts - # Unknown hosts will automatically be resolved using upstream dns servers in resolv.conf - ISTIO_META_DNS_CAPTURE: "true" diff --git a/charts/kubezero-istio-gateway/charts/gateway/templates/NOTES.txt b/charts/kubezero-istio-gateway/charts/gateway/templates/NOTES.txt deleted file mode 100644 index 78451d33..00000000 --- a/charts/kubezero-istio-gateway/charts/gateway/templates/NOTES.txt +++ /dev/null @@ -1,9 +0,0 @@ -"{{ include "gateway.name" . }}" successfully installed! - -To learn more about the release, try: - $ helm status {{ .Release.Name }} - $ helm get all {{ .Release.Name }} - -Next steps: - * Deploy an HTTP Gateway: https://istio.io/latest/docs/tasks/traffic-management/ingress/ingress-control/ - * Deploy an HTTPS Gateway: https://istio.io/latest/docs/tasks/traffic-management/ingress/secure-ingress/ diff --git a/charts/kubezero-istio-gateway/charts/gateway/templates/_helpers.tpl b/charts/kubezero-istio-gateway/charts/gateway/templates/_helpers.tpl deleted file mode 100644 index a777d43b..00000000 --- a/charts/kubezero-istio-gateway/charts/gateway/templates/_helpers.tpl +++ /dev/null @@ -1,61 +0,0 @@ -{{- define "gateway.name" -}} -{{- if eq .Release.Name "RELEASE-NAME" -}} - {{- .Values.name | default "istio-ingressgateway" -}} -{{- else -}} - {{- .Values.name | default .Release.Name | default "istio-ingressgateway" -}} -{{- end -}} -{{- end }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "gateway.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{- define "gateway.labels" -}} -helm.sh/chart: {{ include "gateway.chart" . }} -{{ include "gateway.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -app.kubernetes.io/name: {{ include "gateway.name" . }} -{{- range $key, $val := .Values.labels }} -{{- if not (or (eq $key "app") (eq $key "istio")) }} -{{ $key | quote }}: {{ $val | quote }} -{{- end }} -{{- end }} -{{- end }} - -{{- define "gateway.podLabels" -}} -{{ include "gateway.selectorLabels" . }} -{{- range $key, $val := .Values.labels }} -{{- if not (or (eq $key "app") (eq $key "istio")) }} -{{ $key | quote }}: {{ $val | quote }} -{{- end }} -{{- end }} -{{- end }} - -{{- define "gateway.selectorLabels" -}} -{{- if hasKey .Values.labels "app" }} -{{- with .Values.labels.app }}app: {{.|quote}} -{{- end}} -{{- else }}app: {{ include "gateway.name" . }} -{{- end }} -{{- if hasKey .Values.labels "istio" }} -{{- with .Values.labels.istio }} -istio: {{.|quote}} -{{- end}} -{{- else }} -istio: {{ include "gateway.name" . | trimPrefix "istio-" }} -{{- end }} -{{- end }} - -{{- define "gateway.serviceAccountName" -}} -{{- if .Values.serviceAccount.create }} -{{- .Values.serviceAccount.name | default (include "gateway.name" .) }} -{{- else }} -{{- .Values.serviceAccount.name | default "default" }} -{{- end }} -{{- end }} diff --git a/charts/kubezero-istio-gateway/charts/gateway/templates/deployment.yaml b/charts/kubezero-istio-gateway/charts/gateway/templates/deployment.yaml deleted file mode 100644 index 2573653b..00000000 --- a/charts/kubezero-istio-gateway/charts/gateway/templates/deployment.yaml +++ /dev/null @@ -1,124 +0,0 @@ -apiVersion: apps/v1 -kind: {{ .Values.kind | default "Deployment" }} -metadata: - name: {{ include "gateway.name" . }} - namespace: {{ .Release.Namespace }} - labels: - {{- include "gateway.labels" . | nindent 4}} - annotations: - {{- .Values.annotations | toYaml | nindent 4 }} -spec: - {{- if not .Values.autoscaling.enabled }} - {{- with .Values.replicaCount }} - replicas: {{ . }} - {{- end }} - {{- end }} - # Give the LB 120s to detect and take into service - # should only be 40s by we are on AWS so ... - minReadySeconds: 120 - selector: - matchLabels: - {{- include "gateway.selectorLabels" . | nindent 6 }} - template: - metadata: - {{- with .Values.podAnnotations }} - annotations: - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - sidecar.istio.io/inject: "true" - {{- with .Values.revision }} - istio.io/rev: {{ . }} - {{- end }} - {{- include "gateway.podLabels" . | nindent 8 }} - spec: - {{- with .Values.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - serviceAccountName: {{ include "gateway.serviceAccountName" . }} - securityContext: - {{- if .Values.securityContext }} - {{- toYaml .Values.securityContext | nindent 8 }} - {{- else if (semverCompare ">=1.22-0" .Capabilities.KubeVersion.GitVersion) }} - # Safe since 1.22: https://github.com/kubernetes/kubernetes/pull/103326 - sysctls: - - name: net.ipv4.ip_unprivileged_port_start - value: "0" - {{- end }} - {{- with .Values.volumes }} - volumes: - {{ toYaml . | nindent 8 }} - {{- end }} - containers: - - name: istio-proxy - # "auto" will be populated at runtime by the mutating webhook. See https://istio.io/latest/docs/setup/additional-setup/sidecar-injection/#customizing-injection - image: auto - {{- with .Values.imagePullPolicy }} - imagePullPolicy: {{ . }} - {{- end }} - securityContext: - {{- if .Values.containerSecurityContext }} - {{- toYaml .Values.containerSecurityContext | nindent 12 }} - {{- else if (semverCompare ">=1.22-0" .Capabilities.KubeVersion.GitVersion) }} - # Safe since 1.22: https://github.com/kubernetes/kubernetes/pull/103326 - capabilities: - drop: - - ALL - allowPrivilegeEscalation: false - privileged: false - readOnlyRootFilesystem: true - runAsUser: 1337 - runAsGroup: 1337 - runAsNonRoot: true - {{- else }} - capabilities: - drop: - - ALL - add: - - NET_BIND_SERVICE - runAsUser: 0 - runAsGroup: 1337 - runAsNonRoot: false - allowPrivilegeEscalation: true - readOnlyRootFilesystem: true - {{- end }} - env: - {{- with .Values.networkGateway }} - - name: ISTIO_META_REQUESTED_NETWORK_VIEW - value: "{{.}}" - {{- end }} - {{- range $key, $val := .Values.env }} - - name: {{ $key }} - value: {{ $val | quote }} - {{- end }} - ports: - - containerPort: 15090 - protocol: TCP - name: http-envoy-prom - resources: - {{- toYaml .Values.resources | nindent 12 }} - {{- with .Values.volumeMounts }} - volumeMounts: - {{ toYaml . | nindent 12 }} - {{- end }} - {{- with .Values.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.topologySpreadConstraints }} - topologySpreadConstraints: - {{- toYaml . | nindent 8 }} - {{- end }} - terminationGracePeriodSeconds: {{ $.Values.terminationGracePeriodSeconds }} - {{- with .Values.priorityClassName }} - priorityClassName: {{ . }} - {{- end }} diff --git a/charts/kubezero-istio-gateway/charts/gateway/templates/hpa.yaml b/charts/kubezero-istio-gateway/charts/gateway/templates/hpa.yaml deleted file mode 100644 index d95768ac..00000000 --- a/charts/kubezero-istio-gateway/charts/gateway/templates/hpa.yaml +++ /dev/null @@ -1,42 +0,0 @@ -{{- if and (.Values.autoscaling.enabled) (eq .Values.kind "Deployment") }} -{{- if (semverCompare ">=1.23-0" .Capabilities.KubeVersion.GitVersion)}} -apiVersion: autoscaling/v2 -{{- else }} -apiVersion: autoscaling/v2beta2 -{{- end }} -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "gateway.name" . }} - namespace: {{ .Release.Namespace }} - labels: - {{- include "gateway.labels" . | nindent 4 }} - annotations: - {{- .Values.annotations | toYaml | nindent 4 }} -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: {{ .Values.kind | default "Deployment" }} - name: {{ include "gateway.name" . }} - minReplicas: {{ .Values.autoscaling.minReplicas }} - maxReplicas: {{ .Values.autoscaling.maxReplicas }} - metrics: - {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - - type: Resource - resource: - name: cpu - target: - averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} - type: Utilization - {{- end }} - {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - - type: Resource - resource: - name: memory - target: - averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} - type: Utilization - {{- end }} - {{- if .Values.autoscaling.autoscaleBehavior }} - behavior: {{ toYaml .Values.autoscaling.autoscaleBehavior | nindent 4 }} - {{- end }} -{{- end }} diff --git a/charts/kubezero-istio-gateway/charts/gateway/templates/poddisruptionbudget.yaml b/charts/kubezero-istio-gateway/charts/gateway/templates/poddisruptionbudget.yaml deleted file mode 100644 index 77f71e7f..00000000 --- a/charts/kubezero-istio-gateway/charts/gateway/templates/poddisruptionbudget.yaml +++ /dev/null @@ -1,16 +0,0 @@ -{{- if .Values.podDisruptionBudget }} -apiVersion: policy/v1 -kind: PodDisruptionBudget -metadata: - name: {{ include "gateway.name" . }} - namespace: {{ .Release.Namespace }} - labels: - {{- include "gateway.labels" . | nindent 4}} -spec: - selector: - matchLabels: - {{- include "gateway.selectorLabels" . | nindent 6 }} - {{- with .Values.podDisruptionBudget }} - {{- toYaml . | nindent 2 }} - {{- end }} -{{- end }} diff --git a/charts/kubezero-istio-gateway/charts/gateway/templates/role.yaml b/charts/kubezero-istio-gateway/charts/gateway/templates/role.yaml deleted file mode 100644 index c8a25cb7..00000000 --- a/charts/kubezero-istio-gateway/charts/gateway/templates/role.yaml +++ /dev/null @@ -1,33 +0,0 @@ -{{/*Set up roles for Istio Gateway. Not required for gateway-api*/}} -{{- if .Values.rbac.enabled }} -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: {{ include "gateway.serviceAccountName" . }} - namespace: {{ .Release.Namespace }} - labels: - {{- include "gateway.labels" . | nindent 4}} - annotations: - {{- .Values.annotations | toYaml | nindent 4 }} -rules: -- apiGroups: [""] - resources: ["secrets"] - verbs: ["get", "watch", "list"] ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: {{ include "gateway.serviceAccountName" . }} - namespace: {{ .Release.Namespace }} - labels: - {{- include "gateway.labels" . | nindent 4}} - annotations: - {{- .Values.annotations | toYaml | nindent 4 }} -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: {{ include "gateway.serviceAccountName" . }} -subjects: -- kind: ServiceAccount - name: {{ include "gateway.serviceAccountName" . }} -{{- end }} diff --git a/charts/kubezero-istio-gateway/charts/gateway/templates/service.yaml b/charts/kubezero-istio-gateway/charts/gateway/templates/service.yaml deleted file mode 100644 index db7fc004..00000000 --- a/charts/kubezero-istio-gateway/charts/gateway/templates/service.yaml +++ /dev/null @@ -1,71 +0,0 @@ -{{- if not (eq .Values.service.type "None") }} -apiVersion: v1 -kind: Service -metadata: - name: {{ include "gateway.name" . }} - namespace: {{ .Release.Namespace }} - labels: - {{- include "gateway.labels" . | nindent 4 }} - {{- with .Values.networkGateway }} - topology.istio.io/network: "{{.}}" - {{- end }} - annotations: - {{- merge (deepCopy .Values.service.annotations) .Values.annotations | toYaml | nindent 4 }} -spec: -{{- with .Values.service.loadBalancerIP }} - loadBalancerIP: "{{ . }}" -{{- end }} -{{- if eq .Values.service.type "LoadBalancer" }} - {{- if hasKey .Values.service "allocateLoadBalancerNodePorts" }} - allocateLoadBalancerNodePorts: {{ .Values.service.allocateLoadBalancerNodePorts }} - {{- end }} -{{- end }} -{{- if .Values.service.ipFamilyPolicy }} - ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }} -{{- end }} -{{- if .Values.service.ipFamilies }} - ipFamilies: -{{- range .Values.service.ipFamilies }} - - {{ . }} -{{- end }} -{{- end }} -{{- with .Values.service.loadBalancerSourceRanges }} - loadBalancerSourceRanges: -{{ toYaml . | indent 4 }} -{{- end }} -{{- with .Values.service.externalTrafficPolicy }} - externalTrafficPolicy: "{{ . }}" -{{- end }} - type: {{ .Values.service.type }} - ports: -{{- if .Values.networkGateway }} - - name: status-port - port: 15021 - targetPort: 15021 - - name: tls - port: 15443 - targetPort: 15443 - - name: tls-istiod - port: 15012 - targetPort: 15012 - - name: tls-webhook - port: 15017 - targetPort: 15017 -{{- else }} - {{- range $key, $val := .Values.service.ports }} - - - {{- range $pkey, $pval := $val }} - {{- if has $pkey (list "name" "nodePort" "port" "targetPort") }} - {{ $pkey}}: {{ $pval }} - {{- end }} - {{- end }} - {{- end }} -{{- end }} -{{- if .Values.service.externalIPs }} - externalIPs: {{- range .Values.service.externalIPs }} - - {{.}} - {{- end }} -{{- end }} - selector: - {{- include "gateway.selectorLabels" . | nindent 4 }} -{{- end }} diff --git a/charts/kubezero-istio-gateway/charts/gateway/templates/serviceaccount.yaml b/charts/kubezero-istio-gateway/charts/gateway/templates/serviceaccount.yaml deleted file mode 100644 index e5b2304d..00000000 --- a/charts/kubezero-istio-gateway/charts/gateway/templates/serviceaccount.yaml +++ /dev/null @@ -1,13 +0,0 @@ -{{- if .Values.serviceAccount.create }} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ include "gateway.serviceAccountName" . }} - namespace: {{ .Release.Namespace }} - labels: - {{- include "gateway.labels" . | nindent 4 }} - {{- with .Values.serviceAccount.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -{{- end }} diff --git a/charts/kubezero-istio-gateway/charts/gateway/templates/zzz_profile.yaml b/charts/kubezero-istio-gateway/charts/gateway/templates/zzz_profile.yaml deleted file mode 100644 index 6588debf..00000000 --- a/charts/kubezero-istio-gateway/charts/gateway/templates/zzz_profile.yaml +++ /dev/null @@ -1,34 +0,0 @@ -{{/* -Complex logic ahead... -We have three sets of values, in order of precedence (last wins): -1. The builtin values.yaml defaults -2. The profile the user selects -3. Users input (-f or --set) - -Unfortunately, Helm provides us (1) and (3) together (as .Values), making it hard to insert (2). - -However, we can workaround this by placing all of (1) under a specific key (.Values.defaults). -We can then merge the profile onto the defaults, then the user settings onto that. -Finally, we can set all of that under .Values so the chart behaves without awareness. -*/}} -{{- $defaults := $.Values.defaults }} -{{- $_ := unset $.Values "defaults" }} -{{- $profile := dict }} -{{- with .Values.profile }} -{{- with $.Files.Get (printf "files/profile-%s.yaml" .)}} -{{- $profile = (. | fromYaml) }} -{{- else }} -{{ fail (cat "unknown profile" $.Values.profile) }} -{{- end }} -{{- end }} -{{- with .Values.compatibilityVersion }} -{{- with $.Files.Get (printf "files/profile-compatibility-version-%s.yaml" .) }} -{{- $ignore := mustMergeOverwrite $profile (. | fromYaml) }} -{{- else }} -{{ fail (cat "unknown compatibility version" $.Values.compatibilityVersion) }} -{{- end }} -{{- end }} -{{- if $profile }} -{{- $a := mustMergeOverwrite $defaults $profile }} -{{- end }} -{{- $b := set $ "Values" (mustMergeOverwrite $defaults $.Values) }} diff --git a/charts/kubezero-istio-gateway/charts/gateway/values.schema.json b/charts/kubezero-istio-gateway/charts/gateway/values.schema.json deleted file mode 100644 index c97d84c1..00000000 --- a/charts/kubezero-istio-gateway/charts/gateway/values.schema.json +++ /dev/null @@ -1,301 +0,0 @@ -{ - "$schema": "http://json-schema.org/schema#", - "type": "object", - "additionalProperties": false, - "$defs": { - "values": { - "type": "object", - "properties": { - "global": { - "type": "object" - }, - "affinity": { - "type": "object" - }, - "securityContext": { - "type": [ - "object", - "null" - ] - }, - "containerSecurityContext": { - "type": [ - "object", - "null" - ] - }, - "kind": { - "type": "string", - "enum": [ - "Deployment", - "DaemonSet" - ] - }, - "annotations": { - "additionalProperties": { - "type": [ - "string", - "integer" - ] - }, - "type": "object" - }, - "autoscaling": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "maxReplicas": { - "type": "integer" - }, - "minReplicas": { - "type": "integer" - }, - "targetCPUUtilizationPercentage": { - "type": "integer" - } - } - }, - "env": { - "type": "object" - }, - "labels": { - "type": "object" - }, - "name": { - "type": "string" - }, - "nodeSelector": { - "type": "object" - }, - "podAnnotations": { - "type": "object", - "properties": { - "inject.istio.io/templates": { - "type": "string" - }, - "prometheus.io/path": { - "type": "string" - }, - "prometheus.io/port": { - "type": "string" - }, - "prometheus.io/scrape": { - "type": "string" - } - } - }, - "replicaCount": { - "type": [ - "integer", - "null" - ] - }, - "resources": { - "type": "object", - "properties": { - "limits": { - "type": "object", - "properties": { - "cpu": { - "type": "string" - }, - "memory": { - "type": "string" - } - } - }, - "requests": { - "type": "object", - "properties": { - "cpu": { - "type": "string" - }, - "memory": { - "type": "string" - } - } - } - } - }, - "revision": { - "type": "string" - }, - "compatibilityVersion": { - "type": "string" - }, - "runAsRoot": { - "type": "boolean" - }, - "unprivilegedPort": { - "type": [ - "string", - "boolean" - ], - "enum": [ - true, - false, - "auto" - ] - }, - "service": { - "type": "object", - "properties": { - "annotations": { - "type": "object" - }, - "externalTrafficPolicy": { - "type": "string" - }, - "loadBalancerIP": { - "type": "string" - }, - "loadBalancerSourceRanges": { - "type": "array" - }, - "ipFamilies": { - "items": { - "type": "string", - "enum": [ - "IPv4", - "IPv6" - ] - } - }, - "ipFamilyPolicy": { - "type": "string", - "enum": [ - "", - "SingleStack", - "PreferDualStack", - "RequireDualStack" - ] - }, - "ports": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "port": { - "type": "integer" - }, - "protocol": { - "type": "string" - }, - "targetPort": { - "type": "integer" - } - } - } - }, - "type": { - "type": "string" - } - } - }, - "serviceAccount": { - "type": "object", - "properties": { - "annotations": { - "type": "object" - }, - "name": { - "type": "string" - }, - "create": { - "type": "boolean" - } - } - }, - "rbac": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - } - } - }, - "tolerations": { - "type": "array" - }, - "topologySpreadConstraints": { - "type": "array" - }, - "networkGateway": { - "type": "string" - }, - "imagePullPolicy": { - "type": "string", - "enum": [ - "", - "Always", - "IfNotPresent", - "Never" - ] - }, - "imagePullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - } - }, - "podDisruptionBudget": { - "type": "object", - "properties": { - "minAvailable": { - "type": [ - "integer", - "string" - ] - }, - "maxUnavailable": { - "type": [ - "integer", - "string" - ] - }, - "unhealthyPodEvictionPolicy": { - "type": "string", - "enum": [ - "", - "IfHealthyBudget", - "AlwaysAllow" - ] - } - } - }, - "terminationGracePeriodSeconds": { - "type": "number" - }, - "volumes": { - "type": "array", - "items": { - "type": "object" - } - }, - "volumeMounts": { - "type": "array", - "items": { - "type": "object" - } - }, - "priorityClassName": { - "type": "string" - } - } - } - }, - "defaults": { - "$ref": "#/$defs/values" - }, - "$ref": "#/$defs/values" -} diff --git a/charts/kubezero-istio-gateway/charts/gateway/values.yaml b/charts/kubezero-istio-gateway/charts/gateway/values.yaml deleted file mode 100644 index a74a3ab7..00000000 --- a/charts/kubezero-istio-gateway/charts/gateway/values.yaml +++ /dev/null @@ -1,152 +0,0 @@ -defaults: - # Name allows overriding the release name. Generally this should not be set - name: "" - # revision declares which revision this gateway is a part of - revision: "" - - # Controls the spec.replicas setting for the Gateway deployment if set. - # Otherwise defaults to Kubernetes Deployment default (1). - replicaCount: - - kind: Deployment - - rbac: - # If enabled, roles will be created to enable accessing certificates from Gateways. This is not needed - # when using http://gateway-api.org/. - enabled: true - - serviceAccount: - # If set, a service account will be created. Otherwise, the default is used - create: true - # Annotations to add to the service account - annotations: {} - # The name of the service account to use. - # If not set, the release name is used - name: "" - - podAnnotations: - prometheus.io/port: "15020" - prometheus.io/scrape: "true" - prometheus.io/path: "/stats/prometheus" - inject.istio.io/templates: "gateway" - sidecar.istio.io/inject: "true" - - # Define the security context for the pod. - # If unset, this will be automatically set to the minimum privileges required to bind to port 80 and 443. - # On Kubernetes 1.22+, this only requires the `net.ipv4.ip_unprivileged_port_start` sysctl. - securityContext: ~ - containerSecurityContext: ~ - - service: - # Type of service. Set to "None" to disable the service entirely - type: LoadBalancer - ports: - - name: status-port - port: 15021 - protocol: TCP - targetPort: 15021 - - name: http2 - port: 80 - protocol: TCP - targetPort: 80 - - name: https - port: 443 - protocol: TCP - targetPort: 443 - annotations: {} - loadBalancerIP: "" - loadBalancerSourceRanges: [] - externalTrafficPolicy: "" - externalIPs: [] - ipFamilyPolicy: "" - ipFamilies: [] - ## Whether to automatically allocate NodePorts (only for LoadBalancers). - # allocateLoadBalancerNodePorts: false - - resources: - requests: - cpu: 100m - memory: 128Mi - limits: - cpu: 2000m - memory: 1024Mi - - autoscaling: - enabled: true - minReplicas: 1 - maxReplicas: 5 - targetCPUUtilizationPercentage: 80 - targetMemoryUtilizationPercentage: {} - autoscaleBehavior: {} - - # Pod environment variables - env: {} - - # Labels to apply to all resources - labels: {} - - # Annotations to apply to all resources - annotations: {} - - nodeSelector: {} - - tolerations: [] - - topologySpreadConstraints: [] - - affinity: {} - - # If specified, the gateway will act as a network gateway for the given network. - networkGateway: "" - - # Specify image pull policy if default behavior isn't desired. - # Default behavior: latest images will be Always else IfNotPresent - imagePullPolicy: "" - - imagePullSecrets: [] - - # This value is used to configure a Kubernetes PodDisruptionBudget for the gateway. - # - # By default, the `podDisruptionBudget` is disabled (set to `{}`), - # which means that no PodDisruptionBudget resource will be created. - # - # To enable the PodDisruptionBudget, configure it by specifying the - # `minAvailable` or `maxUnavailable`. For example, to set the - # minimum number of available replicas to 1, you can update this value as follows: - # - # podDisruptionBudget: - # minAvailable: 1 - # - # Or, to allow a maximum of 1 unavailable replica, you can set: - # - # podDisruptionBudget: - # maxUnavailable: 1 - # - # You can also specify the `unhealthyPodEvictionPolicy` field, and the valid values are `IfHealthyBudget` and `AlwaysAllow`. - # For example, to set the `unhealthyPodEvictionPolicy` to `AlwaysAllow`, you can update this value as follows: - # - # podDisruptionBudget: - # minAvailable: 1 - # unhealthyPodEvictionPolicy: AlwaysAllow - # - # To disable the PodDisruptionBudget, you can leave it as an empty object `{}`: - # - # podDisruptionBudget: {} - # - podDisruptionBudget: {} - - terminationGracePeriodSeconds: 30 - - # A list of `Volumes` added into the Gateway Pods. See - # https://kubernetes.io/docs/concepts/storage/volumes/. - volumes: [] - - # A list of `VolumeMounts` added into the Gateway Pods. See - # https://kubernetes.io/docs/concepts/storage/volumes/. - volumeMounts: [] - - # Configure this to a higher priority class in order to make sure your Istio gateway pods - # will not be killed because of low priority class. - # Refer to https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass - # for more detail. - priorityClassName: "" diff --git a/charts/kubezero-istio-gateway/gateway.patch b/charts/kubezero-istio-gateway/gateway.patch deleted file mode 100644 index bb7ea2c7..00000000 --- a/charts/kubezero-istio-gateway/gateway.patch +++ /dev/null @@ -1,32 +0,0 @@ -diff -tubr charts/gateway.orig/templates/deployment.yaml charts/gateway/templates/deployment.yaml ---- charts/gateway.orig/templates/deployment.yaml 2022-12-09 14:58:33.000000000 +0000 -+++ charts/gateway/templates/deployment.yaml 2022-12-13 11:43:02.196667885 +0000 -@@ -11,6 +11,9 @@ - {{- if not .Values.autoscaling.enabled }} - replicas: {{ .Values.replicaCount }} - {{- end }} -+ # Give the LB 120s to detect and take into service -+ # should only be 40s by we are on AWS so ... -+ minReadySeconds: 120 - selector: - matchLabels: - {{- include "gateway.selectorLabels" . | nindent 6 }} -diff -tubr charts/gateway.orig/templates/service.yaml charts/gateway/templates/service.yaml ---- charts/gateway.orig/templates/service.yaml 2022-12-09 14:58:33.000000000 +0000 -+++ charts/gateway/templates/service.yaml 2022-12-12 22:52:27.629670669 +0000 -@@ -38,7 +38,14 @@ - port: 15017 - targetPort: 15017 - {{- else }} --{{ .Values.service.ports | toYaml | indent 4 }} -+ {{- range $key, $val := .Values.service.ports }} -+ - -+ {{- range $pkey, $pval := $val }} -+ {{- if has $pkey (list "name" "nodePort" "port" "targetPort") }} -+ {{ $pkey}}: {{ $pval }} -+ {{- end }} -+ {{- end }} -+ {{- end }} - {{- end }} - {{- if .Values.service.externalIPs }} - externalIPs: {{- range .Values.service.externalIPs }} diff --git a/charts/kubezero-istio-gateway/templates/_gateway.tpl b/charts/kubezero-istio-gateway/templates/_gateway.tpl deleted file mode 100644 index ec8e0c6e..00000000 --- a/charts/kubezero-istio-gateway/templates/_gateway.tpl +++ /dev/null @@ -1,53 +0,0 @@ -{{- define "gatewayServers" }} - -{{- range $port := .ports }} -{{- if not $port.noGateway }} - -{{- $eachCert := false }} -{{- if $port.tls }} -{{- if not $port.tls.httpsRedirect }} -{{- $eachCert = true }} -{{- end }} -{{- end }} - -{{- if $eachCert }} -{{- range $cert := $.certificates }} -- port: - number: {{ $port.port }} - name: {{ $port.name }}-{{ $cert.name }} - protocol: {{ default "TCP" $port.gatewayProtocol }} - tls: - credentialName: {{ $cert.name }} - {{- toYaml $port.tls | nindent 4 }} - hosts: - {{- toYaml $cert.dnsNames | nindent 2 }} -{{- end }} -{{- else }} -- port: - number: {{ $port.port }} - name: {{ $port.name }} - protocol: {{ default "TCP" $port.gatewayProtocol }} - {{- with $port.tls }} - tls: - {{- toYaml . | nindent 4 }} - {{- end }} - hosts: - {{- range $cert := $.certificates }} - {{- toYaml $cert.dnsNames | nindent 2 }} - {{- end }} -{{- end }} -{{- end }} - -{{- end }} -{{- end }} - - -{{- define "gatewayName" -}} -{{ .Values.gateway.name | default .Release.Name | default "istio-ingressgateway" }} -{{- end }} - - -{{- define "gatewaySelectorLabels" -}} -app: {{ include "gatewayName" . }} -istio: {{ include "gatewayName" . | trimPrefix "istio-" }} -{{- end }} diff --git a/charts/kubezero-istio-gateway/templates/bootstrap-config.yaml b/charts/kubezero-istio-gateway/templates/bootstrap-config.yaml deleted file mode 100644 index 9e3c88f9..00000000 --- a/charts/kubezero-istio-gateway/templates/bootstrap-config.yaml +++ /dev/null @@ -1,59 +0,0 @@ -# https://www.envoyproxy.io/docs/envoy/v1.17.1/configuration/best_practices/edge#configuring-envoy-as-an-edge-proxy -# https://github.com/istio/istio/issues/24715 -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ include "gatewayName" . | trimPrefix "istio-" }}-bootstrap-config - namespace: {{ .Release.Namespace }} - labels: -{{ include "kubezero-lib.labels" . | indent 4 }} -data: - custom_bootstrap.json: | - { - "overload_manager": { - "actions": [ - { - "name": "envoy.overload_actions.shrink_heap", - "triggers": [ - { - "name": "envoy.resource_monitors.fixed_heap", - "threshold": { - "value": 0.92 - } - } - ] - }, - { - "name": "envoy.overload_actions.stop_accepting_requests", - "triggers": [ - { - "name": "envoy.resource_monitors.fixed_heap", - "threshold": { - "value": 0.98 - } - } - ] - } - ], - "refresh_interval": "0.25s", - "resource_monitors": [ - { - "name": "envoy.resource_monitors.fixed_heap", - "typed_config": { - "@type": "type.googleapis.com/envoy.extensions.resource_monitors.fixed_heap.v3.FixedHeapConfig", - "max_heap_size_bytes": 536870912 - } - } - ] - }, - "layeredRuntime": { - "layers": [ - { - "name": "static_layer_0", - "staticLayer": { - "overload.global_downstream_max_connections": 50000 - } - } - ] - } - } diff --git a/charts/kubezero-istio-gateway/templates/envoyfilter-hardening.yaml b/charts/kubezero-istio-gateway/templates/envoyfilter-hardening.yaml deleted file mode 100644 index 563a1b55..00000000 --- a/charts/kubezero-istio-gateway/templates/envoyfilter-hardening.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: networking.istio.io/v1alpha3 -kind: EnvoyFilter -metadata: - name: {{ include "gatewayName" . | trimPrefix "istio-" }}-hardening - namespace: {{ .Release.Namespace }} - labels: - {{ include "kubezero-lib.labels" . | nindent 4 }} -spec: - workloadSelector: - labels: - {{- include "gatewaySelectorLabels" . | nindent 6 }} - configPatches: - - applyTo: CLUSTER - patch: - operation: MERGE - value: - connect_timeout: 15s - per_connection_buffer_limit_bytes: 32768 # 32 KiB - - applyTo: NETWORK_FILTER - match: - listener: - filterChain: - filter: - name: "envoy.filters.network.http_connection_manager" - patch: - operation: MERGE - value: - name: "envoy.filters.network.http_connection_manager" - typed_config: - "@type": "type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager" - stat_prefix: ingress_http - use_remote_address: true - normalize_path: true - merge_slashes: true - {{- if .Values.hardening.unescapeSlashes }} - path_with_escaped_slashes_action: UNESCAPE_AND_REDIRECT - {{- end }} - common_http_protocol_options: - idle_timeout: 3600s # 1 hour - {{- if .Values.hardening.rejectUnderscoresHeaders }} - headers_with_underscores_action: REJECT_REQUEST - {{- end }} - http2_protocol_options: - max_concurrent_streams: 100 - initial_stream_window_size: 65536 # 64 KiB - initial_connection_window_size: 1048576 # 1 MiB - #stream_idle_timeout: 300s # 5 mins, must be disabled for long-lived and streaming requests - #request_timeout: 300s # 5 mins, must be disabled for long-lived and streaming requests diff --git a/charts/kubezero-istio-gateway/templates/envoyfilter-keepalive-nlb.yaml b/charts/kubezero-istio-gateway/templates/envoyfilter-keepalive-nlb.yaml deleted file mode 100644 index 3888aa51..00000000 --- a/charts/kubezero-istio-gateway/templates/envoyfilter-keepalive-nlb.yaml +++ /dev/null @@ -1,29 +0,0 @@ -apiVersion: networking.istio.io/v1alpha3 -kind: EnvoyFilter -metadata: - name: {{ include "gatewayName" . | trimPrefix "istio-" }}-listener-tcp-keepalive - namespace: {{ .Release.Namespace }} - labels: - {{- include "kubezero-lib.labels" . | nindent 4 }} -spec: - workloadSelector: - labels: - {{- include "gatewaySelectorLabels" . | nindent 6 }} - configPatches: - - applyTo: LISTENER - patch: - operation: MERGE - value: - socket_options: - - level: 1 # SOL_SOCKET = 1 - name: 9 # SO_KEEPALIVE = 9 - int_value: 1 - state: STATE_PREBIND - - level: 6 # IPPROTO_TCP = 6 - name: 4 # TCP_KEEPIDLE = 4 - int_value: 120 - state: STATE_PREBIND - - level: 6 # IPPROTO_TCP = 6 - name: 5 # TCP_KEEPINTVL = 5 - int_value: 60 - state: STATE_PREBIND diff --git a/charts/kubezero-istio-gateway/templates/envoyfilter-listener.yaml b/charts/kubezero-istio-gateway/templates/envoyfilter-listener.yaml deleted file mode 100644 index f4a4a976..00000000 --- a/charts/kubezero-istio-gateway/templates/envoyfilter-listener.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: networking.istio.io/v1alpha3 -kind: EnvoyFilter -metadata: - name: {{ include "gatewayName" . | trimPrefix "istio-" }}-proxy-protocol - namespace: {{ .Release.Namespace }} - labels: - {{ include "kubezero-lib.labels" . | nindent 4 }} -spec: - workloadSelector: - labels: - {{- include "gatewaySelectorLabels" . | nindent 6 }} - configPatches: - - applyTo: LISTENER - patch: - operation: MERGE - value: - listener_filters: - {{- if .Values.proxyProtocol }} - - name: envoy.filters.listener.proxy_protocol - typed_config: - "@type": type.googleapis.com/envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol - {{- end }} - - name: envoy.filters.listener.tls_inspector - typed_config: - "@type": type.googleapis.com/envoy.extensions.filters.listener.tls_inspector.v3.TlsInspector diff --git a/charts/kubezero-istio-gateway/templates/ingress-certificate.yaml b/charts/kubezero-istio-gateway/templates/ingress-certificate.yaml deleted file mode 100644 index 57d6c134..00000000 --- a/charts/kubezero-istio-gateway/templates/ingress-certificate.yaml +++ /dev/null @@ -1,19 +0,0 @@ -{{- range $cert := .Values.certificates }} -{{- if $cert.dnsNames }} -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: {{ $cert.name }} - namespace: {{ $.Release.Namespace }} - labels: -{{ include "kubezero-lib.labels" $ | indent 4 }} -spec: - secretName: {{ $cert.name }} - issuerRef: - name: {{ default "letsencrypt-dns-prod" $cert.issuer }} - kind: ClusterIssuer - dnsNames: -{{ toYaml $cert.dnsNames | indent 4 }} ---- -{{- end }} -{{- end }} diff --git a/charts/kubezero-istio-gateway/templates/ingress-gateway.yaml b/charts/kubezero-istio-gateway/templates/ingress-gateway.yaml deleted file mode 100644 index 1070db55..00000000 --- a/charts/kubezero-istio-gateway/templates/ingress-gateway.yaml +++ /dev/null @@ -1,15 +0,0 @@ -# https://istio.io/latest/docs/tasks/traffic-management/ingress/secure-ingress/#configure-a-tls-ingress-gateway-for-multiple-hosts -{{- if .Values.certificates }} -apiVersion: networking.istio.io/v1beta1 -kind: Gateway -metadata: - name: {{ include "gatewayName" . | trimPrefix "istio-" }} - namespace: {{ .Release.Namespace }} - labels: - {{- include "kubezero-lib.labels" . | nindent 4 }} -spec: - selector: - {{- include "gatewaySelectorLabels" . | nindent 4 }} - servers: - {{- include "gatewayServers" (dict "certificates" .Values.certificates "ports" .Values.gateway.service.ports ) | nindent 2 }} -{{- end }} diff --git a/charts/kubezero-istio-gateway/templates/podmonitor.yaml b/charts/kubezero-istio-gateway/templates/podmonitor.yaml deleted file mode 100644 index 2020c4fe..00000000 --- a/charts/kubezero-istio-gateway/templates/podmonitor.yaml +++ /dev/null @@ -1,37 +0,0 @@ -{{- if .Values.telemetry.enabled }} -apiVersion: monitoring.coreos.com/v1 -kind: PodMonitor -metadata: - name: {{ include "gatewayName" . | trimPrefix "istio-" }}-envoy-stats-monitor - namespace: {{ .Release.Namespace }} - labels: -{{ include "kubezero-lib.labels" . | indent 4 }} -spec: - selector: - matchExpressions: - - {key: istio-prometheus-ignore, operator: DoesNotExist} - matchLabels: - {{- include "gatewaySelectorLabels" . | nindent 6 }} - jobLabel: envoy-stats - podMetricsEndpoints: - - path: /stats/prometheus - relabelings: - - action: keep - sourceLabels: [__meta_kubernetes_pod_container_name] - regex: "istio-proxy" - - action: keep - sourceLabels: [__meta_kubernetes_pod_annotationpresent_prometheus_io_scrape] - - sourceLabels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port] - action: replace - regex: ([^:]+)(?::\d+)?;(\d+) - replacement: $1:$2 - targetLabel: __address__ - - action: labeldrop - regex: "__meta_kubernetes_pod_label_(.+)" - - sourceLabels: [__meta_kubernetes_namespace] - action: replace - targetLabel: namespace - - sourceLabels: [__meta_kubernetes_pod_name] - action: replace - targetLabel: pod_name -{{- end }} diff --git a/charts/kubezero-istio-gateway/update.sh b/charts/kubezero-istio-gateway/update.sh deleted file mode 100755 index ce6863d4..00000000 --- a/charts/kubezero-istio-gateway/update.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -set -ex - -. ../../scripts/lib-update.sh - -#login_ecr_public -update_helm - -export ISTIO_VERSION=$(yq eval '.dependencies[] | select(.name=="gateway") | .version' Chart.yaml) - -patch_chart gateway - -update_docs diff --git a/charts/kubezero-istio-gateway/values.yaml b/charts/kubezero-istio-gateway/values.yaml deleted file mode 100644 index ae51063b..00000000 --- a/charts/kubezero-istio-gateway/values.yaml +++ /dev/null @@ -1,45 +0,0 @@ -gateway: - autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 4 - targetCPUUtilizationPercentage: 80 - - replicaCount: 1 - - terminationGracePeriodSeconds: 120 - priorityClassName: system-cluster-critical - - resources: - requests: - cpu: 50m - memory: 64Mi - limits: - # cpu: 100m - memory: 512Mi - - service: - type: NodePort - externalTrafficPolicy: Local - # Map port 80/443 to 8080/8443 so we don't need to root - - # ports is extended as follows: - # noGateway: true -> this port does NOT get mapped to a Gateway port - # tls: optional gateway port setting - # gatewayProtocol: Loadbalancer protocol which is NOT the same as Container Procotol ! - - podAnnotations: - proxy.istio.io/config: '{ "terminationDrainDuration": "20s" }' - -certificates: [] -#- name: ingress-cert -# dnsNames: [] - -telemetry: - enabled: false - -proxyProtocol: true - -hardening: - rejectUnderscoresHeaders: true - unescapeSlashes: true diff --git a/charts/kubezero-istio/.gitignore b/charts/kubezero-istio/.gitignore deleted file mode 100644 index 07f190b0..00000000 --- a/charts/kubezero-istio/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -istioctl -istio -istio.zdt diff --git a/charts/kubezero-istio/.helmignore b/charts/kubezero-istio/.helmignore deleted file mode 100644 index be6d0cec..00000000 --- a/charts/kubezero-istio/.helmignore +++ /dev/null @@ -1,32 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ - -README.md.gotmpl -*.patch -*.sh -*.py - -istioctl -istio -istio.zdt diff --git a/charts/kubezero-istio/Chart.yaml b/charts/kubezero-istio/Chart.yaml deleted file mode 100644 index 30103ffc..00000000 --- a/charts/kubezero-istio/Chart.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: v2 -name: kubezero-istio -description: KubeZero Umbrella Chart for Istio -type: application -version: 0.21.2 -home: https://kubezero.com -icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png -keywords: - - kubezero - - istio -maintainers: - - name: Stefan Reimer - email: stefan@zero-downtime.net -dependencies: - - name: kubezero-lib - version: ">= 0.1.6" - repository: https://cdn.zero-downtime.net/charts/ - - name: base - version: 1.21.2 - repository: https://istio-release.storage.googleapis.com/charts - - name: istiod - version: 1.21.2 - repository: https://istio-release.storage.googleapis.com/charts - - name: kiali-server - version: "1.83.0" - repository: https://kiali.org/helm-charts - condition: kiali-server.enabled -kubeVersion: ">= 1.26.0" diff --git a/charts/kubezero-istio/README.md b/charts/kubezero-istio/README.md deleted file mode 100644 index 329afdb3..00000000 --- a/charts/kubezero-istio/README.md +++ /dev/null @@ -1,79 +0,0 @@ -# kubezero-istio - -![Version: 0.21.2](https://img.shields.io/badge/Version-0.21.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) - -KubeZero Umbrella Chart for Istio - -Installs the Istio control plane - -**Homepage:** - -## Maintainers - -| Name | Email | Url | -| ---- | ------ | --- | -| Stefan Reimer | | | - -## Requirements - -Kubernetes: `>= 1.26.0` - -| Repository | Name | Version | -|------------|------|---------| -| https://cdn.zero-downtime.net/charts/ | kubezero-lib | >= 0.1.6 | -| https://istio-release.storage.googleapis.com/charts | base | 1.21.2 | -| https://istio-release.storage.googleapis.com/charts | istiod | 1.21.2 | -| https://kiali.org/helm-charts | kiali-server | 1.83.0 | - -## Values - -| Key | Type | Default | Description | -|-----|------|---------|-------------| -| global.defaultPodDisruptionBudget.enabled | bool | `false` | | -| global.logAsJson | bool | `true` | | -| global.priorityClassName | string | `"system-cluster-critical"` | | -| global.variant | string | `"distroless"` | | -| istiod.meshConfig.accessLogEncoding | string | `"JSON"` | | -| istiod.meshConfig.accessLogFile | string | `"/dev/stdout"` | | -| istiod.meshConfig.tcpKeepalive.interval | string | `"60s"` | | -| istiod.meshConfig.tcpKeepalive.time | string | `"120s"` | | -| istiod.pilot.autoscaleEnabled | bool | `false` | | -| istiod.pilot.nodeSelector."node-role.kubernetes.io/control-plane" | string | `""` | | -| istiod.pilot.replicaCount | int | `1` | | -| istiod.pilot.resources.requests.cpu | string | `"100m"` | | -| istiod.pilot.resources.requests.memory | string | `"128Mi"` | | -| istiod.pilot.tolerations[0].effect | string | `"NoSchedule"` | | -| istiod.pilot.tolerations[0].key | string | `"node-role.kubernetes.io/control-plane"` | | -| istiod.telemetry.enabled | bool | `false` | | -| kiali-server.auth.strategy | string | `"anonymous"` | | -| kiali-server.deployment.ingress_enabled | bool | `false` | | -| kiali-server.deployment.view_only_mode | bool | `true` | | -| kiali-server.enabled | bool | `false` | | -| kiali-server.external_services.custom_dashboards.enabled | bool | `false` | | -| kiali-server.external_services.prometheus.url | string | `"http://metrics-kube-prometheus-st-prometheus.monitoring:9090"` | | -| kiali-server.istio.enabled | bool | `false` | | -| kiali-server.istio.gateway | string | `"istio-ingress/private-ingressgateway"` | | -| kiali-server.server.metrics_enabled | bool | `false` | | -| rateLimiting.descriptors.ingress[0].key | string | `"remote_address"` | | -| rateLimiting.descriptors.ingress[0].rate_limit.requests_per_unit | int | `10` | | -| rateLimiting.descriptors.ingress[0].rate_limit.unit | string | `"second"` | | -| rateLimiting.descriptors.privateIngress[0].key | string | `"remote_address"` | | -| rateLimiting.descriptors.privateIngress[0].rate_limit.requests_per_unit | int | `10` | | -| rateLimiting.descriptors.privateIngress[0].rate_limit.unit | string | `"second"` | | -| rateLimiting.enabled | bool | `false` | | -| rateLimiting.failureModeDeny | bool | `false` | | -| rateLimiting.localCacheSize | int | `1048576` | | -| rateLimiting.log.format | string | `"json"` | | -| rateLimiting.log.level | string | `"warn"` | | - -## Resources - -- https://istio.io/latest/docs/reference/config/istio.operator.v1alpha1/#IstioOperatorSpec -- https://github.com/istio/istio/blob/master/manifests/profiles/default.yaml -- https://istio.io/latest/docs/setup/install/standalone-operator/ - -### Grafana -- https://grafana.com/grafana/dashboards/7645 -- https://grafana.com/grafana/dashboards/7639 -- https://grafana.com/grafana/dashboards/7636 -- https://grafana.com/grafana/dashboards/7630 diff --git a/charts/kubezero-istio/README.md.gotmpl b/charts/kubezero-istio/README.md.gotmpl deleted file mode 100644 index 3b91ba2e..00000000 --- a/charts/kubezero-istio/README.md.gotmpl +++ /dev/null @@ -1,30 +0,0 @@ -{{ template "chart.header" . }} -{{ template "chart.deprecationWarning" . }} - -{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }} - -{{ template "chart.description" . }} - -Installs the Istio control plane - -{{ template "chart.homepageLine" . }} - -{{ template "chart.maintainersSection" . }} - -{{ template "chart.sourcesSection" . }} - -{{ template "chart.requirementsSection" . }} - -{{ template "chart.valuesSection" . }} - -## Resources - -- https://istio.io/latest/docs/reference/config/istio.operator.v1alpha1/#IstioOperatorSpec -- https://github.com/istio/istio/blob/master/manifests/profiles/default.yaml -- https://istio.io/latest/docs/setup/install/standalone-operator/ - -### Grafana -- https://grafana.com/grafana/dashboards/7645 -- https://grafana.com/grafana/dashboards/7639 -- https://grafana.com/grafana/dashboards/7636 -- https://grafana.com/grafana/dashboards/7630 diff --git a/charts/kubezero-istio/dashboards.yaml b/charts/kubezero-istio/dashboards.yaml deleted file mode 100644 index 8d120846..00000000 --- a/charts/kubezero-istio/dashboards.yaml +++ /dev/null @@ -1,22 +0,0 @@ -# https://grafana.com/grafana/dashboards/7645-istio-control-plane-dashboard/?tab=revisions -configmap: grafana-dashboards -gzip: true -folder: Istio -condition: '.Values.istiod.telemetry.enabled' -dashboards: -- name: istio-control-plane - url: https://grafana.com/api/dashboards/7645/revisions/201/download - tags: - - Istio -- name: istio-mesh - url: https://grafana.com/api/dashboards/7639/revisions/201/download - tags: - - Istio -- name: istio-service - url: https://grafana.com/api/dashboards/7636/revisions/201/download - tags: - - Istio -- name: istio-workload - url: https://grafana.com/api/dashboards/7630/revisions/201/download - tags: - - Istio diff --git a/charts/kubezero-istio/templates/grafana-dashboards.yaml b/charts/kubezero-istio/templates/grafana-dashboards.yaml deleted file mode 100644 index 9231bc2b..00000000 --- a/charts/kubezero-istio/templates/grafana-dashboards.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{- if .Values.istiod.telemetry.enabled }} -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ printf "%s-%s" (include "kubezero-lib.fullname" $) "grafana-dashboards" | trunc 63 | trimSuffix "-" }} - namespace: {{ .Release.Namespace }} - labels: - grafana_dashboard: "1" - {{- include "kubezero-lib.labels" . | nindent 4 }} - annotations: - k8s-sidecar-target-directory: Istio -binaryData: - istio-control-plane.json.gz: - H4sIAAAAAAAC/+1dW1PcOBZ+z69Q+WELtoDqbi5JpmoeCJAMtWSGgiSzNZOUS22Lbi1uy5FkoIdlf/seSXb73ld34zB+SdqSsc5N53w6OrIfXyFk2Tb1g1AK6yf0J1wj9Kj/hR4fjwi0WqfX9uXVbx/PPv1y9vna2om7Pdwnnuq/5GxE5JCEIul0iXA4DSRlvrol6ZDjQD/UxRILFnKHJH2BFw6of+6q/qDkoab/14is1LD6hif499uOYYmT7yHlpISpePwBxzfYx8nDqVvaHAvhQ77jjnARcXe0d7C3HxGxUz5cgH0QVnGwYFg6VLo5NdD0McpESiuF6RfFWDbk4V5nr7MEbxL3PVIc7VO2ucjbRInY95nEyoCUFs2glkeFnOg0IQV6+iH15Ll6UncnaU2JpJxVuIf4mqafkOQhSbUPqVvSSh3mnzCPcfVAPujjrc4O6nW78M/h4Q7qbqcfHXN9nPCC/oGOPcJlhoREg2LYZ5i7VtT3pP//9ioSfn5anQv4hU6YLznz0KUHikCn8TNQJFzU3et1QYf6AcSlMmL3BntCc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LR/+JNZRGa/c+4pJLK5Mvs4Xc7SqP8pXzhTkp16zMy8wn9Cqv4+a31vuuKs7F24D1v4jQqqcMizFlNgcb0VuDiSyEngiqGJqAYXUVRkJy59Ks+zE8nXDc3EN0L/BZ4t8Lrf4A/G8lCGL2Kt1YqY78rehEUiNY/h3H/QPeAfrBVoKtLJkQbbknV76SAncjFRM0clLu3riRmqXH/QvFazEJCqTVcLWvplYbUWYLXlqmEx5fuura3yPecHZqYlF9nURzMXe49qAFobtHYxrY3l7AeeswKK60UnVqi5U5K85v/65Ck/jFJEG8vuW0EN40WUFlO2Tj2Ujf2fhgqePD+rymTR97AOveiPoBvfX4pBsENwDP+akLjNVOVbFvH2b/YHdRDEwuIRB6EboWhBjP9oN+MlUYBFaMX+LSoeX/oa9IjG4mLK8uxT4g0fxhuOP6XVif+IlmDhSIn3N+hLYjB+GHrkUo386syrHWHrM8ke3xiS5bUnuCwlRPh8Y/f/vDpTfb/4Xeg7F3ee/g8eSkNt7I0BAA== -{{- end }} diff --git a/charts/kubezero-istio/templates/kiali/istio-service.yaml b/charts/kubezero-istio/templates/kiali/istio-service.yaml deleted file mode 100644 index ed5ab2dd..00000000 --- a/charts/kubezero-istio/templates/kiali/istio-service.yaml +++ /dev/null @@ -1,18 +0,0 @@ -{{- if (index .Values "kiali-server" "istio" "enabled") }} -apiVersion: networking.istio.io/v1beta1 -kind: VirtualService -metadata: - name: {{ .Release.Name }}-kiali - namespace: {{ .Release.Namespace }} - labels: -{{ include "kubezero-lib.labels" . | indent 4 }} -spec: - hosts: - - {{ index .Values "kiali-server" "istio" "url" }} - gateways: - - {{ index .Values "kiali-server" "istio" "gateway" }} - http: - - route: - - destination: - host: kiali -{{- end }} diff --git a/charts/kubezero-istio/templates/ratelimit/config-statds-exporter.yaml b/charts/kubezero-istio/templates/ratelimit/config-statds-exporter.yaml deleted file mode 100644 index 07917077..00000000 --- a/charts/kubezero-istio/templates/ratelimit/config-statds-exporter.yaml +++ /dev/null @@ -1,106 +0,0 @@ -{{- if .Values.rateLimiting.enabled }} -apiVersion: v1 -kind: ConfigMap -metadata: - name: ratelimit-statsd-exporter-config - namespace: {{ .Release.Namespace }} - labels: - {{- include "kubezero-lib.labels" . | nindent 4 }} -data: - config.yaml: | - defaults: - ttl: 1m # Resets the metrics every minute - mappings: - - match: - "ratelimit.service.rate_limit.*.*.near_limit" - name: "ratelimit_service_rate_limit_near_limit" - timer_type: "histogram" - labels: - domain: "$1" - key1: "$2" - - match: - "ratelimit.service.rate_limit.*.*.over_limit" - name: "ratelimit_service_rate_limit_over_limit" - timer_type: "histogram" - labels: - domain: "$1" - key1: "$2" - - match: - "ratelimit.service.rate_limit.*.*.total_hits" - name: "ratelimit_service_rate_limit_total_hits" - timer_type: "histogram" - labels: - domain: "$1" - key1: "$2" - - match: - "ratelimit.service.rate_limit.*.*.within_limit" - name: "ratelimit_service_rate_limit_within_limit" - timer_type: "histogram" - labels: - domain: "$1" - key1: "$2" - - match: - "ratelimit.service.rate_limit.*.*.*.near_limit" - name: "ratelimit_service_rate_limit_near_limit" - timer_type: "histogram" - labels: - domain: "$1" - key1: "$2" - key2: "$3" - - match: - "ratelimit.service.rate_limit.*.*.*.over_limit" - name: "ratelimit_service_rate_limit_over_limit" - timer_type: "histogram" - labels: - domain: "$1" - key1: "$2" - key2: "$3" - - match: - "ratelimit.service.rate_limit.*.*.*.total_hits" - name: "ratelimit_service_rate_limit_total_hits" - timer_type: "histogram" - labels: - domain: "$1" - key1: "$2" - key2: "$3" - - match: - "ratelimit.service.rate_limit.*.*.*.within_limit" - name: "ratelimit_service_rate_limit_within_limit" - timer_type: "histogram" - labels: - domain: "$1" - key1: "$2" - key2: "$3" - - match: - "ratelimit.service.call.should_rate_limit.*" - name: "ratelimit_service_should_rate_limit_error" - match_metric_type: counter - labels: - err_type: "$1" - - match: - "ratelimit_server.*.total_requests" - name: "ratelimit_service_total_requests" - match_metric_type: counter - labels: - grpc_method: "$1" - - match: - "ratelimit_server.*.response_time" - name: "ratelimit_service_response_time_seconds" - timer_type: histogram - labels: - grpc_method: "$1" - - match: - "ratelimit.service.config_load_success" - name: "ratelimit_service_config_load_success" - match_metric_type: counter - ttl: 3m - - match: - "ratelimit.service.config_load_error" - name: "ratelimit_service_config_load_error" - match_metric_type: counter - ttl: 3m - - match: "." - match_type: "regex" - action: "drop" - name: "dropped" -{{- end }} diff --git a/charts/kubezero-istio/templates/ratelimit/config.yaml b/charts/kubezero-istio/templates/ratelimit/config.yaml deleted file mode 100644 index e8eff173..00000000 --- a/charts/kubezero-istio/templates/ratelimit/config.yaml +++ /dev/null @@ -1,19 +0,0 @@ -{{- if .Values.rateLimiting.enabled }} -apiVersion: v1 -kind: ConfigMap -metadata: - name: ratelimit-config - namespace: {{ .Release.Namespace }} - labels: - {{- include "kubezero-lib.labels" . | nindent 4 }} -data: - ingress.yaml: | - domain: ingress - descriptors: - {{- toYaml .Values.rateLimiting.descriptors.ingress | nindent 4 }} - - private-ingress.yaml: | - domain: private-ingress - descriptors: - {{- toYaml .Values.rateLimiting.descriptors.privateIngress | nindent 4 }} -{{- end }} diff --git a/charts/kubezero-istio/templates/ratelimit/envoyfilter-cluster.yaml b/charts/kubezero-istio/templates/ratelimit/envoyfilter-cluster.yaml deleted file mode 100644 index 3f74dfc9..00000000 --- a/charts/kubezero-istio/templates/ratelimit/envoyfilter-cluster.yaml +++ /dev/null @@ -1,116 +0,0 @@ -{{- if .Values.rateLimiting.enabled }} -apiVersion: networking.istio.io/v1alpha3 -kind: EnvoyFilter -metadata: - name: ingressgateway-ratelimit - namespace: {{ .Release.Namespace }} - labels: - {{- include "kubezero-lib.labels" . | nindent 4 }} -spec: - workloadSelector: - labels: - istio: ingressgateway - configPatches: - - applyTo: HTTP_FILTER - match: - context: GATEWAY - listener: - filterChain: - filter: - name: "envoy.filters.network.http_connection_manager" - subFilter: - name: "envoy.filters.http.router" - patch: - operation: INSERT_BEFORE - value: - name: envoy.filters.http.ratelimit - typed_config: - "@type": type.googleapis.com/envoy.extensions.filters.http.ratelimit.v3.RateLimit - domain: ingress - failure_mode_deny: {{ .Values.rateLimiting.failureModeDeny }} - timeout: 0.5s - rate_limit_service: - grpc_service: - envoy_grpc: - cluster_name: rate_limit_cluster - transport_api_version: V3 - - applyTo: CLUSTER - match: - cluster: - service: ratelimit.default.svc.cluster.local - patch: - operation: ADD - value: - name: rate_limit_cluster - type: STRICT_DNS - connect_timeout: 0.5s - lb_policy: ROUND_ROBIN - http2_protocol_options: {} - load_assignment: - cluster_name: rate_limit_cluster - endpoints: - - lb_endpoints: - - endpoint: - address: - socket_address: - address: ratelimit.istio-system - port_value: 8081 - ---- -apiVersion: networking.istio.io/v1alpha3 -kind: EnvoyFilter -metadata: - name: private-ingressgateway-ratelimit - namespace: {{ .Release.Namespace }} - labels: - {{- include "kubezero-lib.labels" . | nindent 4 }} -spec: - workloadSelector: - labels: - istio: private-ingressgateway - configPatches: - - applyTo: HTTP_FILTER - match: - context: GATEWAY - listener: - filterChain: - filter: - name: "envoy.filters.network.http_connection_manager" - subFilter: - name: "envoy.filters.http.router" - patch: - operation: INSERT_BEFORE - value: - name: envoy.filters.http.ratelimit - typed_config: - "@type": type.googleapis.com/envoy.extensions.filters.http.ratelimit.v3.RateLimit - domain: private-ingress - failure_mode_deny: {{ .Values.rateLimiting.failureModeDeny }} - timeout: 0.5s - rate_limit_service: - grpc_service: - envoy_grpc: - cluster_name: rate_limit_cluster - transport_api_version: V3 - - applyTo: CLUSTER - match: - cluster: - service: ratelimit.default.svc.cluster.local - patch: - operation: ADD - value: - name: rate_limit_cluster - type: STRICT_DNS - connect_timeout: 0.5s - lb_policy: ROUND_ROBIN - http2_protocol_options: {} - load_assignment: - cluster_name: rate_limit_cluster - endpoints: - - lb_endpoints: - - endpoint: - address: - socket_address: - address: ratelimit.istio-system - port_value: 8081 -{{- end }} diff --git a/charts/kubezero-istio/templates/ratelimit/rate-limit-service.yaml b/charts/kubezero-istio/templates/ratelimit/rate-limit-service.yaml deleted file mode 100644 index 1c3cc299..00000000 --- a/charts/kubezero-istio/templates/ratelimit/rate-limit-service.yaml +++ /dev/null @@ -1,154 +0,0 @@ -{{- if .Values.rateLimiting.enabled }} -apiVersion: v1 -kind: Service -metadata: - name: ratelimit-redis - namespace: {{ .Release.Namespace }} - labels: - app: ratelimit-redis -spec: - ports: - - name: redis - port: 6379 - selector: - app: ratelimit-redis ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: ratelimit-redis - namespace: {{ .Release.Namespace }} -spec: - replicas: 1 - selector: - matchLabels: - app: ratelimit-redis - template: - metadata: - labels: - app: ratelimit-redis - spec: - containers: - - image: redis:6-alpine - imagePullPolicy: IfNotPresent - name: redis - ports: - - name: redis - containerPort: 6379 - restartPolicy: Always - serviceAccountName: "" ---- -apiVersion: v1 -kind: Service -metadata: - name: ratelimit - namespace: {{ .Release.Namespace }} - labels: - app: ratelimit -spec: - ports: - #- name: http-port - # port: 8080 - # targetPort: 8080 - # protocol: TCP - - name: grpc-port - port: 8081 - targetPort: 8081 - protocol: TCP - #- name: http-debug - # port: 6070 - # targetPort: 6070 - # protocol: TCP - - name: http-monitoring - port: 9102 - targetPort: 9102 - protocol: TCP - selector: - app: ratelimit ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: ratelimit - namespace: {{ .Release.Namespace }} -spec: - replicas: 1 - selector: - matchLabels: - app: ratelimit - strategy: - type: Recreate - template: - metadata: - labels: - app: ratelimit - spec: - containers: - - image: envoyproxy/ratelimit:b42701cb # 2021/08/12 - imagePullPolicy: IfNotPresent - name: ratelimit - command: ["/bin/ratelimit"] - env: - - name: LOG_LEVEL - value: {{ default "WARN" .Values.rateLimiting.log.level }} - - name: LOG_FORMAT - value: {{ default "text" .Values.rateLimiting.log.format }} - - name: REDIS_SOCKET_TYPE - value: tcp - - name: REDIS_URL - value: ratelimit-redis:6379 - - name: USE_STATSD - value: "true" - - name: STATSD_HOST - value: "localhost" - - name: STATSD_PORT - value: "9125" - - name: RUNTIME_ROOT - value: /data - - name: RUNTIME_SUBDIRECTORY - value: ratelimit - - name: RUNTIME_WATCH_ROOT - value: "false" - - name: RUNTIME_IGNOREDOTFILES - value: "true" - - name: LOCAL_CACHE_SIZE_IN_BYTES - value: "{{ default 0 .Values.rateLimiting.localCacheSize | int }}" - ports: - #- containerPort: 8080 - - containerPort: 8081 - #- containerPort: 6070 - volumeMounts: - - name: ratelimit-config - mountPath: /data/ratelimit/config - resources: - requests: - cpu: 50m - memory: 32Mi - limits: - cpu: 1 - memory: 256Mi - - name: statsd-exporter - image: docker.io/prom/statsd-exporter:v0.21.0 - imagePullPolicy: Always - args: ["--statsd.mapping-config=/etc/statsd-exporter/config.yaml"] - ports: - - containerPort: 9125 - # - containerPort: 9102 - resources: - requests: - cpu: 50m - memory: 32Mi - limits: - cpu: 200m - memory: 64Mi - volumeMounts: - - name: statsd-exporter-config - mountPath: /etc/statsd-exporter - volumes: - - name: ratelimit-config - configMap: - name: ratelimit-config - - name: statsd-exporter-config - configMap: - name: ratelimit-statsd-exporter-config -{{- end }} diff --git a/charts/kubezero-istio/templates/ratelimit/servicemonitor.yaml b/charts/kubezero-istio/templates/ratelimit/servicemonitor.yaml deleted file mode 100644 index 0c229371..00000000 --- a/charts/kubezero-istio/templates/ratelimit/servicemonitor.yaml +++ /dev/null @@ -1,17 +0,0 @@ -{{- if and .Values.istiod.telemetry.enabled .Values.rateLimiting.enabled }} -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: istio-rate-limiting - namespace: {{ .Release.Namespace }} - labels: - {{- include "kubezero-lib.labels" . | nindent 4 }} -spec: - jobLabel: istio - targetLabels: [app] - selector: - matchExpressions: - - {key: app, operator: In, values: [ratelimit]} - endpoints: - - port: http-monitoring -{{- end }} diff --git a/charts/kubezero-istio/templates/servicemonitor.yaml b/charts/kubezero-istio/templates/servicemonitor.yaml deleted file mode 100644 index ade8d157..00000000 --- a/charts/kubezero-istio/templates/servicemonitor.yaml +++ /dev/null @@ -1,17 +0,0 @@ -{{- if .Values.istiod.telemetry.enabled }} -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: istio-component-monitor - namespace: {{ .Release.Namespace }} - labels: - {{- include "kubezero-lib.labels" . | nindent 4 }} -spec: - jobLabel: istio - targetLabels: [app] - selector: - matchExpressions: - - {key: istio, operator: In, values: [pilot]} - endpoints: - - port: http-monitoring -{{- end }} diff --git a/charts/kubezero-istio/update.sh b/charts/kubezero-istio/update.sh deleted file mode 100755 index 190d4c99..00000000 --- a/charts/kubezero-istio/update.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -set -ex - -. ../../scripts/lib-update.sh - -#login_ecr_public -update_helm - -export ISTIO_VERSION=$(yq eval '.dependencies[] | select(.name=="base") | .version' Chart.yaml) -export KIALI_VERSION=$(yq eval '.dependencies[] | select(.name=="kiali-server") | .version' Chart.yaml) - -# Get matching istioctl -[ -x istioctl ] && [ "$(./istioctl version --remote=false)" == $ISTIO_VERSION ] || { curl -sL https://github.com/istio/istio/releases/download/${ISTIO_VERSION}/istioctl-${ISTIO_VERSION}-linux-amd64.tar.gz | tar xz; chmod +x istioctl; } - -# Fetch dashboards from Grafana.com and update ZDT CM -../kubezero-metrics/sync_grafana_dashboards.py dashboards.yaml templates/grafana-dashboards.yaml - -update_docs diff --git a/charts/kubezero-istio/values.yaml b/charts/kubezero-istio/values.yaml deleted file mode 100644 index bc0716fb..00000000 --- a/charts/kubezero-istio/values.yaml +++ /dev/null @@ -1,92 +0,0 @@ -global: - variant: distroless - - logAsJson: true - - defaultPodDisruptionBudget: - enabled: false - - priorityClassName: "system-cluster-critical" - -istiod: - pilot: - autoscaleEnabled: false - replicaCount: 1 - - nodeSelector: - node-role.kubernetes.io/control-plane: "" - tolerations: - - key: node-role.kubernetes.io/control-plane - effect: NoSchedule - - resources: - requests: - cpu: 100m - memory: 128Mi -# env: -# PILOT_ENABLE_MYSQL_FILTER: true -# PILOT_ENABLE_REDIS_FILTER: true -# PILOT_HTTP10: true - - telemetry: - enabled: false - - meshConfig: - accessLogFile: /dev/stdout - accessLogEncoding: 'JSON' - tcpKeepalive: - interval: 60s - time: 120s - -kiali-server: - enabled: false - - auth: - strategy: anonymous - - deployment: - ingress_enabled: false - view_only_mode: true - - server: - metrics_enabled: false - - external_services: - custom_dashboards: - enabled: false - - prometheus: - url: "http://metrics-kube-prometheus-st-prometheus.monitoring:9090" - - istio: - enabled: false - gateway: istio-ingress/private-ingressgateway - #url: "kiali.example.com" - - -rateLimiting: - enabled: false - - log: - level: warn - format: json - - # 1MB local cache for already reached limits to reduce calls to Redis - localCacheSize: 1048576 - - # Wether to block requests if ratelimiting is down - failureModeDeny: false - - # rate limit descriptors for each domain, examples 10 req/s per sourceIP - descriptors: - ingress: - - key: remote_address - rate_limit: - unit: second - requests_per_unit: 10 - - privateIngress: - - key: remote_address - rate_limit: - unit: second - requests_per_unit: 10 diff --git a/charts/kubezero-lib/.helmignore b/charts/kubezero-lib/.helmignore deleted file mode 100644 index 0e8a0eb3..00000000 --- a/charts/kubezero-lib/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/charts/kubezero-lib/Chart.yaml b/charts/kubezero-lib/Chart.yaml deleted file mode 100644 index dd0afd4d..00000000 --- a/charts/kubezero-lib/Chart.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: v2 -name: kubezero-lib -description: KubeZero helm library - common helm functions and blocks -type: library -version: 0.1.6 -home: https://kubezero.com -icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png -keywords: - - kubezero -maintainers: - - name: Stefan Reimer - email: stefan@zero-downtime.net -kubeVersion: ">= 1.20.0" diff --git a/charts/kubezero-lib/README.md b/charts/kubezero-lib/README.md deleted file mode 100644 index 479c2594..00000000 --- a/charts/kubezero-lib/README.md +++ /dev/null @@ -1,11 +0,0 @@ -kubezero-lib -============ -KubeZero helm library - common helm functions and blocks - -Current chart version is `0.1.0` - -Source code can be found [here](https://kubezero.com) - - - - diff --git a/charts/kubezero-lib/templates/_helpers.tpl b/charts/kubezero-lib/templates/_helpers.tpl deleted file mode 100644 index 7aeae2b8..00000000 --- a/charts/kubezero-lib/templates/_helpers.tpl +++ /dev/null @@ -1,45 +0,0 @@ -{{- /* -Common naming functions -*/ -}} -{{- define "kubezero-lib.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{- define "kubezero-lib.fullname" -}} -{{- if .Values.fullnameOverride -}} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- $name := default .Chart.Name .Values.nameOverride -}} -{{- if .subchart }} -{{- $name = default .subchart .Values.nameOverride -}} -{{- end -}} -{{- if or (contains $name .Release.Name) (contains $name (printf "%s-%s" "kubezero" .Release.Name)) -}} -{{- .Release.Name | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} -{{- end -}} -{{- end -}} -{{- end -}} - -{{- define "kubezero-lib.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Selector labels -*/}} -{{- define "kubezero-lib.selectorLabels" -}} -app.kubernetes.io/name: {{ include "kubezero-lib.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end -}} - -{{- /* -Common set of labels -*/ -}} -{{- define "kubezero-lib.labels" -}} -helm.sh/chart: {{ include "kubezero-lib.chart" . }} -{{ include "kubezero-lib.selectorLabels" . }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -app.kubernetes.io/part-of: kubezero -{{- end -}} - diff --git a/charts/kubezero-logging/.helmignore b/charts/kubezero-logging/.helmignore deleted file mode 100644 index 0e8a0eb3..00000000 --- a/charts/kubezero-logging/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/charts/kubezero-logging/Chart.yaml b/charts/kubezero-logging/Chart.yaml deleted file mode 100644 index cc573c2f..00000000 --- a/charts/kubezero-logging/Chart.yaml +++ /dev/null @@ -1,30 +0,0 @@ -apiVersion: v2 -name: kubezero-logging -description: KubeZero Umbrella Chart for complete EFK stack -type: application -version: 0.8.12 -appVersion: 1.6.0 -home: https://kubezero.com -icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png -keywords: - - kubezero - - elasticsearch - - kibana - - fluentd - - fluent-bit -maintainers: - - name: Stefan Reimer - email: stefan@zero-downtime.net -dependencies: - - name: kubezero-lib - version: ">= 0.1.6" - repository: https://cdn.zero-downtime.net/charts/ - - name: fluentd - version: 0.5.2 - repository: https://fluent.github.io/helm-charts - condition: fluentd.enabled - - name: fluent-bit - version: 0.46.2 - repository: https://fluent.github.io/helm-charts - condition: fluent-bit.enabled -kubeVersion: ">= 1.26.0" diff --git a/charts/kubezero-logging/README.md b/charts/kubezero-logging/README.md deleted file mode 100644 index 0f008b49..00000000 --- a/charts/kubezero-logging/README.md +++ /dev/null @@ -1,135 +0,0 @@ -# kubezero-logging - -![Version: 0.8.12](https://img.shields.io/badge/Version-0.8.12-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.6.0](https://img.shields.io/badge/AppVersion-1.6.0-informational?style=flat-square) - -KubeZero Umbrella Chart for complete EFK stack - -**Homepage:** - -## Maintainers - -| Name | Email | Url | -| ---- | ------ | --- | -| Stefan Reimer | | | - -## Requirements - -Kubernetes: `>= 1.26.0` - -| Repository | Name | Version | -|------------|------|---------| -| https://cdn.zero-downtime.net/charts/ | kubezero-lib | >= 0.1.6 | -| https://fluent.github.io/helm-charts | fluent-bit | 0.46.2 | -| https://fluent.github.io/helm-charts | fluentd | 0.5.2 | - -## Changes from upstream -### ECK -- Operator mapped to controller nodes - -### ES - -- SSL disabled ( Todo: provide cluster certs and setup Kibana/Fluentd to use https incl. client certs ) - -- Installed Plugins: - - repository-s3 - - elasticsearch-prometheus-exporter - -- [Cross AZ Zone awareness](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-advanced-node-scheduling.html#k8s-availability-zone-awareness) is implemented via nodeSets - -### Kibana - -- increased timeout to ES to 3 minutes - -### FluentD - -### Fluent-bit -- support for dedot Lua filter to replace "." with "_" for all annotations and labels -- support for api audit log - -## Manual tasks ATM - -- install index template -- setup Kibana -- create `logstash-*` Index Pattern - -## Values - -| Key | Type | Default | Description | -|-----|------|---------|-------------| -| elastic_password | string | `""` | | -| es.nodeSets | list | `[]` | | -| es.prometheus | bool | `false` | | -| es.s3Snapshot.enabled | bool | `false` | | -| es.s3Snapshot.iamrole | string | `""` | | -| fluent-bit.config.customParsers | string | `"[PARSER]\n Name cri-log\n Format regex\n Regex ^(?