例子1
1 | //根据label批量删除pod |
例子2
1 | func main() { |
例子2是通过deployment的标签和取出所有rs
例子2里面的 selector.string() 就是取出了这个label标签
例子1
1 | //根据label批量删除pod |
例子2
1 | func main() { |
例子2是通过deployment的标签和取出所有rs
例子2里面的 selector.string() 就是取出了这个label标签
原文作者:HAOJX
原文链接:haojianxun.github.io/2021/10/25/通过labelSelector来选择pod操作/
发表日期:October 25th 2021, 12:00:00 am
更新日期:October 14th 2022, 12:38:22 am
版权声明:本文采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: true
tags: true