env: k8s basic deploy

This commit is contained in:
Vladislav Klimenko 2022-04-04 11:07:34 +03:00
parent 302942e623
commit 64cc301824
2 changed files with 59 additions and 0 deletions

39
deploy/k8s/debezium.yaml Normal file
View 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
View 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