Migrate Cluster từ các platform khác 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: standard-rwo 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)
Đối với Cluster trên Amazon Elastic Kubernetes Service (EKS)
Tại Cluster nguồn
Tại Cluster đích
Đối với Cluster trên Google Kubernetes Engine (GKE)
Tại Cluster nguồn
Tại Cluster đích
Last updated

