apiVersion: apps/v1
kind: Deployment
metadata:
  name: kubernetes-dashboard
  namespace: kube-system
  labels:
    application: kubernetes-dashboard
    version: v1.6.1
    kubernetes.io/cluster-service: "true"
spec:
  replicas: 1
  selector:
    matchLabels:
      application: kubernetes-dashboard
  template:
    metadata:
      labels:
        application: kubernetes-dashboard
        version: v1.6.1
        kubernetes.io/cluster-service: "true"
    spec:
      priorityClassName: system-cluster-critical
      containers:
      - name: kubernetes-dashboard
        image: registry.opensource.zalan.do/teapot/kubernetes-dashboard:v1.6.1
        resources:
          limits:
            cpu: 100m
            memory: 50Mi
          requests:
            cpu: 5m
            memory: 50Mi
        ports:
        - containerPort: 9090
        livenessProbe:
          httpGet:
            path: /
            port: 9090
          initialDelaySeconds: 30
          timeoutSeconds: 30
        securityContext:
          readOnlyRootFilesystem: true
          runAsNonRoot: true
          runAsUser: 1000
