Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- 완전탐색
- GCP
- NLP
- DeepLearning
- Kaggle
- wandb
- torchserve
- python
- GitHub Action
- pytorch
- docker
- github
- rnn
- leetcode
- 알고리즘
- Kubernetes
- GIT
- 코딩테스트
- NaverAItech
- 프로그래머스
- vscode
- FDS
- datascience
- 네이버AItech
- autoencoder
- Matplotlib
- pep8
- PytorchLightning
- 백준
- FastAPI
Archives
- Today
- Total
목록kubectl label (1)
Sangmun
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/c8Jyv1/btrZrv1j68x/bo3LhoYplvlzAfdc45KAg1/img.png)
쿠버네티스의 Label은 쿠버네티스의 리소스를 논리적인 그룹으로 나누기 위해 붙이는 레이블링이다. selector는 Label을 이용하여 조회하려는 리소스만 조회할 수 있게 하는 기능이다. yaml 파일 안에서 Label은 아래와 같이 metadata아래에서 선언을 하며 해당 이미지에는 app=backend, version=v1, env=prod라는 라벨링을 생성하였다. apiVersion: v1 kind: Pod metadata: name: my-pod labels: app: backend version: v1 env: prod spec: containers: - image: my-pod name: my-pod 또한 yaml에서 선언하지 않아도 kubectl 명령어로도 label을 생성하거나 삭제가 가..
개발/kubernetes
2023. 2. 15. 21:52