apiVersion: apps/v1
kind: Deployment
metadata:
  name: springboot-v2
  namespace: temp
spec:
  replicas: 2 
  template:
    metadata:
      labels:
        app: springboot
        version: v2
    spec:
      containers:
      - name: springboot
        image: helloworld:1.0.0
        ports:
        - containerPort: 8080
  selector:
    matchLabels:
      app: springboot
      version: v2
  