Migrate Cluster từ VKS tới VKS
Điều kiện cần
apiVersion: v1 kind: Service metadata: name: nginx namespace: mynamespace labels: app: nginx spec: ports: - port: 80 name: web selector: app: nginx type: NodePort --- apiVersion: apps/v1 kind: StatefulSet metadata: name: web namespace: mynamespace spec: selector: matchLabels: app: nginx serviceName: "nginx" replicas: 1 template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx ports: - containerPort: 80 name: web volumeMounts: - name: disk-ssd mountPath: /usr/share/nginx/html volumeClaimTemplates: - metadata: name: disk-ssd namespace: mynamespace spec: accessModes: [ "ReadWriteOnce" ] storageClassName: ssd-3000 resources: requests: storage: 40Gikubectl exec -n mynamespace -it web-0 bash cd /usr/share/nginx/html echo -e "<html>\n<head>\n <title>MyGreenNode</title>\n</head>\n<body>\n <h1>Hello, MyGreenNode</h1>\n</body>\n</html>" > index.html
Chuẩn bị cluster đích (Prepare target resource)
[Optional] Migrate resources private outside cluster
Cài đặt Velero trên cả 2 cluster nguồn và cluster đích (Install Velero tool)
Trên cả 2 Cluster (source and target)
Tại Cluster nguồn
Tại Cluster đích
Last updated

