Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: kps stack #2

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions kps/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
install https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack
18 changes: 18 additions & 0 deletions kps/helm-values/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
global:
rbac:
pspEnabled: false


kubeControllerManager:
enabled: false

kubeScheduler:
enabled: false

defaultRules:
rules:
kubeProxy: false

grafana:
enabled: false

37 changes: 37 additions & 0 deletions kps/service.yaml
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions kps/setup.yaml
Original file line number Diff line number Diff line change
@@ -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