flyway初次实践

为什么需要flyway/liquibase 准确的说应该是为什么需要database migrations? 方便于多环境下的数据结构一致,例如多

Streaming PostgreSQL Updates to Kafka with Debezium

setup kubectl create namespace kafka-connect-tutorial kubectl config set-context --current --namespace kafka-connect-tutorial # optional kafka helm install kafka --namespace kafka-connect-tutorial apphub/kafka --set external.enabled=true,global.storageClass=fast,persistence.size=1Gi Kafka Connect client cat > kafka-client-deploy.yaml <<EOF # kafka-client-deploy.yaml apiVersion: v1 kind: Pod metadata: name: kafka-client spec: containers: - name: kafka-client image: confluentinc/cp-kafka:5.0.1 command: - sh - -c - "exec tail -f /dev/null" EOF kubectl create -f kafka-client-deploy.yaml -n kafka-connect-tutorial kubectl -n kafka-connect-tutorial exec kafka-client -- kafka-topics --zookeeper

k8s & rbd

创建 secret kubectl create secret generic ceph-secret --type="kubernetes.io/rbd" \ --from-literal=key='AQDbfnVfkbqeLxAAiPhSJvt1hVZrM9ntL7JGNQ==' \ --namespace=kube-system 创建存储类 cat > storage_class.yml <<EOF apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: rbd annotations: "storageclass.kubernetes.io/is-default-class": "true" provisioner: kubernetes.io/rbd parameters: monitors: 192.168.1.31:6789,192.168.1.32:6789,192.168.1.33:6789 adminId: admin adminSecretName: ceph-secret adminSecretNamespace: kube-system pool: rbd-k8s1 userId: admin userSecretName: ceph-secret userSecretNamespace: kube-system fsType: ext4 imageFormat: "2" imageFeatures: "layering" EOF kubectl apply -f storage_class.yml 创建pvc 应用绑

ceph install

REQUIREMENTS docker NTP lvm Any modern Linux * 3 INSTALL CEPHADM curl --silent --remote-name --location https://github.com/ceph/ceph/raw/octopus/src/cephadm/cephadm chmod +x cephadm ./cephadm add-repo --release octopus ./cephadm install BOOTSTRAP A NEW CLUSTER mkdir -p /etc/ceph cephadm bootstrap --mon-ip 192.168.1.31 => URL: https://ceph:8443/ User: admin Password: 62zgr41d25 ENABLE CEPH CLI # 1. 使用adm代理 cephadm shell # 2. 安装ceph-comm

mac装机必备工具

换了台机器,顺便把常用的app记录下来吧 xcode 直接app store安装即可 navicat,idea,vs code。。。 Iterm2(官网下载),

bind9(todo detail)

named-checkconf named-checkzone yoogo.local zones/yoogo.local systemctl restart bind9.service # 一定要重启下网络 netplan apply

二进制安装k8s

requirment 生产环境的部署Kubernetes集群方案 kubeadm Kubeadm是一个K8s部署工具,提供kubeadm init和kubeadm join,用于快