代码拉取完成,页面将自动刷新
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: pp
labels:
app: tcli-dlv
name: tcli-dlv
spec:
replicas: 1
selector:
matchLabels:
app: tcli-dlv
template:
metadata:
labels:
app: tcli-dlv
annotations:
logging.kubesphere.io/logsidecar-config: '{}'
spec:
containers:
- name: dlv
imagePullPolicy: IfNotPresent
image: 'eggitayi/k8sgodlv:v1.0'
args: ['./main.go']
ports:
- name: tcp-2345
protocol: TCP
containerPort: 2345
volumeMounts:
- name: tcli
readOnly: false
mountPath: /app
serviceAccount: default
initContainers: []
volumes:
- hostPath:
path: /root/dlv/tcli
name: tcli
imagePullSecrets: null
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
---
apiVersion: v1
kind: Service
metadata:
namespace: pp
labels:
app: dlv
name: dlv
spec:
sessionAffinity: None
selector:
app: tcli-dlv
ports:
- name: dlv
protocol: TCP
targetPort: 2345
port: 2345
nodePort: 9900
type: NodePort
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。