From 393593c2c65490a04b3ec787e2846f2f10a0885d Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 28 Aug 2022 00:50:34 +0200 Subject: [PATCH] ++calico/net updates --- .../contents.lr | 95 ++++++++++++++++++- 1 file changed, 92 insertions(+), 3 deletions(-) diff --git a/content/u/blog/2022-08-27-migrating-ceph-nautilus-into-kubernetes-with-rook/contents.lr b/content/u/blog/2022-08-27-migrating-ceph-nautilus-into-kubernetes-with-rook/contents.lr index 06bebf6..e42fc54 100644 --- a/content/u/blog/2022-08-27-migrating-ceph-nautilus-into-kubernetes-with-rook/contents.lr +++ b/content/u/blog/2022-08-27-migrating-ceph-nautilus-into-kubernetes-with-rook/contents.lr @@ -164,9 +164,9 @@ spec: nodeToNodeMeshEnabled: true asNumber: 65533 serviceClusterIPs: - - cidr: 2a0a:e5c0:aaaa::/108 + - cidr: 2a0a:e5c0:0:aaaa::/108 serviceExternalIPs: - - cidr: 2a0a:e5c0:aaaa::/108 + - cidr: 2a0a:e5c0:0:aaaa::/108 ``` Plus for each server and router we create a BGPPeer: @@ -205,12 +205,101 @@ k8s_5 BGP --- up 23:33:01.215 Established ``` +### Testing networking + +To verify that the new cluster is working properly, we can deploy a +tiny test deployment and see if it is globally reachable: + +``` +apiVersion: apps/v1 +kind: Deployment +metadata: + name: nginx-deployment +spec: + selector: + matchLabels: + app: nginx + replicas: 2 + template: + metadata: + labels: + app: nginx + spec: + containers: + - name: nginx + image: nginx:1.20.0-alpine + ports: + - containerPort: 80 +--- +apiVersion: v1 +kind: Service +metadata: + name: nginx-service +spec: + selector: + app: nginx + ports: + - protocol: TCP + port: 80 +``` + +Using curl to access a sample service from the outside shows that +networking is working: + +``` +% curl -v http://[2a0a:e5c0:0:aaaa::e3c9] +* Trying 2a0a:e5c0:0:aaaa::e3c9:80... +* Connected to 2a0a:e5c0:0:aaaa::e3c9 (2a0a:e5c0:0:aaaa::e3c9) port 80 (#0) +> GET / HTTP/1.1 +> Host: [2a0a:e5c0:0:aaaa::e3c9] +> User-Agent: curl/7.84.0 +> Accept: */* +> +* Mark bundle as not supporting multiuse +< HTTP/1.1 200 OK +< Server: nginx/1.20.0 +< Date: Sat, 27 Aug 2022 22:35:49 GMT +< Content-Type: text/html +< Content-Length: 612 +< Last-Modified: Tue, 20 Apr 2021 16:11:05 GMT +< Connection: keep-alive +< ETag: "607efd19-264" +< Accept-Ranges: bytes +< + + + +Welcome to nginx! + + + +

Welcome to nginx!

+

If you see this page, the nginx web server is successfully installed and +working. Further configuration is required.

+ +

For online documentation and support please refer to +nginx.org.
+Commercial support is available at +nginx.com.

+ +

Thank you for using nginx.

+ + +* Connection #0 to host 2a0a:e5c0:0:aaaa::e3c9 left intact +``` + ## Changelog ### 2022-08-27 * The initial release of this blog article - +* Added k8s bootstrapping guide ## Follow up or questions