yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
generation: 5
labels:
k8s.kuboard.cn/layer: svc
k8s.kuboard.cn/name: svc-webssh
name: svc-webssh
namespace: default
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 1
selector:
matchLabels:
k8s.kuboard.cn/layer: svc
k8s.kuboard.cn/name: svc-webssh
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
k8s.kuboard.cn/layer: svc
k8s.kuboard.cn/name: svc-webssh
spec:
containers:
- image: dbcawa/webssh
imagePullPolicy: IfNotPresent
lifecycle: {}
name: webssh
ports:
- containerPort: 8888
protocol: TCP
nodeName: n4
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
labels:
k8s.kuboard.cn/layer: svc
k8s.kuboard.cn/name: svc-webssh
name: svc-webssh
namespace: default
spec:
ports:
- name: xnepcp
nodePort: 32100
port: 8888
protocol: TCP
targetPort: 8888
selector:
k8s.kuboard.cn/layer: svc
k8s.kuboard.cn/name: svc-webssh
type: NodePort