Skip to content

Commit

Permalink
feat(apps/prod): add kafka operator
Browse files Browse the repository at this point in the history
implement with https://strimzi.io/

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo committed Jul 30, 2024
1 parent c688e88 commit 966f4ae
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 1 deletion.
5 changes: 5 additions & 0 deletions apps/prod/kafka/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- operator-release.yaml
19 changes: 19 additions & 0 deletions apps/prod/kafka/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: v1
kind: Namespace
metadata:
name: kafka-opeator
annotations:
scheduler.alpha.kubernetes.io/defaultTolerations:
'[{"operator": "Equal", "effect": "NoSchedule", "key": "dedicated",
"value": "test-infra"}]'
scheduler.alpha.kubernetes.io/node-selector: enable-ci=true
---
apiVersion: v1
kind: Namespace
metadata:
name: kafka
annotations:
scheduler.alpha.kubernetes.io/defaultTolerations:
'[{"operator": "Equal", "effect": "NoSchedule", "key": "dedicated",
"value": "test-infra"}]'
scheduler.alpha.kubernetes.io/node-selector: enable-ci=true
18 changes: 18 additions & 0 deletions apps/prod/kafka/operator-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: strimzi-kafka-operator
namespace: kafka-operator
spec:
chart:
spec:
chart: strimzi-kafka-operator
version: 0.42.0
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: strimzi
namespace: flux-system
interval: 5m0s
values:
replicas: 2
1 change: 1 addition & 0 deletions apps/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ resources:
- brc
- buildbarn
- prow-worker
- kafka
- cloudevents-server
- boskos
- git-cdn
Expand Down
11 changes: 10 additions & 1 deletion infrastructure/_base/sources/helm-repo-others.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,13 @@ metadata:
spec:
interval: 24h
url: https://helm.mittwald.de

---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: strimzi
namespace: flux-system
spec:
interval: 24h
type: oci
url: oci://quay.io/strimzi-helm

0 comments on commit 966f4ae

Please sign in to comment.