mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Merge pull request #15477 from gmarek/fix-kubemark
Fix HollowNode template
This commit is contained in:
commit
139f5cd9ee
@ -35,18 +35,10 @@
|
||||
{"containerPort": 10250},
|
||||
{"containerPort": 10255}
|
||||
],
|
||||
"env": [
|
||||
{
|
||||
"name": "MASTER_IP",
|
||||
"value": ##masterip##
|
||||
}
|
||||
],
|
||||
"command": [
|
||||
"./kubemark.sh"
|
||||
],
|
||||
"args": [
|
||||
"--server=$(MASTER_IP)",
|
||||
"--api-server-port=8080",
|
||||
"--v=3"
|
||||
],
|
||||
"volumeMounts": [
|
||||
|
@ -174,8 +174,7 @@ contexts:
|
||||
current-context: kubemark-context
|
||||
EOF
|
||||
|
||||
sed "s/##masterip##/\"${MASTER_IP}\"/g" ${KUBE_ROOT}/test/kubemark/hollow-kubelet_template.json > ${KUBE_ROOT}/test/kubemark/hollow-kubelet.json
|
||||
sed -i'' -e "s/##numreplicas##/${NUM_MINIONS:-10}/g" ${KUBE_ROOT}/test/kubemark/hollow-kubelet.json
|
||||
sed "s/##numreplicas##/${NUM_MINIONS:-10}/g" ${KUBE_ROOT}/test/kubemark/hollow-kubelet_template.json > ${KUBE_ROOT}/test/kubemark/hollow-kubelet.json
|
||||
sed -i'' -e "s/##project##/${PROJECT}/g" ${KUBE_ROOT}/test/kubemark/hollow-kubelet.json
|
||||
kubectl create -f ${KUBE_ROOT}/test/kubemark/kubemark-ns.json
|
||||
kubectl create -f ${KUBECONFIG_SECRET} --namespace="kubemark"
|
||||
|
Loading…
Reference in New Issue
Block a user