HumioPdfRenderService

A HumioPdfRenderService resource tells the Humio Operator to deploy the PDF Rendering Service.

yaml
apiVersion: core.humio.com/v1alpha1
kind: HumioPdfRenderService
metadata:
  name: pdf-render-service
  namespace: logging
spec:
  # TLS configuration shared with the HumioCluster CA secret managed by cert-manager.
  # The example HumioCluster named "example-humiocluster" produces the example-humiocluster-ca-keypair secret.
  tls:
    enabled: true
    caSecretName: example-humiocluster-ca-keypair
  image: humio/pdf-render-service:0.1.3--build-108--sha-4b505137e430cf9dfe02341d51f0f298af3c89f6
  replicas: 2
  port: 5123
  serviceType: ClusterIP
  environmentVariables:
    - name: XDG_CONFIG_HOME
      value: /tmp/.chromium-config
    - name: XDG_CACHE_HOME
      value: /tmp/.chromium-cache
    - name: LOG_LEVEL
      value: "debug"
    - name: CLEANUP_INTERVAL
      value: "600"
    # TLS-related env vars are injected automatically when spec.tls.enabled=true.
  resources:
    limits:
      cpu: "1"
      memory: "2Gi"
    requests:
      cpu: "1"
      memory: "1Gi"
  # Readiness probe configuration
  readinessProbe:
    httpGet:
      path: /ready
      port: 5123
    initialDelaySeconds: 30
    periodSeconds: 15
    timeoutSeconds: 60
    failureThreshold: 1
    successThreshold: 1
  # Liveness probe configuration
  livenessProbe:
    httpGet:
      path: /health
      port: 5123
    initialDelaySeconds: 30
    periodSeconds: 15
    timeoutSeconds: 60
    failureThreshold: 5
    successThreshold: 1
  # Node affinity configuration
  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
        - matchExpressions:
          - key: humio_node_type
            operator: In
            values:
            - core
  # Add annotations for service
  annotations:
    prometheus.io/scrape: "true"
    prometheus.io/path: /metrics
    prometheus.io/port: "5123"
  # Volume mounts for the container
  volumeMounts:
    - name: app-temp
      mountPath: /app/temp
    - name: tmp
      mountPath: /tmp
  # Volumes for the pod
  volumes:
    - name: app-temp
      emptyDir:
        medium: Memory
    - name: tmp
      emptyDir:
        medium: Memory
  # Container security context
  securityContext:
    allowPrivilegeEscalation: false
    capabilities:
      drop:
        - ALL
    privileged: false
    readOnlyRootFilesystem: true
    runAsGroup: 1000
    runAsNonRoot: true
    runAsUser: 1000
  # Pod security context (empty in the example)
  podSecurityContext: {}