mirror of
https://github.com/valitydev/clickhouse-sink-connector.git
synced 2024-11-06 18:45:27 +00:00
env: k8s basic deploy
This commit is contained in:
parent
302942e623
commit
64cc301824
39
deploy/k8s/debezium.yaml
Normal file
39
deploy/k8s/debezium.yaml
Normal file
@ -0,0 +1,39 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: debezium-connect
|
||||
namespace: mysql
|
||||
spec:
|
||||
containers:
|
||||
- name: connect
|
||||
image: debezium/connect
|
||||
ports:
|
||||
- name: debezium
|
||||
containerPort: 8083
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: BOOTSTRAP_SERVERS
|
||||
value: "one-node-cluster-0.one-node-cluster.redpanda.svc.cluster.local:9092"
|
||||
- name: GROUP_ID
|
||||
value: "1"
|
||||
- name: CONFIG_STORAGE_TOPIC
|
||||
value: "inventory.configs"
|
||||
- name: OFFSET_STORAGE_TOPIC
|
||||
value: "inventory.offset"
|
||||
- name: STATUS_STORAGE_TOPIC
|
||||
value: "inventory.status"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: debezium-connect
|
||||
namespace: mysql
|
||||
spec:
|
||||
ports:
|
||||
- name: debezium
|
||||
port: 8083
|
||||
targetPort: 8083
|
||||
selector:
|
||||
app.kubernetes.io/name: debezium-connect
|
||||
clusterIP: None
|
||||
type: ClusterIP
|
20
deploy/k8s/mysql.yaml
Normal file
20
deploy/k8s/mysql.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: mypwds
|
||||
namespace: mysql
|
||||
type: Opaque
|
||||
data:
|
||||
rootHost: JQ==
|
||||
rootPassword: YWx0aW5pdHk=
|
||||
rootUser: cm9vdA==
|
||||
---
|
||||
apiVersion: mysql.oracle.com/v2alpha1
|
||||
kind: InnoDBCluster
|
||||
metadata:
|
||||
name: mycluster
|
||||
spec:
|
||||
secretName: mypwds
|
||||
instances: 1
|
||||
router:
|
||||
instances: 1
|
Loading…
Reference in New Issue
Block a user