apiVersion: apps/v1
kind: Deployment
metadata:
  name: net-core-docker-sample-deployment
spec:
  replicas: 1
  progressDeadlineSeconds: 180
  selector:
    matchLabels:
      app: net-core-docker-sample
  template:
    metadata:
      labels:
        app: net-core-docker-sample
    spec:
      containers:
      - name: net-core-docker-sample
        image: raschmitt/net-core-docker-sample:latest
        resources:
          limits:
            memory: "250Mi"
            cpu: "500m"
        ports:
        - containerPort: 80
        readinessProbe:
          httpGet:
            path: /health
            port: 80
          failureThreshold: 3
          periodSeconds: 10
        volumeMounts:
        - mountPath: /appsettings.json
          name: appsettings
          subPath: appsettings.json
      volumes:
        - name: appsettings
          secret:
            secretName: net-core-docker-sample-appsettings