# pod-definition.yaml
apiVersion : v1
kind: Pod
metadata:
	name: simple-webapp
	labels:
		app: App1
		function : Front-end
spec:
	containers:
	- name : simple-webapp
		image: simple-webapp
kubetcl get pods --selector app=App1
# replicaset-definition.yaml
apiVersion : apps/v1
kind: ReplicaSet
metadata:
	name: simple-webapp
	labels:
		app: App1 # 해당 자원 라벨링 (헷깔림 주의)
		function : Front-end
	annotations:
		buildversion: 1.34
spec:
	replicas: 3
	selector: # 기존에 있는 파드와 연동짓기 위한 것
		matchLabels:
			app: App1
	template:
		metadata:
			labels: # 새 파드 라벨링
				app: App1
				function : Front-end
		spec:
		containers:
		- name : simple-webapp
			image: simple-webapp

Annotations