Migrate Cluster from another platform to VKS
Prerequisites
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
Prepare target cluster (Prepare target resource)
[Optional] Migrate private resources outside cluster
Install Velero on both source and destination clusters (Install Velero tool)
On both Clusters (source and target)
For Clusters on Amazon Elastic Kubernetes Service (EKS)
At the source Cluster
At the destination Cluster
For Cluster on Google Kubernetes Engine (GKE)
At the source Cluster
At the destination Cluster
Last updated

