apiVersion:apps/v1kind:ReplicaSetmetadata:name:myapp-replicasetlabels:app:myappspec:selector:matchLabels:app:myappreplicas:3# number of replicastemplate:# POD template to be replicatedmetadata:name:nginx-2labels:app:myappspec:containers:-name:nginximage:nginx
apiVersion:v1kind:ResourceQuotametadata:name:compute-quotanamespace:devspec:hard:pods:"10"requests.cpu:"4"requests.memory:5Gilimits.cpu:"10"limits.memory:10 Gi
apiVersion:v1kind:PersistentVolumemetadata:name:pv-vol1spec:accessModes:-ReadWriteOnce# refers to pvc.yamlcapacity:storage:500Mi# refers to pvc.yamlgcePersistentDisk:pdName:pd-diskfsType:ext4
apiVersion:v1kind:PersistentVolumeClaimmetadata:name:data-volume# refers to pod.yaml → spec → volumes → persistentVolumeClaim → claimNamespec:accessModes:-ReadWriteOnce# refers to pv.yamlstorageClassName:google-storageresources:requests:storage:500Mi# refers to pv.yaml
apiVersion:v1kind:Podmetadata:name:mysqlspec:containers:-name:mysqlimage:mysqlvolumeMounts:-mountPath:/var/lib/mysqlname:data-volumevolumes:-name:data-volumepersistentVolumeClaim:claimName:data-volume# refers to pvc.yaml → metadata → name
apiVersion:v1kind:PersistentVolumeClaimmetadata:name:data-volume# refers to pod.yaml → spec → volumes → persistentVolumeClaim → claimNamespec:accessModes:-ReadWriteOnce# refers to sc.yamlstorageClassName:google-storageresources:requests:storage:500Mi
apiVersion:v1kind:Podmetadata:name:mysqlspec:containers:-name:mysqlimage:mysqlvolumeMounts:-mountPath:/var/lib/mysqlname:data-volumevolumes:-name:data-volumepersistentVolumeClaim:claimName:data-volume# refers to pvc.yaml → metadata → name