Skip to content

Commit 3000373

Browse files
cheina97adamjensenbot
authored andcommitted
Examples: k8s version update
1 parent 1ebbdbf commit 3000373

File tree

16 files changed

+111
-60
lines changed

16 files changed

+111
-60
lines changed

docs/examples/global-ingress.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ The output should be similar to:
8585

8686
```text
8787
NAME STATUS ROLES AGE VERSION
88-
liqo-gslb-us Ready agent 17s v1.22.6+k3s1
88+
liqo-gslb-us Ready agent 14s v1.25.0+k3s1
8989
```
9090

9191
## Deploy an application

docs/examples/offloading-with-policies.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ kubectl get node --selector=liqo.io/type=virtual-node --show-labels
8585
```
8686

8787
```text
88-
NAME STATUS ROLES AGE VERSION LABELS
89-
liqo-florence Ready agent 2m30s v1.23.6 liqo.io/remote-cluster-id=4858caa2-7848-4aab-a6b4-6984389bac56,liqo.io/type=virtual-node,topology.liqo.io/region=center
90-
liqo-naples Ready agent 2m29s v1.23.6 liqo.io/remote-cluster-id=53d11339-fc85-4741-a912-a3eda781a69e,liqo.io/type=virtual-node,topology.liqo.io/region=south
88+
NAME STATUS ROLES AGE VERSION LABELS
89+
liqo-florence Ready agent 19s v1.25.0 liqo.io/remote-cluster-id=5f3b5abd-cccb-4f75-931b-d6b1ca95fa7d,liqo.io/type=virtual-node,topology.liqo.io/region=center
90+
liqo-naples Ready agent 14s v1.25.0 liqo.io/remote-cluster-id=edc8c24a-4c11-48b8-8b0e-2a95cf7464af,liqo.io/type=virtual-node,topology.liqo.io/region=south
9191
```
9292

9393
```{admonition} Note
@@ -134,24 +134,25 @@ kubectl get namespaceoffloadings offloading -n liqo-demo -o yaml
134134
```yaml
135135
...
136136
status:
137+
observedGeneration: 1
137138
offloadingPhase: Ready
138139
remoteNamespaceName: liqo-demo
139140
remoteNamespacesConditions:
140-
florence-539f8b:
141-
- lastTransitionTime: "2022-05-05T15:08:33Z"
142-
message: You have not selected this cluster through ClusterSelector fields
141+
florence-7ab115:
142+
- lastTransitionTime: "2023-01-30T09:50:05Z"
143+
message: The remote cluster has not been selected through the ClusterSelector field
143144
reason: ClusterNotSelected
144145
status: "False"
145146
type: OffloadingRequired
146-
naples-7881be:
147-
- lastTransitionTime: "2022-05-05T15:08:43Z"
147+
naples-5eada1:
148+
- lastTransitionTime: "2023-01-30T09:50:05Z"
148149
message: The remote cluster has been selected through the ClusterSelector field
149150
reason: ClusterSelected
150151
status: "True"
151152
type: OffloadingRequired
152-
- lastTransitionTime: "2022-05-05T15:08:43Z"
153-
message: Namespace correctly offloaded on this cluster
154-
reason: RemoteNamespaceCreated
153+
- lastTransitionTime: "2023-01-30T09:50:05Z"
154+
message: Namespace correctly offloaded to the remote cluster
155+
reason: NamespaceCreated
155156
status: "True"
156157
type: Ready
157158
```
@@ -195,9 +196,9 @@ kubectl get pod -n liqo-demo -o wide
195196
```
196197

197198
```text
198-
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
199-
app-center-6f6bd7547b-dh4m4 0/1 Pending 0 2m30s <none> <none> <none> <none>
200-
app-south-85b9b99c4d-stwhw 1/1 Running 0 2m30s 10.204.0.12 liqo-naples <none> <none>
199+
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
200+
app-center-58d8ff79c9-xf6pz 0/1 Pending 0 27s <none> <none> <none> <none>
201+
app-south-545766885-zn4nx 1/1 Running 0 27s 10.204.0.13 liqo-naples <none> <none>
201202
```
202203

203204
```{admonition} Note

docs/examples/provision-with-terraform.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ kubectl get nodes
159159

160160
```text
161161
NAME STATUS ROLES AGE VERSION
162-
liqo-milan Ready agent 14s v1.23.6
163-
rome-control-plane Ready control-plane,master 7m56s v1.23.6
164-
rome-worker Ready <none> 7m25s v1.23.6
162+
liqo-milan Ready agent 14s v1.25.0
163+
rome-control-plane Ready control-plane,master 7m56s v1.25.0
164+
rome-worker Ready <none> 7m25s v1.25.0
165165
```
166166

167167
### Offload a namespace

docs/examples/quick-start.md

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ kubectl get nodes
168168
```
169169

170170
```text
171-
NAME STATUS ROLES AGE VERSION
172-
liqo-milan Ready agent 14s v1.23.6
173-
rome-control-plane Ready control-plane,master 7m56s v1.23.6
174-
rome-worker Ready <none> 7m25s v1.23.6
171+
NAME STATUS ROLES AGE VERSION
172+
liqo-milan Ready agent 27s v1.25.0
173+
rome-control-plane Ready control-plane 7m6s v1.25.0
174+
rome-worker Ready <none> 6m33s v1.25.0
175175
```
176176

177177
In addition, you can check the peering status, and retrieve more advanced information, using:
@@ -233,8 +233,8 @@ And the output should look like this:
233233

234234
```text
235235
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
236-
nginx-local 1/1 Running 0 94s 10.200.1.10 rome-worker <none> <none>
237-
nginx-remote 1/1 Running 0 94s 10.202.1.9 liqo-milan <none> <none>
236+
nginx-local 1/1 Running 0 10s 10.200.1.11 rome-worker <none> <none>
237+
nginx-remote 1/1 Running 0 9s 10.202.1.10 liqo-milan <none> <none>
238238
```
239239

240240
#### Check the pod connectivity
@@ -280,13 +280,16 @@ Selector: app=liqo-demo
280280
Type: ClusterIP
281281
IP Family Policy: SingleStack
282282
IP Families: IPv4
283-
IP: 10.93.84.150
284-
IPs: 10.93.84.150
283+
IP: 10.94.41.143
284+
IPs: 10.94.41.143
285285
Port: web 80/TCP
286286
TargetPort: web/TCP
287-
Endpoints: 10.200.1.10:80,10.202.1.9:80
287+
Endpoints: 10.200.1.11:80,10.202.1.10:80
288288
Session Affinity: None
289-
Events: <none>
289+
Events:
290+
Type Reason Age From Message
291+
---- ------ ---- ---- -------
292+
Normal SuccessfulReflection 51s (x2 over 51s) liqo-service-reflection Successfully reflected object to cluster "milan"
290293
```
291294

292295
#### Check the Service connectivity
@@ -338,20 +341,21 @@ At steady-state, you should see an output similar to the following.
338341
Different pods may be hosted by either the local nodes (*rome-worker* in the example below) or remote cluster (*liqo-milan* in the example below), depending on the scheduling decisions.
339342

340343
```text
341-
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
342-
adservice-66f6b5c6fd-w95th 1/1 Running 0 2m23s 10.202.1.19 liqo-milan <none> <none>
343-
cartservice-76dc758684-wd5px 1/1 Running 0 2m23s 10.202.1.15 liqo-milan <none> <none>
344-
checkoutservice-85b74f746f-lm7gh 1/1 Running 0 2m24s 10.202.1.11 liqo-milan <none> <none>
345-
currencyservice-64775746dd-k85z6 1/1 Running 0 2m23s 10.202.1.16 liqo-milan <none> <none>
346-
emailservice-58f8b4f854-9mx7g 1/1 Running 0 2m24s 10.202.1.10 liqo-milan <none> <none>
347-
frontend-7b648dcb8f-gfbh2 1/1 Running 0 2m23s 10.200.1.15 rome-worker <none> <none>
348-
nginx-local 1/1 Running 0 6m5s 10.200.1.10 rome-worker <none> <none>
349-
nginx-remote 1/1 Running 0 6m5s 10.202.1.9 liqo-milan <none> <none>
350-
paymentservice-5dd7bb5855-ssbhf 1/1 Running 0 2m23s 10.202.1.14 liqo-milan <none> <none>
351-
productcatalogservice-587c8dbf7d-nmw77 1/1 Running 0 2m23s 10.202.1.13 liqo-milan <none> <none>
352-
recommendationservice-6cd468f4d4-h8k2t 1/1 Running 0 2m24s 10.202.1.12 liqo-milan <none> <none>
353-
redis-cart-78746d49dc-rkqrn 1/1 Running 0 2m23s 10.202.1.18 liqo-milan <none> <none>
354-
shippingservice-59c7b7458d-sqb9x 1/1 Running 0 2m23s 10.202.1.17 liqo-milan <none> <none>
344+
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
345+
adservice-84cdf76d7d-6s8pq 1/1 Running 0 5m1s 10.202.1.11 liqo-milan <none> <none>
346+
cartservice-5c9c9c7b4-w49gr 1/1 Running 0 5m1s 10.202.1.12 liqo-milan <none> <none>
347+
checkoutservice-6cb9bb8cd8-5w2ht 1/1 Running 0 5m1s 10.202.1.13 liqo-milan <none> <none>
348+
currencyservice-7d4bd86676-5b5rq 1/1 Running 0 5m1s 10.202.1.14 liqo-milan <none> <none>
349+
emailservice-c9b45cdb-6zjrk 1/1 Running 0 5m1s 10.202.1.15 liqo-milan <none> <none>
350+
frontend-58b9b98d84-hg4xz 1/1 Running 0 5m1s 10.200.1.13 rome-worker <none> <none>
351+
loadgenerator-5f8cd58cd4-wvqqq 1/1 Running 0 5m1s 10.202.1.16 liqo-milan <none> <none>
352+
nginx-local 1/1 Running 0 7m35s 10.200.1.11 rome-worker <none> <none>
353+
nginx-remote 1/1 Running 0 7m34s 10.202.1.10 liqo-milan <none> <none>
354+
paymentservice-69558cf7bb-v4zjw 1/1 Running 0 5m 10.202.1.17 liqo-milan <none> <none>
355+
productcatalogservice-55c58b57cb-k8mfq 1/1 Running 0 5m 10.202.1.18 liqo-milan <none> <none>
356+
recommendationservice-55cd66cf64-6fz9w 1/1 Running 0 5m 10.202.1.19 liqo-milan <none> <none>
357+
redis-cart-5d45978b94-wjd97 1/1 Running 0 5m 10.202.1.20 liqo-milan <none> <none>
358+
shippingservice-5df47fc86-f867j 1/1 Running 0 4m59s 10.202.1.21 liqo-milan <none> <none>
355359
```
356360

357361
### Access the demo application

docs/examples/service-offloading.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ kubectl get services --namespace liqo-demo --kubeconfig "$KUBECONFIG_NEWYORK"
9999
```
100100

101101
```text
102-
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
103-
flights-service ClusterIP 10.95.177.4 <none> 7999/TCP 14s run=flights-service
102+
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
103+
flights-service ClusterIP 10.81.139.132 <none> 7999/TCP 14s
104104
```
105105

106106
The Service is characterized by a different *ClusterIP* address in the two clusters, since each cluster handles it independently.

docs/examples/stateful-applications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ kubectl run db-mariadb-galera-client --rm --tty -i \
114114
--restart='Never' --namespace default \
115115
--image docker.io/bitnami/mariadb-galera:10.6.7-debian-10-r56 \
116116
--command \
117-
-- mysql -h db-mariadb-galera.liqo-demo -uuser -ppassword my_database
117+
-- mysql -h db-mariadb-galera.liqo-demo -uuser -ppassword my_database
118118
```
119119

120120
And then create an example table and insert some data:

examples/global-ingress/manifests/edge-dns.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: k3d.io/v1alpha3
22
kind: Simple
33
name: edgedns
4-
image: docker.io/rancher/k3s:v1.22.6-k3s1
4+
image: docker.io/rancher/k3s:v1.25.0-k3s1
55
agents: 0
66
network: k3d-action-bridge-network
77
ports:
@@ -16,7 +16,7 @@ options:
1616
disableLoadbalancer: true
1717
k3s:
1818
extraArgs:
19-
- arg: --no-deploy=traefik,servicelb,metrics-server,local-storage
19+
- arg: --disable=traefik,servicelb,metrics-server,local-storage
2020
nodeFilters:
2121
- server:*
2222
- arg: --cluster-cidr=10.40.0.0/16

examples/global-ingress/manifests/gslb-eu.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: k3d.io/v1alpha3
22
kind: Simple
33
name: gslb-eu
4-
image: docker.io/rancher/k3s:v1.22.6-k3s1
4+
image: docker.io/rancher/k3s:v1.25.0-k3s1
55
agents: 1
66
network: k3d-action-bridge-network
77
ports:
@@ -28,7 +28,7 @@ options:
2828
disableLoadbalancer: true
2929
k3s:
3030
extraArgs:
31-
- arg: --no-deploy=traefik,servicelb,metrics-server,local-storage
31+
- arg: --disable=traefik,servicelb,metrics-server,local-storage
3232
nodeFilters:
3333
- server:*
3434
- arg: --cluster-cidr=10.40.0.0/16

examples/global-ingress/manifests/gslb-us.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: k3d.io/v1alpha3
22
kind: Simple
33
name: gslb-us
4-
image: docker.io/rancher/k3s:v1.22.6-k3s1
4+
image: docker.io/rancher/k3s:v1.25.0-k3s1
55
agents: 1
66
network: k3d-action-bridge-network
77
ports:
@@ -25,7 +25,7 @@ options:
2525
disableLoadbalancer: true
2626
k3s:
2727
extraArgs:
28-
- arg: --no-deploy=traefik,servicelb,metrics-server,local-storage
28+
- arg: --disable=traefik,servicelb,metrics-server,local-storage
2929
nodeFilters:
3030
- server:*
3131
- arg: --cluster-cidr=10.40.0.0/16

examples/offloading-with-policies/manifests/cluster.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ networking:
55
podSubnet: "10.200.0.0/16"
66
nodes:
77
- role: control-plane
8-
image: kindest/node:v1.23.6
8+
image: kindest/node:v1.25.0

0 commit comments

Comments
 (0)