apiVersion: apps/v1 kind: Deployment metadata: name: ircs-content-service namespace: ircs-prod labels: app: ircs-content-service app.kubernetes.io/part-of: ircs environment: prod spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: ircs-content-service template: metadata: labels: app: ircs-content-service app.kubernetes.io/part-of: ircs environment: prod spec: imagePullSecrets: - name: harbor-secret containers: - name: app image: harbor.mnnu.eu.org/ircs/ircs-content-service@sha256:b0761d6b17f95b87528e494b23bc4c09e8fee5dc0917724809d1108223f32bf0 imagePullPolicy: IfNotPresent ports: - name: http containerPort: 8080 envFrom: - configMapRef: name: ircs-prod-app-config env: - name: SPRING_APPLICATION_NAME value: ircs-content-service - name: SPRING_RABBITMQ_HOST valueFrom: configMapKeyRef: name: ircs-prod-app-config key: RABBITMQ_HOST - name: SPRING_RABBITMQ_USERNAME value: admin - name: SPRING_RABBITMQ_PASSWORD valueFrom: secretKeyRef: name: ircs-prod-secrets key: RABBITMQ_PASSWORD - name: SPRING_DATASOURCE_URL valueFrom: configMapKeyRef: name: ircs-prod-app-config key: DB_URL - name: SPRING_DATASOURCE_USERNAME value: postgres - name: SPRING_DATASOURCE_PASSWORD valueFrom: secretKeyRef: name: ircs-prod-secrets key: DB_PASSWORD - name: SPRING_DATASOURCE_HIKARI_MAXIMUM_POOL_SIZE value: "2" - name: SPRING_DATASOURCE_HIKARI_MINIMUM_IDLE value: "0" - name: SPRING_DATASOURCE_HIKARI_IDLE_TIMEOUT value: "30000" - name: APP_CONTENT_LISTENER_ENABLED value: "true" - name: APP_CONTENT_CONFIG_LISTENER_ENABLED value: "true" - name: APP_CONTENT_MAINTENANCE_GATE_LISTENER_ENABLED value: "true" - name: APP_CONTENT_RESOLVER_PRESET_SEED_ENABLED value: "true" - name: APP_CONTENT_SCRAPER_BASE_URL value: http://ircs-scraper-service.ircs-prod.svc.cluster.local:8080 - name: IRCS_OUTBOUND_CIRCUIT_CONTENT_REFETCH_SCRAPER_ENABLED value: "true" - name: IRCS_OUTBOUND_CIRCUIT_CONTENT_REFETCH_SCRAPER_FAILURE_THRESHOLD value: "5" - name: IRCS_OUTBOUND_CIRCUIT_CONTENT_REFETCH_SCRAPER_OPEN_DURATION_MS value: "30000" - name: IRCS_OUTBOUND_CIRCUIT_CONTENT_REFETCH_SCRAPER_HALF_OPEN_MAX_CALLS value: "1" startupProbe: httpGet: path: /actuator/health/liveness port: http failureThreshold: 30 periodSeconds: 5 readinessProbe: httpGet: path: /actuator/health/readiness port: http periodSeconds: 10 livenessProbe: httpGet: path: /actuator/health/liveness port: http periodSeconds: 30 resources: requests: cpu: 25m memory: 128Mi limits: cpu: 250m memory: 512Mi --- apiVersion: v1 kind: Service metadata: name: ircs-content-service namespace: ircs-prod labels: app: ircs-content-service app.kubernetes.io/part-of: ircs environment: prod spec: type: ClusterIP selector: app: ircs-content-service ports: - name: http port: 8080 targetPort: http