@@ -19,35 +19,35 @@ Deploy the application to Minikube using the Linkerd2 service mesh.
19
19
20
20
1 . Install the ` linkerd ` CLI
21
21
22
- ``` bash
23
- curl https://run.linkerd.io/install | sh
24
- ```
22
+ ``` bash
23
+ curl https://run.linkerd.io/install | sh
24
+ ```
25
25
26
26
1. Install Linkerd2
27
27
28
- ``` bash
29
- linkerd install | kubectl apply -f -
30
- ```
28
+ ` ` ` bash
29
+ linkerd install | kubectl apply -f -
30
+ ` ` `
31
31
32
32
1. View the dashboard!
33
33
34
- ``` bash
35
- linkerd dashboard
36
- ```
34
+ ` ` ` bash
35
+ linkerd dashboard
36
+ ` ` `
37
37
38
38
1. Inject, Deploy, and Enjoy
39
39
40
- ``` bash
41
- kubectl kustomize kustomize/deployment | \
42
- linkerd inject - | \
43
- kubectl apply -f -
44
- ```
40
+ ` ` ` bash
41
+ kubectl kustomize kustomize/deployment | \
42
+ linkerd inject - | \
43
+ kubectl apply -f -
44
+ ` ` `
45
45
46
46
1. Use the app!
47
47
48
- ``` bash
49
- minikube -n emojivoto service web-svc
50
- ```
48
+ ` ` ` bash
49
+ minikube -n emojivoto service web-svc
50
+ ` ` `
51
51
52
52
# ## In docker-compose
53
53
@@ -89,28 +89,31 @@ go run emojivoto-web/cmd/vote-bot/main.go
89
89
90
90
## Releasing a new version
91
91
92
- To update the docker images:
92
+ To build and push multi-arch docker images:
93
93
94
94
1. Update the tag name in `common.mk`
95
- 1 . Update the base image tags in ` Makefile ` and ` Dockerfile `
96
- 1 . Build base docker image ` make build-base-docker-image `
97
- 1 . Build docker images ` make build `
98
- 1 . Push the docker images to hub.docker.com
95
+ 1. Create the Buildx builder instance
96
+
97
+ ```bash
98
+ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
99
+ docker buildx create --name=multiarch-builder --driver=docker-container --use
100
+ docker buildx inspect multiarch-builder --bootstrap
101
+ ```
102
+
103
+ 1. Build & push the multi-arch docker images to hub.docker.com
99
104
100
105
```bash
101
106
docker login
102
- docker push buoyantio/emojivoto-svc-base:v10
103
- docker push buoyantio/emojivoto-emoji-svc:v10
104
- docker push buoyantio/emojivoto-voting-svc:v10
105
- docker push buoyantio/emojivoto-web:v10
107
+ make multi-arch
106
108
```
107
109
108
110
1. Update:
109
- - ` docker-compose.yml`
110
- - (` kustomize/deployment/emoji.yml` ),
111
- - (` kustomize/deployment/vote-bot.yml` ),
112
- - (` kustomize/deployment/voting.yml` ),
113
- - (` kustomize/deployment/web.yml` ),
111
+ - `docker-compose.yml`
112
+ - `kustomize/deployment/emoji.yml`
113
+ - `kustomize/deployment/vote-bot.yml`
114
+ - `kustomize/deployment/voting.yml`
115
+ - `kustomize/deployment/web.yml`
116
+
114
117
1. Distribute to the Linkerd website repo
115
118
116
119
```bash
0 commit comments