Skip to content

How to pass --pod-network-cidr via config #1899

@tokiwinter

Description

@tokiwinter

I am stuck trying to initialise a kubeadm-based master.

I am currently mixing command line params as well as a config file, which it would appear is not allowed, although the guide shows the passing of the --pod-network-cidr flag when installing a particular network overlay such as flannel. I have a config file for kube-proxy to work properly.

kubeadm init --pod-network-cidr=10.244.0.0/16 --config /etc/kubeadm.conf --ignore-preflight-errors=all

Would appreciate assistance on how to get --pod-network-cidr into my config file which currently looks like this:

apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
---
apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
conntrack:
  maxPerCore: 0

Sorry for the simple question, but I have a hard deadline of the 19th to get this up and running, and figure there is a pool of knowledge here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/supportCategorizes issue or PR as a support question.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions