Skip to content

Commit 76dae78

Browse files
committed
Remove MCS references from StatefulSet start ordinal blog post
1 parent bd610ae commit 76dae78

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed

content/en/blog/_posts/2022-12-16-statefulset-migration.md

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -72,31 +72,22 @@ Tools Required:
7272
* [yq](https://github.com/mikefarah/yq)
7373
* [helm](https://helm.sh/docs/helm/helm_install/)
7474

75-
Pre-requisites: Two clusters named `source` and `destination`.
75+
Pre-requisites: Two Kubernetes clusters named `source` and `destination`.
7676
* `StatefulSetStartOrdinal` feature gate is enabled on both clusters
77-
* [MultiClusterServices](https://github.com/kubernetes/enhancements/tree/master/keps/sig-multicluster/1645-multi-cluster-services-api)
78-
support is enabled
7977
* The same default `StorageClass` is installed on both clusters. This
8078
`StorageClass` should provision underlying storage that is accessible from
8179
both clusters.
80+
* A flat network topology that allows for pods to be accessible across both
81+
Kubernetes clusters. If creating clusters on a cloud provider, this
82+
configuration may be called private cloud or private network.
8283

8384
1. Create a demo namespace on both clusters.
8485

8586
```
8687
kubectl create ns kep-3335
8788
```
8889

89-
2. Deploy a `ServiceExport` on both clusters.
90-
91-
```
92-
kind: ServiceExport
93-
apiVersion: multicluster.x-k8s.io/v1alpha1
94-
metadata:
95-
namespace: kep-3335
96-
name: redis-redis-cluster-headless
97-
```
98-
99-
3. Deploy a Redis cluster on `source`.
90+
2. Deploy a Redis cluster on `source`.
10091

10192
```
10293
helm repo add bitnami https://charts.bitnami.com/bitnami
@@ -105,7 +96,7 @@ support is enabled
10596
--set persistence.size=1Gi
10697
```
10798

108-
4. On `source`, check the replication status.
99+
3. On `source`, check the replication status.
109100

110101
```
111102
kubectl exec -it redis-redis-cluster-0 -- /bin/bash -c \
@@ -121,7 +112,7 @@ support is enabled
121112
2cff613d763b22c180cd40668da8e452edef3fc8 10.104.0.17:6379@16379 master - 0 1669764410000 2 connected 5461-10922
122113
```
123114

124-
5. On `destination`, deploy Redis with zero replicas.
115+
4. On `destination`, deploy Redis with zero replicas.
125116

126117
```
127118
helm install redis --namespace kep-3335 \
@@ -132,13 +123,13 @@ support is enabled
132123
--set existingSecret=redis-redis-cluster
133124
```
134125

135-
6. Scale down replica `redis-redis-cluster-5` in the source cluster.
126+
5. Scale down replica `redis-redis-cluster-5` in the source cluster.
136127

137128
```
138129
kubectl patch sts redis-redis-cluster -p '{"spec": {"replicas": 5}}'
139130
```
140131

141-
7. Migrate dependencies from `source` to `destination`.
132+
6. Migrate dependencies from `source` to `destination`.
142133

143134
The following commands copy resources from `source` to `destionation`. Details
144135
that are not relevant in `destination` cluster are removed (eg: `uid`,
@@ -173,14 +164,14 @@ support is enabled
173164
kubectl create -f /tmp/secret-redis-redis-cluster.yaml
174165
```
175166

176-
8. Scale up replica `redis-redis-cluster-5` in the destination cluster, with a
167+
7. Scale up replica `redis-redis-cluster-5` in the destination cluster, with a
177168
start ordinal of 5:
178169

179170
```
180171
kubectl patch sts redis-redis-cluster -p '{"spec": {"ordinals": {"start": 5}, "replicas": 1}}'
181172
```
182173

183-
9. On the source cluster, check the replication status.
174+
8. On the source cluster, check the replication status.
184175

185176
```
186177
kubectl exec -it redis-redis-cluster-0 -- /bin/bash -c \

0 commit comments

Comments
 (0)