Privileged containers provisioning by Kubernetes in Ubuntu
来源:互联网 发布:李健 知乎 编辑:程序博客网 时间:2024/06/05 01:17
I followed theofficial guide to install and setup Kubernetes 1.0-release on Ubuntu. Here is the way to provision a privileged container.
- Switch to the Ubuntu directory
root@master: cd $KUBERNETES_HOME/cluster/ubuntu
- Modify a file under Ubuntu directory
vim util.sh
- Find two functions as following
create-kube-apiserver-optscreate-kubelet-opts
- The functions above generate the options for kube-apiserver and kubelet, which apply the options while they are starting.
- Add a privileged flag in both of functions
function create-kubelet-opts(){ cat <<EOF > ~/kube/default/kubeletKUBELET_OPTS="--address=0.0.0.0 \--port=10250 \--hostname_override=$1 \--api_servers=http://$2:8080 \--logtostderr=true \--cluster_dns=$3 \--cluster_domain=$4 \--allow-privileged=true"EOF}
andfunction create-kube-apiserver-opts(){ cat <<EOF > ~/kube/default/kube-apiserverKUBE_APISERVER_OPTS="--address=0.0.0.0 \--port=8080 \--etcd_servers=http://127.0.0.1:4001 \--logtostderr=true \--service-cluster-ip-range=${1} \--admission_control=${2} \--service_account_key_file=/tmp/kube-serviceaccount.key \--allow-privileged=true \--service_account_lookup=false "EOF}
- Then restart all the Kubernetes by executing following commands
root@master: cd $KUBERNETES_HOME/clusterroot@master: KUBERNETES_PROVIDER=ubuntu ./kube-down.shroot@master: KUBERNETES_PROVIDER=ubuntu ./kube-up.sh
- Write a template of replication controller as following
- Create the replication controller and then the Pods would be launched
0 0
- Privileged containers provisioning by Kubernetes in Ubuntu
- Containers in depth笔记
- Managing Data in Containers
- Managing Data in Containers
- Manage Data in Containers
- kubernetes存储系统介绍(Volume、PV、dynamic provisioning)
- kubernetes存储系统介绍(Volume、PV、dynamic provisioning)
- 3 sequence containers in STL
- DockerInAction-Running software in containers
- Kubernetes印象(by quqi99)
- 英特尔Clear Containers与Docker,Kubernetes将会配合得更好
- A Simple Example About Privileged Methods in JavaScript
- Unhandled exception at 0x in xxx.exe: Privileged instruction.
- java.lang.UnsupportedOperationException WebView is not allowed in privileged processes
- download kernel by minicom in ubuntu
- bluetooth sniffer by wireshark in ubuntu(linux)
- Containers
- Kubernetes学习之 Hadoop cluster in Kubernetes
- *LeetCode-Path Sum II
- DooDigestAuth php(后台)授权管理类 web浏览器授权
- 快速排序、归并排序、希尔排序
- Windows 64位下安装Redis详细教程
- PDO
- Privileged containers provisioning by Kubernetes in Ubuntu
- PHP setcookie()用法
- MySQL常用查询语句
- 导航菜单栏制作
- mysql sql语句集锦
- 加快网速的一种实现
- android 界面控件被输入法顶起来解决
- 纯PHP实现定时器任务(Timer)
- 超越竞争对手上首页SEO优化方案