clickhouse-sink-connector/doc/k8s_build_connect_images.md
2022-05-06 15:14:20 +03:00

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)