es kafka
parent
6606012996
commit
c5c418b328
|
@ -95,7 +95,7 @@ spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 100
|
fsGroup: 100
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
app.kubernetes.io/name: es-tcs
|
app.kubernetes.io/name: tcs
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: init
|
- name: init
|
||||||
image: busybox
|
image: busybox
|
||||||
|
|
|
@ -99,7 +99,7 @@ spec:
|
||||||
serviceAccountName: jenkins-admin
|
serviceAccountName: jenkins-admin
|
||||||
containers:
|
containers:
|
||||||
- name: jenkins
|
- name: jenkins
|
||||||
image: jenkins/jenkins:2.410
|
image: jenkins/jenkins:2.414
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: "2Gi"
|
memory: "2Gi"
|
|
@ -3,23 +3,22 @@ apiVersion: platform.confluent.io/v1beta1
|
||||||
kind: Zookeeper
|
kind: Zookeeper
|
||||||
metadata:
|
metadata:
|
||||||
name: zookeeper
|
name: zookeeper
|
||||||
namespace: basic
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 3
|
replicas: 3
|
||||||
|
oneReplicaPerNode: true
|
||||||
configOverrides:
|
configOverrides:
|
||||||
jvm:
|
jvm:
|
||||||
- "-Xmx128m"
|
- "-Xmx128m"
|
||||||
podTemplate:
|
podTemplate:
|
||||||
affinity:
|
affinity:
|
||||||
podAntiAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
- labelSelector:
|
nodeSelectorTerms:
|
||||||
matchExpressions:
|
- matchExpressions:
|
||||||
- key: app
|
- key: app.kubernetes.io/name
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- zookeeper
|
- tcs
|
||||||
topologyKey: kubernetes.io/hostname
|
|
||||||
image:
|
image:
|
||||||
application: confluentinc/cp-zookeeper:7.4.0
|
application: confluentinc/cp-zookeeper:7.4.0
|
||||||
init: confluentinc/confluent-init-container:2.6.0
|
init: confluentinc/confluent-init-container:2.6.0
|
||||||
|
@ -32,9 +31,9 @@ apiVersion: platform.confluent.io/v1beta1
|
||||||
kind: Kafka
|
kind: Kafka
|
||||||
metadata:
|
metadata:
|
||||||
name: kafka
|
name: kafka
|
||||||
namespace: basic
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 3
|
replicas: 3
|
||||||
|
oneReplicaPerNode: true
|
||||||
configOverrides:
|
configOverrides:
|
||||||
server:
|
server:
|
||||||
- auto.create.topics.enable=true
|
- auto.create.topics.enable=true
|
||||||
|
@ -50,15 +49,14 @@ spec:
|
||||||
memory: "4G"
|
memory: "4G"
|
||||||
cpu: "1"
|
cpu: "1"
|
||||||
affinity:
|
affinity:
|
||||||
podAntiAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
- labelSelector:
|
nodeSelectorTerms:
|
||||||
matchExpressions:
|
- matchExpressions:
|
||||||
- key: app
|
- key: app.kubernetes.io/name
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- kafka
|
- tcs
|
||||||
topologyKey: kubernetes.io/hostname
|
|
||||||
image:
|
image:
|
||||||
application: confluentinc/cp-server:7.4.0
|
application: confluentinc/cp-server:7.4.0
|
||||||
init: confluentinc/confluent-init-container:2.6.0
|
init: confluentinc/confluent-init-container:2.6.0
|
||||||
|
@ -67,36 +65,47 @@ spec:
|
||||||
name: local-kafka
|
name: local-kafka
|
||||||
metricReporter:
|
metricReporter:
|
||||||
enabled: true
|
enabled: true
|
||||||
dependencies:
|
listeners:
|
||||||
zookeeper:
|
external:
|
||||||
endpoint: zookeeper.basic.svc.cluster.local:2181
|
# authentication:
|
||||||
|
# type: plain
|
||||||
|
# jaasConfig:
|
||||||
|
# secretRef: credentials
|
||||||
|
externalAccess:
|
||||||
|
type: nodePort
|
||||||
|
nodePort:
|
||||||
|
host: tcs-kafka.beaconfireinc.com
|
||||||
|
nodePortOffset: 30001
|
||||||
|
# dependencies:
|
||||||
|
# 多个kakfa集群复用zk
|
||||||
|
# zookeeper:
|
||||||
|
# endpoint: zookeeper.common.svc.cluster.local:2181
|
||||||
---
|
---
|
||||||
apiVersion: platform.confluent.io/v1beta1
|
apiVersion: platform.confluent.io/v1beta1
|
||||||
kind: SchemaRegistry
|
kind: SchemaRegistry
|
||||||
metadata:
|
metadata:
|
||||||
name: schemaregistry
|
name: schemaregistry
|
||||||
namespace: basic
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 3
|
replicas: 3
|
||||||
|
oneReplicaPerNode: true
|
||||||
configOverrides:
|
configOverrides:
|
||||||
jvm:
|
jvm:
|
||||||
- "-Xmx128m"
|
- "-Xmx128m"
|
||||||
podTemplate:
|
podTemplate:
|
||||||
affinity:
|
affinity:
|
||||||
podAntiAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
- labelSelector:
|
nodeSelectorTerms:
|
||||||
matchExpressions:
|
- matchExpressions:
|
||||||
- key: app
|
- key: app.kubernetes.io/name
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- schemaregistry
|
- tcs
|
||||||
topologyKey: kubernetes.io/hostname
|
|
||||||
image:
|
image:
|
||||||
application: confluentinc/cp-schema-registry:7.4.0
|
application: confluentinc/cp-schema-registry:7.4.0
|
||||||
init: confluentinc/confluent-init-container:2.6.0
|
init: confluentinc/confluent-init-container:2.6.0
|
||||||
externalAccess:
|
externalAccess:
|
||||||
type: nodePort
|
type: nodePort
|
||||||
nodePort:
|
nodePort:
|
||||||
host: 10.2.0.10
|
host: tcs-kafka.beaconfireinc.com
|
||||||
nodePortOffset: 30035
|
nodePortOffset: 30005
|
Loading…
Reference in New Issue