当前位置:网站首页>Several ways to restart kubernetes pod
Several ways to restart kubernetes pod
2022-06-12 09:02:00 【Commander in chief (commander in chief)】
Preface
In the use of docker In the process of , We can use docker restart {container_id} To restart the container , But in kubernetes There is no restart command in ( No, kubectl restart {podname})
Method 1
There's the latest yaml file .
There is yaml File can be used directly kubectl replace --force -f xxxx.yaml To force replacement Pod Of API object , So as to achieve the purpose of restart .
Method 2
No, yaml file , But here's the thing Deployment object .
kubectl scale deployment esb-admin --replicas=0 -n {
namespace}
kubectl scale deployment esb-admin --replicas=1 -n {
namespace}
because Deployment Objects are not directly manipulated Pod object , It's controlled Rep
边栏推荐
- (十三)文本渲染Text
- POI library update excel picture
- Xshell startup encountered "unable to continue code execution because mfc110.dll cannot be found"
- (14) Inputfield logic analysis
- Implementing architecture caching in MySQL under redis server environment
- Minimum transfer times
- 剑指 Offer II 016. 不含重复字符的最长子字符串-滑动窗口
- (十五) TweenRunner
- 分库分表会带来读扩散问题?怎么解决?
- Shell basic syntax -- array
猜你喜欢
![(node:22344) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permit](/img/c1/d56ec09663857afa52f20848aeadac.png)
(node:22344) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permit

清华大学数据挖掘笔记(一)

Regularization to limit the number of digits after the decimal point of an input number

机器学习笔记 - 循环神经网络备忘清单

IDEA新版UI申请方法+无测试资格使用方法及相关介绍

Background location case II

Domain name mapping to specified IP

The database doesn't know what went wrong

ERROR 1630 (42000): FUNCTION a.avg does not exist. Check the ‘Function Name Parsing and Resolution‘

Summary of common character sets
随机推荐
Background color translucent
Popular understanding of time domain sampling and frequency domain continuation
2024. maximum difficulty of the exam - sliding window
【字符集七】汉字的宽字符码和多字节码分别是多少
解压缩zip文件的工具类
Summary of common character sets
Redis installation test
RuntimeError:Input and parameter tensors are not at the same device, found input tensor at cuda:0 an
网页中加载二次元3D虚拟主播源码(1:项目介绍和源码)
[character set 6] wide string and multi byte character conversion
Chapter V -[bx] and loop instructions
Loading font component loading effect
Background position - mixed units
剑指 Offer II 016. 不含重复字符的最长子字符串-滑动窗口
IDEA新版UI申请方法+无测试资格使用方法及相关介绍
Node sample background setup
第三章 寄存器 (内存访问)
[character set 7] what are the wide character codes and multi byte codes of Chinese characters
Knee joint
[advanced pointer 2] array parameter transfer & pointer parameter transfer & function pointer & function pointer array & callback function