kube-apiserver 二进制包安装启动错误

君君要上天哈 发布于 2019/06/26 15:29
阅读 2K+
收藏 0
[Unit]
Description=Kubernetes API Server
After=etcd.service
Wants=etcd.service

[Service]
EnvironmentFile=/etc/kubernetes/apiserver
ExecStart=/usr/bin/kube-apiserver  \
        $KUBE_ETCD_SERVERS \
        $KUBE_API_ADDRESS \
        $KUBE_API_PORT \
        $KUBE_SERVICE_ADDRESSES \
        $KUBE_ADMISSION_CONTROL \
        $KUBE_API_LOG \
        $KUBE_API_ARGS 
Restart=on-failure
Type=notify
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target

/etc/kubernetes/apiserver:

KUBE_API_ADDRESS="--insecure-bind-address=0.0.0.0"
KUBE_API_PORT="--insecure-port=8080"
KUBE_ETCD_SERVERS="--etcd-servers=http://10.0.209.151:2379"
KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=192.168.0.0/16"
KUBE_ADMISSION_CONTROL="--admission-control=NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota"
KUBE_API_LOG="--logtostderr=false --log-dir=/var/log/kubernets/apiserver --v=2"
KUBE_API_ARGS=" "

启动错误日志:

● kube-apiserver.service - Kubernetes API Server
   Loaded: loaded (/lib/systemd/system/kube-apiserver.service; enabled; vendor preset: enabled)
   Active: activating (start) since 三 2019-06-26 15:22:18 CST; 11s ago
 Main PID: 21547 (kube-apiserver)
    Tasks: 8
   Memory: 13.2M
      CPU: 628ms
   CGroup: /system.slice/kube-apiserver.service
           └─21547 /usr/bin/kube-apiserver --etcd-servers=http://172.17.9.245:2379 --insecure-bind-address=0.0.0.0 --insecure-port=8080 --service-cluster-ip-range=192.168.0.0/16 --admission-control=NamespaceLifecycle,L

6月 26 15:22:18 zhoujun systemd[1]: Starting Kubernetes API Server...
6月 26 15:22:18 zhoujun kube-apiserver[21547]: Flag --insecure-bind-address has been deprecated, This flag will be removed in a future version.
6月 26 15:22:18 zhoujun kube-apiserver[21547]: Flag --insecure-port has been deprecated, This flag will be removed in a future version.
6月 26 15:22:18 zhoujun kube-apiserver[21547]: Flag --admission-control has been deprecated, Use --enable-admission-plugins or --disable-admission-plugins instead. Will be removed in a future version.
6月 26 15:22:18 zhoujun kube-apiserver[21547]: E0626 15:22:18.920437   21547 prometheus.go:138] failed to register depth metric admission_quota_controller: duplicate metrics collector registration attempted
6月 26 15:22:18 zhoujun kube-apiserver[21547]: E0626 15:22:18.921166   21547 prometheus.go:150] failed to register adds metric admission_quota_controller: duplicate metrics collector registration attempted
6月 26 15:22:18 zhoujun kube-apiserver[21547]: E0626 15:22:18.921959   21547 prometheus.go:162] failed to register latency metric admission_quota_controller: duplicate metrics collector registration attempted
6月 26 15:22:18 zhoujun kube-apiserver[21547]: E0626 15:22:18.923550   21547 prometheus.go:174] failed to register work_duration metric admission_quota_controller: duplicate metrics collector registration attempted
6月 26 15:22:18 zhoujun kube-apiserver[21547]: E0626 15:22:18.929810   21547 prometheus.go:189] failed to register unfinished_work_seconds metric admission_quota_controller: duplicate metrics collector registration atte
6月 26 15:22:18 zhoujun kube-apiserver[21547]: E0626 15:22:18.930078   21547 prometheus.go:202] failed to register longest_running_processor_microseconds metric admission_quota_controller: duplicate metrics collector re

 

加载中
0
囚期亡良人
囚期亡良人

怎么解决的呀老哥

君君要上天哈
君君要上天哈
改用kubeadm安装了
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部