apiVersion: apps/v1
kind: Deployment
metadata:
  name: urban-iptable-management-app
  namespace: urbanboot
  labels:
    app: urban-iptable-management-app
spec:
  replicas: 1
  selector:
    matchLabels:
      app: urban-iptable-management-app
  template:
    metadata:
      labels:
        app: urban-iptable-management-app
    spec:
      containers:
        - name: urban-iptable-management-app
          image: docker.io/library/urban-iptable-management-app:latest
          imagePullPolicy: IfNotPresent
          ports:
            - containerPort: 7200
              name: http
              protocol: TCP
          resources:
            requests:
              cpu: 100m
              memory: 256Mi
            limits:
              cpu: 1000m
              memory: 1024Mi
          livenessProbe:
            httpGet:
              path: /health
              port: 7200
              scheme: HTTP
            initialDelaySeconds: 20
            failureThreshold: 60
            periodSeconds: 5
            successThreshold: 1
            timeoutSeconds: 2
          readinessProbe:
            httpGet:
              path: /health
              port: 7200
              scheme: HTTP
            initialDelaySeconds: 30
            failureThreshold: 60
            periodSeconds: 5
            successThreshold: 1
            timeoutSeconds: 2
