An example kube-proxy config file is needed

When installing kubernetes 1.7.2 and a warning about kube proxy appears

WARNING: all flags other than --config, --write-config-to, and --cleanup-iptables are deprecated. Please begin using a config file ASAP.

      

So I am trying to make my own config file, for example

{
  "bind-address": "10.110.200.42",
  "hostname-override": "10.110.200.42",
  "cluster-cidr": "172.30.0.0/16",
  "logtostderr": true,
  "v": 0,
  "allow-privileged": true,
  "master": "http://10.110.200.42:8080",
  "etcd-servers": "http://10.110.200.42:2379"
}

      

but i still get the error

error: Object 'apiVersion' is missing in '{

      

I feel like I need an example config file, but I searched for it without any results, even searched for source code in git, I didn't find anything useful, please help!

ps, I found a way to generate an example file, just use the command --write-config-to on the command line, example below

apiVersion: componentconfig/v1alpha1
bindAddress: 0.0.0.0
clientConnection:
  acceptContentTypes: ""
  burst: 10
  contentType: application/vnd.kubernetes.protobuf
  kubeconfig: ""
  qps: 5
clusterCIDR: ""
configSyncPeriod: 15m0s
conntrack:
  max: 0
  maxPerCore: 32768
  min: 131072
  tcpCloseWaitTimeout: 1h0m0s
  tcpEstablishedTimeout: 24h0m0s
enableProfiling: false
featureGates: ""
healthzBindAddress: 0.0.0.0:10256
hostnameOverride: ""
iptables:
  masqueradeAll: false
  masqueradeBit: 14
  minSyncPeriod: 0s
  syncPeriod: 30s
kind: KubeProxyConfiguration
metricsBindAddress: 127.0.0.1:10249
mode: ""
oomScoreAdj: -999
portRange: ""
resourceContainer: /kube-proxy
udpTimeoutMilliseconds: 250ms

      

+3


source to share





All Articles