apiVersion: apps/v1 kind: Deployment metadata: name: api-server spec: replicas: 1 selector: matchLabels: app: api-server template: metadata: labels: app: api-server spec: serviceAccountName: api-server automountServiceAccountToken: false securityContext: runAsNonRoot: true runAsUser: 10001 runAsGroup: 10001 seccompProfile: type: RuntimeDefault containers: - name: api-server image: ghcr.io/donghyeonka/project-api-server imagePullPolicy: Always ports: - containerPort: 8082 name: http envFrom: - configMapRef: name: api-server-config securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL readOnlyRootFilesystem: false resources: requests: cpu: 250m memory: 256Mi limits: cpu: 1000m memory: 512Mi readinessProbe: httpGet: path: /actuator/health/readiness port: http initialDelaySeconds: 15 timeoutSeconds: 3 failureThreshold: 3 periodSeconds: 10 livenessProbe: httpGet: path: /actuator/health/liveness port: http initialDelaySeconds: 20 timeoutSeconds: 3 failureThreshold: 5 periodSeconds: 15 startupProbe: httpGet: path: /actuator/health/liveness port: http initialDelaySeconds: 5 timeoutSeconds: 3 periodSeconds: 10 failureThreshold: 12