Skip to content

Commit

Permalink
Merge pull request #40 from LalatenduMohanty/dev
Browse files Browse the repository at this point in the history
Fixing the github issue #29.
  • Loading branch information
LalatenduMohanty committed Jun 30, 2015
2 parents 89e2c91 + 831c6f1 commit e744d07
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions centos7-container-vagrant.ks
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,38 @@ tuned
sed -i "/HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth*
sed -i "/UUID/d" /etc/sysconfig/network-scripts/ifcfg-eth*
#Fixing issue #29
cat << EOF > kube-apiserver.service
[Unit]
Description=Kubernetes API Server
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
After=network.target
[Service]
EnvironmentFile=-/etc/kubernetes/config
EnvironmentFile=-/etc/kubernetes/apiserver
User=kube
ExecStart=/usr/bin/kube-apiserver \\
\$KUBE_LOGTOSTDERR \\
\$KUBE_LOG_LEVEL \\
\$KUBE_ETCD_SERVERS \\
\$KUBE_API_ADDRESS \\
\$KUBE_API_PORT \\
\$KUBELET_PORT \\
\$KUBE_ALLOW_PRIV \\
\$KUBE_SERVICE_ADDRESSES \\
\$KUBE_ADMISSION_CONTROL \\
\$KUBE_API_ARGS
Restart=on-failure
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target
EOF
mv kube-apiserver.service /etc/systemd/system/
systemctl daemon-reload
# set tuned profile to force virtual-guest
tuned-adm profile virtual-guest
Expand Down

0 comments on commit e744d07

Please sign in to comment.