mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Merge pull request #25470 from wojtek-t/content_type_in_kubemark
Automatic merge from submit-queue Pipe content-type variable to hollow node
This commit is contained in:
commit
e8dc9eae8c
@ -36,12 +36,24 @@
|
||||
{"containerPort": 10250},
|
||||
{"containerPort": 10255}
|
||||
],
|
||||
"env": [
|
||||
{
|
||||
"name": "CONTENT_TYPE",
|
||||
"valueFrom": {
|
||||
"configMapKeyRef": {
|
||||
"name": "node-configmap",
|
||||
"key": "content.type"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"command": [
|
||||
"./kubemark.sh"
|
||||
],
|
||||
"args": [
|
||||
"--v=3",
|
||||
"--morph=kubelet"
|
||||
"--morph=kubelet",
|
||||
"$(CONTENT_TYPE)"
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
@ -60,12 +72,24 @@
|
||||
{
|
||||
"name": "hollow-proxy",
|
||||
"image": "gcr.io/##project##/kubemark:latest",
|
||||
"env": [
|
||||
{
|
||||
"name": "CONTENT_TYPE",
|
||||
"valueFrom": {
|
||||
"configMapKeyRef": {
|
||||
"name": "node-configmap",
|
||||
"key": "content.type"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"command": [
|
||||
"./kubemark.sh"
|
||||
],
|
||||
"args": [
|
||||
"--v=3",
|
||||
"--morph=proxy"
|
||||
"--morph=proxy",
|
||||
"$(CONTENT_TYPE)"
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
|
@ -207,6 +207,20 @@ cat > "${KUBECONFIG_SECRET}" << EOF
|
||||
}
|
||||
EOF
|
||||
|
||||
NODE_CONFIGMAP="${RESOURCE_DIRECTORY}/node_config_map.json"
|
||||
cat > "${NODE_CONFIGMAP}" << EOF
|
||||
{
|
||||
"apiVersion": "v1",
|
||||
"kind": "ConfigMap",
|
||||
"metadata": {
|
||||
"name": "node-configmap"
|
||||
},
|
||||
"data": {
|
||||
"content.type": "${TEST_CLUSTER_API_CONTENT_TYPE}"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
LOCAL_KUBECONFIG="${RESOURCE_DIRECTORY}/kubeconfig.loc"
|
||||
cat > "${LOCAL_KUBECONFIG}" << EOF
|
||||
apiVersion: v1
|
||||
@ -247,10 +261,12 @@ sed -i'' -e "s/##EVENTER_MEM##/${eventer_mem}/g" "${RESOURCE_DIRECTORY}/addons/h
|
||||
|
||||
"${KUBECTL}" create -f "${RESOURCE_DIRECTORY}/kubemark-ns.json"
|
||||
"${KUBECTL}" create -f "${KUBECONFIG_SECRET}" --namespace="kubemark"
|
||||
"${KUBECTL}" create -f "${NODE_CONFIGMAP}" --namespace="kubemark"
|
||||
"${KUBECTL}" create -f "${RESOURCE_DIRECTORY}/addons" --namespace="kubemark"
|
||||
"${KUBECTL}" create -f "${RESOURCE_DIRECTORY}/hollow-node.json" --namespace="kubemark"
|
||||
|
||||
rm "${KUBECONFIG_SECRET}"
|
||||
rm "${NODE_CONFIGMAP}"
|
||||
|
||||
echo "Waiting for all HollowNodes to become Running..."
|
||||
start=$(date +%s)
|
||||
|
Loading…
Reference in New Issue
Block a user