apiVersion: apps/v1 kind: Deployment metadata: name: techlog-backend spec: progressDeadlineSeconds: 600 replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: app: techlog-backend strategy: type: Recreate template: metadata: labels: app: techlog-backend spec: automountServiceAccountToken: false containers: - env: - name: SPRING_PROFILES_ACTIVE value: local - name: SPRING_DATASOURCE_URL value: jdbc:postgresql://platform-postgres-rw.platform-data.svc.cluster.local:5432/techlog - name: SPRING_DATASOURCE_USERNAME value: techlog - name: SPRING_DATASOURCE_PASSWORD valueFrom: secretKeyRef: key: APP_DB_PASSWORD name: hyeonworks-secrets - name: SPRING_DATASOURCE_DRIVER_CLASS_NAME value: org.postgresql.Driver - name: SPRING_FLYWAY_ENABLED value: 'true' - name: SPRING_JPA_HIBERNATE_DDL_AUTO value: none - name: CA_SKELETON_PERSISTENCE_VENDOR value: postgresql - name: CA_SKELETON_SECURITY_AUTH_MODE value: redis-session - name: CA_SKELETON_SECURITY_SESSION_COOKIE_NAME value: TECHLOG_SESSION - name: CA_SKELETON_SECURITY_SESSION_PATH value: / - name: CA_SKELETON_SECURITY_SESSION_SECURE value: 'true' - name: CA_SKELETON_SECURITY_SESSION_SAME_SITE value: Lax - name: APP_REDIS_ENABLED value: 'true' - name: APP_REDIS_AUTHENTICATION_ANONYMOUS_ACCESS_ACCEPTED value: 'true' - name: SPRING_DATA_REDIS_HOST value: redis - name: SPRING_DATA_REDIS_PORT value: '6379' - name: SPRING_SECURITY_OAUTH2_CLIENT_PROVIDER_KEYCLOAK_ISSUER_URI value: https://id.learn.hyeonworks.com/realms/prod - name: SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_KEYCLOAK_CLIENT_ID value: tech-log-bff - name: SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_KEYCLOAK_CLIENT_SECRET valueFrom: secretKeyRef: key: TECHLOG_OIDC_CLIENT_SECRET name: hyeonworks-secrets - name: SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_KEYCLOAK_SCOPE value: openid,profile,email - name: SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_KEYCLOAK_AUTHORIZATION_GRANT_TYPE value: authorization_code - name: SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_KEYCLOAK_REDIRECT_URI value: https://hyeonworks.com/login/oauth2/code/keycloak - name: APP_STUDIO_AUTHOR_ROLE value: site-admin - name: APP_SESSION_TIMEOUT value: 24h - name: APP_STUDIO_POST_LOGIN_REDIRECT value: https://hyeonworks.com/studio - name: APP_SERVER_FORWARD_HEADERS_STRATEGY value: framework - name: CA_SKELETON_CORS_ALLOWED_ORIGINS value: https://hyeonworks.com - name: CA_SKELETON_OBJECTSTORAGE_BACKEND value: s3 - name: CA_SKELETON_OBJECTSTORAGE_ENDPOINT value: http://minio.object-storage.svc.cluster.local - name: CA_SKELETON_OBJECTSTORAGE_REGION value: us-east-1 - name: CA_SKELETON_OBJECTSTORAGE_PATH_STYLE_ACCESS value: 'true' - name: CA_SKELETON_OBJECTSTORAGE_AUTO_CREATE_BUCKET value: 'false' - name: CA_SKELETON_OBJECTSTORAGE_BUCKET valueFrom: secretKeyRef: key: S3_BUCKET name: hyeonworks-secrets - name: CA_SKELETON_OBJECTSTORAGE_ACCESS_KEY valueFrom: secretKeyRef: key: S3_ACCESS_KEY name: hyeonworks-secrets - name: CA_SKELETON_OBJECTSTORAGE_SECRET_KEY valueFrom: secretKeyRef: key: S3_SECRET_KEY name: hyeonworks-secrets - name: TZ value: UTC - name: MANAGEMENT_ENDPOINT_HEALTH_SHOW_COMPONENTS value: always - name: LOGGING_CONFIG value: /etc/techlog-logging/logback-spring.xml - name: APP_TRACING_SAMPLE_RATE value: '0.1' - name: APP_LOG_LEVEL_APP value: INFO - name: APP_LOG_LEVEL_ROOT value: INFO - name: APP_REDIS_NODES value: redis.hyeonworks-prod.svc.cluster.local:6379 - name: APP_TRACING_ENABLED value: 'true' image: git.learn.hyeonworks.com/donghyeon.kang/tech-log-backend:46b1cc7 imagePullPolicy: IfNotPresent livenessProbe: failureThreshold: 3 httpGet: path: /actuator/health/liveness port: management initialDelaySeconds: 30 periodSeconds: 10 timeoutSeconds: 3 name: backend ports: - containerPort: 8080 name: http protocol: TCP - containerPort: 9001 name: management protocol: TCP readinessProbe: failureThreshold: 6 httpGet: path: /actuator/health/readiness port: management initialDelaySeconds: 15 periodSeconds: 5 timeoutSeconds: 3 resources: limits: memory: 1536Mi requests: cpu: 200m memory: 512Mi startupProbe: failureThreshold: 36 httpGet: path: /actuator/health/startup port: management periodSeconds: 5 timeoutSeconds: 3 terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /etc/techlog-logging name: logging-config readOnly: true securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: runAsNonRoot: true runAsUser: 1000 runAsGroup: 1000 seccompProfile: type: RuntimeDefault terminationGracePeriodSeconds: 30 volumes: - configMap: name: techlog-logging name: logging-config priorityClassName: platform-critical