Merge pull request #15477 from gmarek/fix-kubemark
Fix HollowNode template
This commit is contained in:
		@@ -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"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user