apiVersion: apps/v1 kind: Deployment metadata: name: proxy-detection-api labels: app: proxy-detection-api spec: replicas: 2 selector: matchLabels: app: proxy-detection-api template: metadata: labels: app: proxy-detection-api spec: containers: - name: proxy-detection-api image: registry.stare.gg/boki/proxy-detection imagePullPolicy: Always ports: - containerPort: 2424 env: - name: PORT value: "2424" - name: HOST value: "0.0.0.0" - name: NODE_ENV value: "production" - name: TRUST_PROXY value: "true" - name: API_KEY valueFrom: secretKeyRef: name: proxy-detection-secret key: api-key resources: requests: memory: "64Mi" cpu: "50m" limits: memory: "128Mi" cpu: "100m" livenessProbe: httpGet: path: /health port: 2424 initialDelaySeconds: 30 periodSeconds: 10 readinessProbe: httpGet: path: /health port: 2424 initialDelaySeconds: 5 periodSeconds: 5 imagePullSecrets: - name: gitlabcred --- apiVersion: v1 kind: Service metadata: name: proxy-detection-service labels: app: proxy-detection-api spec: selector: app: proxy-detection-api ports: - port: 80 targetPort: 2424 protocol: TCP type: ClusterIP