fix: redis runAsUser/runAsGroup 999 설정 (closes #67)#68
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
관련 이슈
closes #67
변경 사항
k8s/manifests/base/redis/deployment.yaml컨테이너 securityContext에runAsUser: 999,runAsGroup: 999추가작업 내용 상세
redis:7-alpine 이미지는 기본적으로 root(UID 0)로 프로세스를 시작함.
capabilities: drop: ALL설정 하에서 root로 실행하면 필요한 권한이 차단되어 파드가 정상 기동되지 않음.redis 공식 이미지에 미리 생성된
redis유저(UID/GID 999)로 실행하도록 명시하여 최소 권한 원칙을 준수함.체크리스트
terraform plan실행하여 의도한 변경만 포함되어 있음을 확인