Skip to content

Commit 30efc51

Browse files
authored
example: introduce start delay to give dns additional time to update (#7)
* example: introduce start delay to give dns additional time to update
1 parent fcb35e2 commit 30efc51

File tree

5 files changed

+35
-4
lines changed

5 files changed

+35
-4
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,21 @@ Tarantool Operator is up and running.
135135
kubectl get pods --watch
136136
```
137137

138+
1. Ensure cluster became operational:
139+
140+
```shell
141+
kubectl describe clusters.tarantool.io examples-kv-cluster
142+
```
143+
144+
wait until Status.State is Ready:
145+
146+
```shell
147+
...
148+
Status:
149+
State: Ready
150+
...
151+
```
152+
138153
1. Access the cluster web UI:
139154

140155
1. Get `minikube` vm IP-address:

README_RUS.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,22 @@ Kubernetes-оператор реализует API версии `tarantool.io/v1
135135
kubectl get pods --watch
136136
```
137137

138+
139+
1. Удостоверьтесь, что Cluster готов к работе:
140+
141+
```shell
142+
kubectl describe clusters.tarantool.io examples-kv-cluster
143+
```
144+
145+
ожидаем, когда поле Status.State примет значение Ready:
146+
147+
```shell
148+
...
149+
Status:
150+
State: Ready
151+
...
152+
```
153+
138154
1. Откройте веб-интерфейс администратора кластера:
139155

140156
1. Узнайте IP-адрес виртуальной машины `minikube`:

deploy/operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
serviceAccountName: tarantool-operator
1616
containers:
1717
- name: tarantool-operator
18-
image: vasiliyt/tarantool-operator:dev
18+
image: vasiliyt/tarantool-operator:0.0.1
1919
command:
2020
- tarantool-operator
2121
imagePullPolicy: Always

examples/kv/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ spec:
6969
value: "1"
7070
containers:
7171
- name: pim-storage
72-
image: vasiliyt/tarantool-operator-example-kv:devel
72+
image: vasiliyt/tarantool-operator-examples-kv:0.0.2
7373
volumeMounts:
7474
- mountPath: "/tarantool/data"
7575
name: www
@@ -128,7 +128,7 @@ spec:
128128
value: "1"
129129
containers:
130130
- name: pim-router
131-
image: vasiliyt/tarantool-operator-example-kv:devel
131+
image: vasiliyt/tarantool-operator-examples-kv:0.0.2
132132
volumeMounts:
133133
- mountPath: "/tarantool/data"
134134
name: www

examples/kv/key-value-store/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ local t = resolve_uri(advertise_uri, 50)
6868
if not t then os.exit(1) end
6969
fiber.sleep(5)
7070

71-
local ok, err = cluster.cfg({
71+
local ok, err = cartridge.cfg({
7272
alias = instance_name,
7373
workdir = work_dir,
7474
advertise_uri = advertise_uri,

0 commit comments

Comments
 (0)