++calico/net updates
This commit is contained in:
parent
7c64ca0092
commit
393593c2c6
1 changed files with 92 additions and 3 deletions
|
@ -164,9 +164,9 @@ spec:
|
||||||
nodeToNodeMeshEnabled: true
|
nodeToNodeMeshEnabled: true
|
||||||
asNumber: 65533
|
asNumber: 65533
|
||||||
serviceClusterIPs:
|
serviceClusterIPs:
|
||||||
- cidr: 2a0a:e5c0:aaaa::/108
|
- cidr: 2a0a:e5c0:0:aaaa::/108
|
||||||
serviceExternalIPs:
|
serviceExternalIPs:
|
||||||
- cidr: 2a0a:e5c0:aaaa::/108
|
- cidr: 2a0a:e5c0:0:aaaa::/108
|
||||||
```
|
```
|
||||||
|
|
||||||
Plus for each server and router we create a BGPPeer:
|
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
|
||||||
|
<
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Welcome to nginx!</title>
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
width: 35em;
|
||||||
|
margin: 0 auto;
|
||||||
|
font-family: Tahoma, Verdana, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Welcome to nginx!</h1>
|
||||||
|
<p>If you see this page, the nginx web server is successfully installed and
|
||||||
|
working. Further configuration is required.</p>
|
||||||
|
|
||||||
|
<p>For online documentation and support please refer to
|
||||||
|
<a href="http://nginx.org/">nginx.org</a>.<br/>
|
||||||
|
Commercial support is available at
|
||||||
|
<a href="http://nginx.com/">nginx.com</a>.</p>
|
||||||
|
|
||||||
|
<p><em>Thank you for using nginx.</em></p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
* Connection #0 to host 2a0a:e5c0:0:aaaa::e3c9 left intact
|
||||||
|
```
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
### 2022-08-27
|
### 2022-08-27
|
||||||
|
|
||||||
* The initial release of this blog article
|
* The initial release of this blog article
|
||||||
|
* Added k8s bootstrapping guide
|
||||||
|
|
||||||
## Follow up or questions
|
## Follow up or questions
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue