apiVersion: apps/v1
kind: Deployment
metadata:
  name: example-depl
  namespace: exmpl
  labels:
    environment: prod
    app: web
    owner: ducky
spec:
  hostNetwork: false
  replicas: 2
  selector:
    matchLabels:
      app: web
  template:
    metadata:
      namespace: exmpl
      labels:
        app: web
    spec:
      restartPolicy: Always
      containers:
        - name: front-end
          image: nginx:latest
          securityContext:
            runAsUser: 810
          resources:
            requests:
              memory: "64Mi"
              cpu: "64m"
            limits:
              cpu: "500m"
          ports:
            - containerPort: 80
        - name: rss-reader
          image: datree/nginx@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
          livenessProbe:
            httpGet:
              path: /healthz
              port: 8080
              httpHeaders:
                - name: Custom-Header
                  value: Awesome
          readinessProbe:
            tcpSocket:
              port: 8080
            initialDelaySeconds: 5
            periodSeconds: 10
          resources:
            requests:
              cpu: "64m"
              memory: "128Mi"
            limits:
              memory: "128Mi"
              cpu: "500m"
          ports:
            - containerPort: 88
