GithubHelp home page GithubHelp logo

Comments (8)

Blfrg avatar Blfrg commented on August 15, 2024 3

I recently resolved the same issue, however I use canal (calico+flannel) on standard kubernetes hyperkube (no kubeadm) on CoreOS (Container Linux). This is likely a k8s/flannel issue and not a kube-dns issue.

Flannel is in the process of merging with calico (combined = canal), so I recommend checking it out if possible for your environment. Canal has a kubeadm specific install and additional info on the calico site. This is more simplified than the original flannel instructions, and is now fully instantiated from within kubernetes itself (no having to tweak docker).

Note the different 1.5 and 1.6 install guides and files. Don't forget to update the iface in your case.

For my resolution (self/standard hosted install), I upgraded the canal images to their latest whole versions found on quay.io/organization/calico. The kubeadm specific install appears to use the latest image versions already with the exception of calico/node:v1.1.0 => v1.1.1 (though it may not be necessary to update it).

I hope that helps or leads you to more helpful information.

from dns.

wadee avatar wadee commented on August 15, 2024

@Blfrg appreciate your reply,I will try it out soon!!

from dns.

cmluciano avatar cmluciano commented on August 15, 2024

@wadee Can you please post the details on how you install flannel? Did you grab the latest from master?

from dns.

wadee avatar wadee commented on August 15, 2024

@cmluciano sorry for replying so late ……

kubectl create -f kube-flannel-rbac.yml
kubectl create --namespace kube-system -f kube-flannel.yml

  • specially node use wifi for connected, so i modify the kube-flannel.yml configure params as below:
    image: quay.io/coreos/flannel:v0.7.0-arm
    command: [ "/opt/bin/flanneld", "--ip-masq", "--kube-subnet-mgr", "--iface=wlan0"]

i am sure that flannel:v0.7.0-arm is the latest flannel for the arm-system at that time.

and here is the whole content of the kube-flannel.yml :

---
apiVersion: v1
kind: ServiceAccount
metadata:
  name: flannel
  namespace: kube-system
---
kind: ConfigMap
apiVersion: v1
metadata:
  name: kube-flannel-cfg
  namespace: kube-system
  labels:
    tier: node
    app: flannel
data:
  cni-conf.json: |
    {
      "name": "cbr0",
      "type": "flannel",
      "delegate": {
        "isDefaultGateway": true
      }
    }
  net-conf.json: |
    {
      "Network": "10.244.0.0/16",
      "Backend": {
        "Type": "vxlan"
      }
    }
---
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  name: kube-flannel-ds
  namespace: kube-system
  labels:
    tier: node
    app: flannel
spec:
  template:
    metadata:
      labels:
        tier: node
        app: flannel
    spec:
      hostNetwork: true
      nodeSelector:
        beta.kubernetes.io/arch: arm
      tolerations:
      - key: node-role.kubernetes.io/master
        operator: Exists
        effect: NoSchedule
      serviceAccountName: flannel
      containers:
      - name: kube-flannel
        image: quay.io/coreos/flannel:v0.7.0-arm
        command: [ "/opt/bin/flanneld", "--ip-masq", "--kube-subnet-mgr", "--iface=wlan0"]
        securityContext:
          privileged: true
        env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
        - name: POD_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        volumeMounts:
        - name: run
          mountPath: /run
        - name: flannel-cfg
          mountPath: /etc/kube-flannel/
      - name: install-cni
        image: quay.io/coreos/flannel:v0.7.0-arm
        command: [ "/bin/sh", "-c", "set -e -x; cp -f /etc/kube-flannel/cni-conf.json /etc/cni/net.d/10-flannel.conf; while true; do sleep 3600; done" ]
        volumeMounts:
        - name: cni
          mountPath: /etc/cni/net.d
        - name: flannel-cfg
          mountPath: /etc/kube-flannel/
      volumes:
        - name: run
          hostPath:
            path: /run
        - name: cni
          hostPath:
            path: /etc/cni/net.d
        - name: flannel-cfg
          configMap:
            name: kube-flannel-cfg

from dns.

cmluciano avatar cmluciano commented on August 15, 2024

Your deployment seems similar to flannel's latest example, with the exception of the arm platform reference and a custom iface.

Can you retry with the v0.7.1-arm image?

I agree that this issue might be better served in the flannel repository.

from dns.

k8s-ci-robot avatar k8s-ci-robot commented on August 15, 2024

@cmluciano: These labels do not exist in this repository: sig/network.

In response to this:

/sig network

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

from dns.

cmluciano avatar cmluciano commented on August 15, 2024

/assign

from dns.

wadee avatar wadee commented on August 15, 2024

yeah, I agree with u.
I will try the latest v0.7.1-arm image and I will create the same issue to the flannel repository.
so I decide to close the issue.
thx to all guys!

from dns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.