k8s中ssh容器Deployment
2021-10-15 本文已影响0人
rushui
apiVersion: apps/v1
kind: Deployment
metadata:
name: sshd
namespase: sshd
spec:
replicas: 1
selector:
matchLabels:
app: sshd
version: v1
template:
metadata:
labels:
app: sshd
version: v1
spec:
containers:
- image: sickp/alpine-sshd
imagePullPolicy: IfNotPresent
name: sshd
ports:
- containerPort: 22