Add kubectl shell pod

This commit is contained in:
niusmallnan 2021-04-14 17:17:11 +08:00
parent d5ecaaa18c
commit f3432ff282

View File

@ -27,3 +27,31 @@ spec:
args:
- "--https-listen-port=0"
- "--http-listen-port=8989"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kube-explorer-shell
namespace: kube-system
labels:
app: kube-explorer-shell
spec:
replicas: 1
selector:
matchLabels:
app: kube-explorer-shell
template:
metadata:
namespace: kube-system
labels:
app: kube-explorer-shell
spec:
serviceAccountName: kube-explorer
containers:
- image: rancher/shell:v0.1.6
imagePullPolicy: IfNotPresent
name: shell
stdin: true
tty: true
securityContext:
runAsUser: 0