1 Star 0 Fork 0

eggitai/k8sgodlv

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
kubernetes.yaml 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
zexu.gao 提交于 2023-01-16 14:54 . init
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/eggitai/k8sgodlv.git
[email protected]:eggitai/k8sgodlv.git
eggitai
k8sgodlv
k8sgodlv
master

搜索帮助