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..ec646c7 --- /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 mention it here again for completeness +apiVersion: deployments.plural.sh/v1alpha1 +kind: GitRepository +metadata: + name: cd-demo + namespace: infra +spec: + url: https://github.com/pluralsh/plrl-cd-demo.git +