apiVersion: apps/v1
kind: Deployment
metadata:
  name: kubelilin-dashboard
  namespace: kube-lilin
spec:
  selector:
    matchLabels:
      app: kubelilin-dashboard
  replicas: 1                       # tells deployment to run 2 pods matching the template
  template:                         # create pods using pod definition in this template
    metadata:
      labels:
        app: kubelilin-dashboard
    spec:
      containers:
        - name: app
          image: yoyofx/sgr-ui:dev1.3
          imagePullPolicy: IfNotPresent
          ports:
            - containerPort: 80