Compare commits
No commits in common. "375ae575e595686b8794d158728c84b6611ab916" and "c991af3e0ffb61f3dd6f882016b5d6bacc28b4bc" have entirely different histories.
375ae575e5
...
c991af3e0f
@ -66,7 +66,29 @@ if [[ "$NODE" == "" ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
NODE_NAME=$(kubectl get node $NODE -o template --template='{{index .metadata.labels "kubernetes.io/hostname"}}')
|
NODE_NAME=$(kubectl get node $NODE -o template --template='{{index .metadata.labels "kubernetes.io/hostname"}}')
|
||||||
NODE_SELECTOR='"nodeSelector": { "kubernetes.io/hostname": "'${NODE_NAME}'" },'
|
NODE_SELECTOR='"nodeSelector": { "kubernetes.io/hostname": "'${NODE_NAME}'" },'
|
||||||
|
|
||||||
kubectl run --namespace ${NAMESPACE} $POD --rm -it --image alpine --privileged --overrides '{"spec":{'"${NODE_SELECTOR}"'"hostPID": true}}' --command nsenter -- --mount=/proc/1/ns/mnt -- /bin/bash
|
kubectl run --namespace ${NAMESPACE} $POD --restart=Never -it --rm --image overriden --overrides '
|
||||||
|
{
|
||||||
|
"spec": {
|
||||||
|
"hostPID": true,
|
||||||
|
"hostNetwork": true,
|
||||||
|
'"${NODE_SELECTOR}"'
|
||||||
|
"tolerations": [{
|
||||||
|
"operator": "Exists"
|
||||||
|
}],
|
||||||
|
"containers": [
|
||||||
|
{
|
||||||
|
"name": "kube-ssh",
|
||||||
|
"image": "averagemarcus/kube-ssh:latest",
|
||||||
|
"stdin": true,
|
||||||
|
"tty": true,
|
||||||
|
"securityContext": {
|
||||||
|
"privileged": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}' --attach
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
format = """\
|
format = """\
|
||||||
$status\
|
$status\
|
||||||
$cmd_duration\
|
$cmd_duration\
|
||||||
$hostname\
|
|
||||||
$directory\
|
$directory\
|
||||||
$git_branch\
|
$git_branch\
|
||||||
$git_commit\
|
$git_commit\
|
||||||
@ -23,11 +22,6 @@ format = """\
|
|||||||
command_timeout = 1000
|
command_timeout = 1000
|
||||||
add_newline = true
|
add_newline = true
|
||||||
|
|
||||||
[hostname]
|
|
||||||
ssh_only = true
|
|
||||||
format = "🌐 [$hostname](bold dimmed blue) \n"
|
|
||||||
disabled = false
|
|
||||||
|
|
||||||
[directory]
|
[directory]
|
||||||
format = "┏ [$path]($style)[$read_only]($read_only_style) "
|
format = "┏ [$path]($style)[$read_only]($read_only_style) "
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user