mirror of
https://github.com/valitydev/clickhouse-sink-connector.git
synced 2024-11-06 10:35:21 +00:00
1.2 KiB
1.2 KiB
debezium
create secret
NAMESPACE=debezium
kubectl create ns ${NAMESPACE}
kubectl -n ${NAMESPACE} create secret generic docker-access-secret \
--from-file=.dockerconfigjson=${HOME}/.docker/config.json \
--type=kubernetes.io/dockerconfigjson
apiVersion: v1
kind: Secret
metadata:
namespace: debezium
name: docker-access-secret
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: cat ~/.docker/config.json | base64
sink
create secret
NAMESPACE="sink"
kubectl create namespace "${NAMESPACE}"
kubectl -n ${NAMESPACE} create secret generic docker-access-secret \
--from-file=.dockerconfigjson=${HOME}/.docker/config.json \
--type=kubernetes.io/dockerconfigjson
apiVersion: v1
kind: Secret
metadata:
namespace: debezium
name: docker-access-secret
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: cat ~/.docker/config.json | base64
BASE=$(pwd)
mvn clean compile package
rm -f ${BASE}/deploy/k8s/artefacts/*.tgz
(cd ${BASE}/deploy/libs; find . -name '*.jar' | xargs tar czvf ${BASE}/deploy/k8s/artefacts/libs.tgz)
(cd ${BASE}/target; find . -name '*.jar' | xargs tar czvf ${BASE}/deploy/k8s/artefacts/sink.tgz)