apiVersion: apps/v1
kind: Deployment
metadata:
  name: kube-lab
  labels:
    app: kube-lab
spec:
  replicas: 1
  selector:
    matchLabels:
      app: kube-lab
  template:
    metadata:
      labels:
        app: kube-lab
    spec:
      containers:
        - name: web
          image: kube-lab
          imagePullPolicy: IfNotPresent
          ports:
            - name: http
              containerPort: 5000
              protocol: TCP