Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release 1.22] ipv6 only support #5262

Closed
rbrtbnfgl opened this issue Mar 15, 2022 · 5 comments
Closed

[Release 1.22] ipv6 only support #5262

rbrtbnfgl opened this issue Mar 15, 2022 · 5 comments
Assignees
Labels
Milestone

Comments

@rbrtbnfgl
Copy link
Contributor

Backport for IPv6 only support #5238 #5215 #4450

@rbrtbnfgl rbrtbnfgl added this to the v1.22.8+k3s1 milestone Mar 15, 2022
@VestigeJ VestigeJ self-assigned this Mar 17, 2022
@VestigeJ
Copy link

Validated with COMMIT=b28796a5ce9d6fb1b35e41198c91516b4cf51ab2

$ k3s -v

k3s version v1.23.4+k3s-b28796a5 (b28796a5)
go version go1.17.5

$ show.configs

cat: /etc/rancher/rke2/config.yaml: No such file or directory
write-kubeconfig-mode: "644"
debug: true
token: "secrettrouble"
disable-network-policy: true
cluster-cidr: 2022:aced:42:0::/56
service-cidr: 2022:aced:42:1::/112
node-ip: 2600:1f1c:ab4:ee48:d5e:cafe:c96c:aced
node-external-ip: 2600:1f1c:ab4:ee48:d5e:cafe:c96c:aced

$ kga

NAMESPACE     NAME                                          READY   STATUS    RESTARTS   AGE     IP                NODE               NOMINATED NODE   READINESS GATES
kube-system   pod/local-path-provisioner-6c79684f77-bw6p4   1/1     Running   0          2m17s   2022:aced:42::2   ip-192-168-7-153   <none>           <none>
kube-system   pod/coredns-5789895cd-xvdqr                   1/1     Running   0          2m17s   2022:aced:42::3   ip-192-168-7-153   <none>           <none>
kube-system   pod/helm-install-traefik-crd-fjqtc            1/1     Running   0          2m17s   2022:aced:42::4   ip-192-168-7-153   <none>           <none>
kube-system   pod/helm-install-traefik-fjfq7                1/1     Running   0          2m17s   2022:aced:42::5   ip-192-168-7-153   <none>           <none>
kube-system   pod/metrics-server-7cd5fcb6b7-dxq4z           1/1     Running   0          2m17s   2022:aced:42::6   ip-192-168-7-153   <none>           <none>

NAMESPACE     NAME                     TYPE        CLUSTER-IP             EXTERNAL-IP   PORT(S)                  AGE     SELECTOR
default       service/kubernetes       ClusterIP   2022:aced:42:1::1      <none>        443/TCP                  2m44s   <none>
kube-system   service/kube-dns         ClusterIP   2022:aced:42:1::a      <none>        53/UDP,53/TCP,9153/TCP   2m40s   k8s-app=kube-dns
kube-system   service/metrics-server   ClusterIP   2022:aced:42:1::2f60   <none>        443/TCP                  2m39s   k8s-app=metrics-server

$ sudo cat agent/kubeproxy.kubeconfig

apiVersion: v1
clusters:
- cluster:
    server: https://[::1]:6443
    certificate-authority: /var/lib/rancher/k3s/agent/server-ca.crt
  name: local

@manuelbuil manuelbuil reopened this Apr 8, 2022
@manuelbuil
Copy link
Contributor

kube-system   pod/helm-install-traefik-crd-fjqtc            1/1     Running   0          2m17s   2022:aced:42::4   ip-192-168-7-153   <none>           <none>
kube-system   pod/helm-install-traefik-fjfq7                1/1     Running   0          2m17s   2022:aced:42::5   ip-192-168-7-153   <none>           <none>

will never Complete. A PR is needed for this

@VestigeJ
Copy link

VestigeJ commented Apr 8, 2022

Validated using COMMIT=

$ k3s -v

k3s version v1.22.8+k3s-d73772d6 (d73772d6)
go version go1.16.10

$ show.configs

k3s config: 
iwrite-kubeconfig-mode: 644
debug: true
token: "greymayonnaise"
disable-network-policy: true
cluster-cidr: 2022:aced:42:0::/56
service-cidr: 2022:aced:42:1::/112
node-ip: 2600:1f1c:ab4:ee48:660d:5a81:90fc:1698
node-external-ip: 2600:1f1c:ab4:ee48:660d:5a81:90fc:1698

$ kga

NAMESPACE     NAME                                          READY   STATUS      RESTARTS   AGE     IP                NODE               NOMINATED NODE   READINESS GATES
kube-system   pod/coredns-7796b77cd4-qdzqh                  1/1     Running     0          9m52s   2022:aced:42::2   ip-192-168-17-72   <none>           <none>
kube-system   pod/local-path-provisioner-84bb864455-x8n84   1/1     Running     0          9m52s   2022:aced:42::6   ip-192-168-17-72   <none>           <none>
kube-system   pod/helm-install-traefik-crd--1-t69ps         0/1     Completed   0          9m52s   2022:aced:42::3   ip-192-168-17-72   <none>           <none>
kube-system   pod/helm-install-traefik--1-8x59f             0/1     Completed   1          9m52s   2022:aced:42::5   ip-192-168-17-72   <none>           <none>
kube-system   pod/svclb-traefik-s98s9                       2/2     Running     0          9m21s   2022:aced:42::7   ip-192-168-17-72   <none>           <none>
kube-system   pod/metrics-server-ff9dbcb6c-rnvv7            1/1     Running     0          9m52s   2022:aced:42::4   ip-192-168-17-72   <none>           <none>
kube-system   pod/traefik-56c4b88c4b-p8qj2                  1/1     Running     0          9m21s   2022:aced:42::8   ip-192-168-17-72   <none>           <none>

NAMESPACE     NAME                     TYPE           CLUSTER-IP             EXTERNAL-IP                              PORT(S)                      AGE     SELECTOR
default       service/kubernetes       ClusterIP      2022:aced:42:1::1      <none>                                   443/TCP                      10m     <none>
kube-system   service/kube-dns         ClusterIP      2022:aced:42:1::a      <none>                                   53/UDP,53/TCP,9153/TCP       10m     k8s-app=kube-dns
kube-system   service/metrics-server   ClusterIP      2022:aced:42:1::5a19   <none>                                   443/TCP                      10m     k8s-app=metrics-server
kube-system   service/traefik          LoadBalancer   2022:aced:42:1::8c85   2600:1f1c:ab4:ee48:660d:5a81:90fc:1698   80:30250/TCP,443:32452/TCP   9m21s   app.kubernetes.io/instance=traefik,app.kubernetes.io/name=traefik

NAMESPACE     NAME                           DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR   AGE     CONTAINERS               IMAGES                                                SELECTOR
kube-system   daemonset.apps/svclb-traefik   1         1         1       1            1           <none>          9m21s   lb-port-80,lb-port-443   rancher/klipper-lb:v0.3.4,rancher/klipper-lb:v0.3.4   app=svclb-traefik

NAMESPACE     NAME                                     READY   UP-TO-DATE   AVAILABLE   AGE     CONTAINERS               IMAGES                                   SELECTOR
kube-system   deployment.apps/coredns                  1/1     1            1           10m     coredns                  rancher/mirrored-coredns-coredns:1.9.1   k8s-app=kube-dns
kube-system   deployment.apps/local-path-provisioner   1/1     1            1           10m     local-path-provisioner   rancher/local-path-provisioner:v0.0.21   app=local-path-provisioner
kube-system   deployment.apps/metrics-server           1/1     1            1           10m     metrics-server           rancher/mirrored-metrics-server:v0.5.2   k8s-app=metrics-server
kube-system   deployment.apps/traefik                  1/1     1            1           9m21s   traefik                  rancher/mirrored-library-traefik:2.6.1   app.kubernetes.io/instance=traefik,app.kubernetes.io/name=traefik

NAMESPACE     NAME                                                DESIRED   CURRENT   READY   AGE     CONTAINERS               IMAGES                                   SELECTOR
kube-system   replicaset.apps/coredns-7796b77cd4                  1         1         1       9m52s   coredns                  rancher/mirrored-coredns-coredns:1.9.1   k8s-app=kube-dns,pod-template-hash=7796b77cd4
kube-system   replicaset.apps/local-path-provisioner-84bb864455   1         1         1       9m52s   local-path-provisioner   rancher/local-path-provisioner:v0.0.21   app=local-path-provisioner,pod-template-hash=84bb864455
kube-system   replicaset.apps/metrics-server-ff9dbcb6c            1         1         1       9m52s   metrics-server           rancher/mirrored-metrics-server:v0.5.2   k8s-app=metrics-server,pod-template-hash=ff9dbcb6c
kube-system   replicaset.apps/traefik-56c4b88c4b                  1         1         1       9m21s   traefik                  rancher/mirrored-library-traefik:2.6.1   app.kubernetes.io/instance=traefik,app.kubernetes.io/name=traefik,pod-template-hash=56c4b88c4b

NAMESPACE     NAME                                 COMPLETIONS   DURATION   AGE   CONTAINERS   IMAGES                                      SELECTOR
kube-system   job.batch/helm-install-traefik-crd   1/1           29s        10m   helm         rancher/klipper-helm:v0.7.1-build20220407   controller-uid=58d28175-d362-43d9-94d4-78b71c917d6c
kube-system   job.batch/helm-install-traefik       1/1           32s        10m   helm         rancher/klipper-helm:v0.7.1-build20220407   controller-uid=c08d16d9-90ca-4f6a-850c-9522b6f2b8ce

$ sudo cat /var/lib/rancher/k3s/agent/kubeproxy.kubeconfig

apiVersion: v1
clusters:
- cluster:
    server: https://[::1]:6443
    certificate-authority: /var/lib/rancher/k3s/agent/server-ca.crt
  name: local
contexts:
- context:
    cluster: local
    namespace: default
    user: user
  name: Default
current-context: Default
kind: Config
preferences: {}
users:
- name: user
  user:
    client-certificate: /var/lib/rancher/k3s/agent/client-kube-proxy.crt
    client-key: /var/lib/rancher/k3s/agent/client-kube-proxy.key

@ShylajaDevadiga
Copy link
Contributor

Reopening as etcd-backend fix needs to be backported #5420

Apr 26 05:55:33 i-06e25a0f1eea08ecd k3s[15502]: {"level":"warn","ts":"2022-04-26T05:55:33.419Z","logger":"etcd-client","caller":"v3/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc000816000/127.0.0.1:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = \"transport: Error while dialing dial tcp 127.0.0.1:2379: connect: connection refused\""}

@ShylajaDevadiga
Copy link
Contributor

Validated in the scope of testing #5384
Backport issue for reference #5509

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants