当前位置:网站首页>Simple integration of client go gin 11 delete
Simple integration of client go gin 11 delete
2022-06-22 20:19:00 【51CTO】
background :
It's done client-go gin Simple integration of ten -Update, Let's demonstrate namespace deployment pod The deletion of , After the deletion is completed, you can also summarize and conduct more in-depth operations ! Delete from pod deployment namespace The sequence begins !
delete Pod
With nginx Pod For example
Be careful :zhangpeng namespace Next nginx pod For example
Write about pod delete Code for
Continue to imitate create update Write delete Method , Actually delete It only needs namespace and pod Of name That's all right. , To simplify the :
/src/service/Pod.go
Add route run main.go
main.go Add route , And run main.go
postman operation
http://127.0.0.1:8080/pod/delete

delete deployment
With zhangpeng deployment For example
With namespace zhangpeng Under the namespace zhangpeng** deployment** For example
To write delete deployment Code
/src/service/Deployment.go
Add a route and run main.go

postman test
http://127.0.0.1:8080/deployment/delete

delete namespace
With zhangpeng namespace For example
To write delete namespace Code
/src/service/Deployment.go
Add a route and run main.go

postman test
http://127.0.0.1:8080/namespace/delete

summary
- client-go be based on gin Of curd It is basically realized
- What to achieve next
- More elegant output
- Extend the statefulset svc configmap And so on other k8s resources
- Sort out the types of data
- Extraction of methods , Sorting of public classes ? Organize the structure
边栏推荐
- 【深入理解TcaplusDB技术】TcaplusDB机型管理
- 请你描述下从浏览器上输入一个url到呈现出页面的整个过程。
- [in depth understanding of tcapulusdb technology] business guide for creating doc acceptance
- Gossip about redis source code 121
- 【小资说库】掰扯下概念:数据、数据库、数据库系统、数据库管理系统、数据库技术
- [in depth understanding of tcapulusdb technology] tcapulusdb operation and maintenance
- 【深入理解TcaplusDB技术】单据受理之建表审批
- Shell编程基础(第七篇:分支语句-if)
- Yarn notes
- 【深入理解TcaplusDB知识库】部署TcaplusDB Local版常见问题
猜你喜欢
2019 年总结:31岁,不过是另一个开始

Using span method to realize row merging of multi-layer table data

完全背包如何考慮排列問題

Yarn notes

数字化转型的失败原因及成功之道

leetcode.11 --- 盛最多水的容器

【深入理解TcaplusDB技术】TcaplusDB 表管理——清理表

510000 prize pool invites you to join the war! The second Alibaba cloud ECS cloudbuild developer competition is coming

【深入理解TcaplusDB技术】入门TcaplusDB 问题汇总

科技云报道:东数西算不止于“算”,更需“新存储”
随机推荐
[in depth understanding of tcapulusdb technology] getting started with MySQL driver
Metu stability and operation and maintenance guarantee scheme
Shell编程基础(第七篇:分支语句-if)
An error is reported when idea writes JSP code, but it is solved by normal operation
【深入理解TcaplusDB技术】入门Tcaplus-JDBC开发
[in depth understanding of tcapulusdb technology] tcapulusdb adds a new business cluster cluster
第六章 操作位和位串(二)
数字化转型的失败原因及成功之道
University of Calgary | recommendation system based on Reinforcement Learning
经典面试题:一个页面从输入url到呈现过程
Async-profiler介绍
Interpolation lookup and half (bisection) lookup
Matplotlib set axis scale interval
美图稳定性和运维保障方案
Pit of undefined reference
What can the accelerated implementation of digital economy bring to SMEs?
Please describe the whole process from entering a URL in the browser to rendering the page.
[compréhension approfondie de la technologie tcaplusdb] exploitation et entretien de tcaplusdb - inspection quotidienne des patrouilles
ZABBIX learning notes (37)
Georgia Institute of technology - coordinated coverage and tracking planning of multi UAV wildfire with service quality assurance