first commit

This commit is contained in:
Hoang Nguyen
2026-05-05 22:30:30 +02:00
commit 09a368b484
9 changed files with 174 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: kafka-dev
namespace: argocd
spec:
project: default
source:
repoURL: 'https://gitea.vhn-demo.duckdns.org/hoang/strimzi.git'
path: k8s/overlays/dev
targetRevision: main
destination:
server: 'https://kubernetes.default.svc'
namespace: kafka-dev
syncPolicy:
automated:
prune: true
selfHeel: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
dependsOn:
- name: strimzi-operator

View File

@@ -0,0 +1,40 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: strimzi-operator
namespace: argocd
spec:
project: default
source:
repoURL: 'https://strimzi.io/charts/'
chart: strimzi-kafka-operator
targetRevision: 0.40.0
helm:
values: |
installCRDs: false
resources:
requests:
cpu: "500m"
memory: 512Mi
limits:
cpu: "1000m"
memory: 1Gi
destination:
server: 'https://kubernetes.default.svc'
namespace: kafka-system
syncPolicy:
automated:
prune: true
selfHeel: false
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
ignoreDifferences:
- group: apps
kind: Deployment
name: strimzi-cluster-operator
jsonPointers:
- /spec/template/spec/volumes
template:
spec:
terminationGracePeriodSeconds: 60

View File

@@ -0,0 +1,44 @@
apiVersion: kafka.strimzi.io/v1beta2
kind: Kafka
metadata:
name: dev-cluster
namespace: kafka
spec:
kafka:
version: 3.6.1
replicas: 1
listeners:
- name: plain
port: 9092
type: internal
tls: false
config:
offsets.topic.replication.factor: 1
transaction.state.log.replication.factor: 1
transaction.state.log.min.isr: 1
storage:
type: ephemeral
zookeeper:
replicas: 1
storage:
type: ephemeral
---
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
metadata:
name: dev-topic
labels:
strimzi.io/cluster: dev-cluster
spec:
partitions: 1
replicas: 1
---
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaUser
metadata:
name: dev-user
labels:
strimzi.io/cluster: dev-cluster
spec:
authentication:
type: scram-sha-512

View File

@@ -0,0 +1,24 @@
apiVersion: kafka.strimzi.io/v1beta2
kind: Kafka
metadata:
name: dev-cluster
namespace: kafka
spec:
kafka:
version: 3.6.1
replicas: 1
listeners:
- name: plain
port: 9092
type: internal
tls: false
config:
offsets.topic.replication.factor: 1
transaction.state.log.replication.factor: 1
transaction.state.log.min.isr: 1
storage:
type: ephemeral
zookeeper:
replicas: 1
storage:
type: ephemeral

View File

@@ -0,0 +1,4 @@
- kafka.yaml
- topics.yaml
- users.yaml

View File

@@ -0,0 +1,9 @@
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
metadata:
name: dev-topic
labels:
strimzi.io/cluster: dev-cluster
spec:
partitions: 1
replicas: 1

View File

@@ -0,0 +1,9 @@
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaUser
metadata:
name: dev-user
labels:
strimzi.io/cluster: dev-cluster
spec:
authentication:
type: scram-sha-512

View File

@@ -0,0 +1,14 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: strimzi-cluster-operator
spec:
template:
spec:
volumes:
- name: strimzi-tmp
emptyDir:
sizeLimit: 100Mi
- name: co-config-volume
configMap:
name: strimzi-cluster-operator

View File

@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base/kafka-cluster