From 1780db8959e73c75cbceeda852936f6688562e90 Mon Sep 17 00:00:00 2001 From: Hans Rauer Date: Fri, 16 Feb 2024 19:03:39 +0100 Subject: [PATCH 1/2] init kps stack --- kps/README.md | 1 + kps/helm-values/values.yaml | 18 ++++++++++++++++++ kps/service.yaml | 37 +++++++++++++++++++++++++++++++++++++ kps/setup.yaml | 27 +++++++++++++++++++++++++++ 4 files changed, 83 insertions(+) create mode 100644 kps/README.md create mode 100644 kps/helm-values/values.yaml create mode 100644 kps/service.yaml create mode 100644 kps/setup.yaml diff --git a/kps/README.md b/kps/README.md new file mode 100644 index 0000000..d03d2a9 --- /dev/null +++ b/kps/README.md @@ -0,0 +1 @@ +install https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack \ No newline at end of file diff --git a/kps/helm-values/values.yaml b/kps/helm-values/values.yaml new file mode 100644 index 0000000..ab0dc1c --- /dev/null +++ b/kps/helm-values/values.yaml @@ -0,0 +1,18 @@ +global: + rbac: + pspEnabled: false + + +kubeControllerManager: + enabled: false + +kubeScheduler: + enabled: false + +defaultRules: + rules: + kubeProxy: false + +grafana: + enabled: false + diff --git a/kps/service.yaml b/kps/service.yaml new file mode 100644 index 0000000..64bd7d6 --- /dev/null +++ b/kps/service.yaml @@ -0,0 +1,37 @@ +apiVersion: deployments.plural.sh/v1alpha1 +kind: ServiceDeployment +metadata: + name: kube-prometheus-stack + namespace: infra +spec: + namespace: kps + git: + folder: kps/helm-values + ref: main + repositoryRef: + kind: GitRepository + name: cd-demo + namespace: infra + helm: + version: 56.5.0 + chart: kube-prometheus-stack + valuesFiles: + - values.yaml + repository: + name: prometheus-community + namespace: infra + clusterRef: + kind: Cluster + name: mgmt + namespace: infra +--- +# make global so it's also deployed on the other clusters +apiVersion: deployments.plural.sh/v1alpha1 +kind: GlobalService +metadata: + name: kube-prometheus-stack + namespace: infra +spec: + serviceRef: + name: kube-promotheues-stack + namespace: infra diff --git a/kps/setup.yaml b/kps/setup.yaml new file mode 100644 index 0000000..79f30b6 --- /dev/null +++ b/kps/setup.yaml @@ -0,0 +1,27 @@ +# TODO: change to your own cluster name +#apiVersion: deployments.plural.sh/v1alpha1 +#kind: Cluster +#metadata: +# name: byok-workload +# namespace: infra +#spec: +# handle: byok-workload +--- +apiVersion: source.toolkit.fluxcd.io/v1beta1 +kind: HelmRepository +metadata: + name: prometheus-community + namespace: infra +spec: + interval: 5m0s + url: https://prometheus-community.github.io/helm-charts +--- +# this should be already included on the demo cluster, but we reference it here for the sake referencing the helm values file +apiVersion: deployments.plural.sh/v1alpha1 +kind: GitRepository +metadata: + name: cd-demo + namespace: infra +spec: + url: https://github.com/pluralsh/plrl-cd-demo.git + From 596f9d3924da755d60e6d54b0ba67a8d1ca8dc86 Mon Sep 17 00:00:00 2001 From: Hans Rauer Date: Fri, 16 Feb 2024 19:14:21 +0100 Subject: [PATCH 2/2] change comment --- kps/setup.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kps/setup.yaml b/kps/setup.yaml index 79f30b6..ec646c7 100644 --- a/kps/setup.yaml +++ b/kps/setup.yaml @@ -16,7 +16,7 @@ spec: interval: 5m0s url: https://prometheus-community.github.io/helm-charts --- -# this should be already included on the demo cluster, but we reference it here for the sake referencing the helm values file +# this should be already included on the demo cluster, but we mention it here again for completeness apiVersion: deployments.plural.sh/v1alpha1 kind: GitRepository metadata: