手动安装Kubernetes,如何安装和使用插件管理器?

时间:2017-04-20 12:37:09

标签: kubernetes coreos

手动安装Kubernetes on CoreOS,如何安装和使用Kubernetes addon manager

我发现对插件管理器的引用是安装Kubernetes插件的当前标准方式,但我找不到任何权威文档。希望有人可以帮助我。

1 个答案:

答案 0 :(得分:2)

将插件管理器部署为普通的pod或部署,使用简单的kubectl apply -f

yaml看起来像这样,看看你需要的特定版本:

apiVersion: v1 kind: Pod metadata: name: kube-addon-manager namespace: kube-system labels: component: kube-addon-manager spec: hostNetwork: true containers: - name: kube-addon-manager # When updating version also bump it in: # - cluster/images/hyperkube/static-pods/addon-manager-singlenode.json # - cluster/images/hyperkube/static-pods/addon-manager-multinode.json # - test/kubemark/resources/manifests/kube-addon-manager.yaml image: gcr.io/google-containers/kube-addon-manager:v6.4-beta.1 command: - /bin/bash - -c - /opt/kube-addons.sh 1>>/var/log/kube-addon-manager.log 2>&1 resources: requests: cpu: 5m memory: 50Mi volumeMounts: - mountPath: /etc/kubernetes/ name: addons readOnly: true - mountPath: /var/log name: varlog readOnly: false volumes: - hostPath: path: /etc/kubernetes/ name: addons - hostPath: path: /var/log name: varlog

插件管理器会在/etc/kubernetes/addons/下观察特定的yaml文件,在此处添加您喜欢的任何插件来安装它。