apiVersion: apps/v1
kind: Deployment
metadata:
  name: demoservice
  annotations:
    magalix.com/kube-optimizer.cpu.limits: disabled
  labels:
    app: demoservice
spec:
  replicas: 1
  selector:
    matchLabels:
      app: demoservice
  template:
    metadata:
      labels:
        app: demoservice
    spec:
      containers:
      - name: demoservice
        image: airwavetechio/demoservice:v0.0.1
        env:
          - name: PORT
            value: '5000'
        ports:
        - containerPort: 5000
          name: liveness-port
        livenessProbe:
          httpGet:
            path: /
            port: liveness-port
          initialDelaySeconds: 3
          periodSeconds: 5
        readinessProbe:
          httpGet:
            path: /
            port: liveness-port
          initialDelaySeconds: 3
          periodSeconds: 5
        resources:
          limits:
            cpu: 10m
            memory: 25Mi
          requests:
            cpu: 10m
            memory: 25Mi
      restartPolicy: Always