1- # Member Architecture change
1+ # Architecture change
22
3- To change manually architecture of specific member, you can use annotation:
3+ Currently ` AMD64 ` is a default architecture in the operator
4+ To enable ` ARM64 ` support in operator add following config in kube-arangodb chart:
5+
6+ ``` bash
7+ helm upgrade --install kube-arangodb \
8+ https://github.com/arangodb/kube-arangodb/releases/download/$VER /kube-arangodb-$VER .tgz \
9+ --set " operator.architectures={amd64,arm64}"
10+ ```
11+
12+ ## ARM64 ArangoDeployment
13+
14+ ` AMD64 ` is a default architecture in the ArangoDeployment.
15+ ` ARM64 ` is available since ArangoDB 3.10.0.
16+ To create ` ARM64 ` ArangoDeployment you need to add ` arm64 ` architecture to the deployment:
17+
18+ ``` yaml
19+ apiVersion : database.arangodb.com/v1
20+ kind : ArangoDeployment
21+ metadata :
22+ name : cluster
23+ spec :
24+ image : arangodb:3.10
25+ mode : Cluster
26+ architecture :
27+ - arm64
28+ ` ` `
29+
30+ ## Member Architecture change (Enterprise only)
31+
32+ To migrate members from AMD64 to ARM64 you need to add ` arm64` architecture to the existing deployment as a first item on the list, e.g.
33+ ` ` ` yaml
34+ apiVersion: database.arangodb.com/v1
35+ kind: ArangoDeployment
36+ metadata:
37+ name: cluster
38+ spec:
39+ image: arangodb:3.10
40+ mode: Cluster
41+ architecture:
42+ - arm64
43+ - amd64
44+ ` ` `
45+
46+ All new members since now will be created on ARM64 nodes
47+ All recreated members since now will be created on ARM64 nodes
48+
49+ To change architecture of a specific member, you need to use following annotation :
450` ` ` bash
5- kubectl annotate pod arango-pod deployment.arangodb.com/arch=arm64
51+ kubectl annotate pod {MY_POD} deployment.arangodb.com/arch=arm64
652` ` `
753
854It will add to the member status `ArchitectureMismatch` condition, e.g. :
@@ -14,7 +60,7 @@ It will add to the member status `ArchitectureMismatch` condition, e.g.:
1460 type: ArchitectureMismatch
1561` ` `
1662
17- To provide requested arch changes for the member we need rotate it, so additional step is required:
63+ To provide requested arch changes for the member, we need to rotate it, so an additional step is required :
1864` ` ` bash
19- ` kubectl annotate pod arango-pod deployment.arangodb.com/rotate=true`
65+ ` kubectl annotate pod {MY_POD} deployment.arangodb.com/rotate=true`
2066```
0 commit comments