Skip to content

Commit b941ce5

Browse files
authored
Merge pull request #269 from marceloamaral/kind-host
mount host /proc in the kind cluster to resolve pod name
2 parents f727982 + 0bc78d8 commit b941ce5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

cluster-up/cluster/kind/common.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ function _prepare_config() {
165165
cp $KIND_MANIFESTS_DIR/local-registry.yml ${CONFIG_OUT_DIR}/local-registry.yml
166166
sed -i -e "s/$_registry_name/${REGISTRY_NAME}/g" ${CONFIG_OUT_DIR}/local-registry.yml
167167
sed -i -e "s/$_registry_port/${REGISTRY_PORT}/g" ${CONFIG_OUT_DIR}/local-registry.yml
168+
169+
# make cluster-sync overwrite the CONFIG_OUT_DIR, so that we update the manifest dir directly.
170+
# TODO: configure the kepler yaml in the CONFIG_OUT_DIR, not in the MANIFEST DIR.
171+
echo "WARN: we are changing the file manifests/kubernetes/deployment.yaml"
172+
sed -i -e "s/path: \/proc/path: \/proc-host/g" manifests/kubernetes/deployment.yaml
168173
}
169174

170175
function _get_nodes() {

cluster-up/cluster/kind/manifests/kind.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ containerdConfigPatches:
77
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."localhost:5001"]
88
endpoint = ["http://kind-registry:5000"]
99
nodes:
10-
- role: control-plane
10+
- role: control-plane
11+
extraMounts:
12+
- hostPath: /proc
13+
containerPath: /proc-host

0 commit comments

Comments
 (0)