Search
Duplicate

수업
Kubernetes Infra
주제
5 more properties
deployment.yaml
argo-events-controller

주요 단축키

? : 도움말 메뉴를 표시합니다. 현재 화면에서 사용할 수 있는 모든 단축키를 볼 수 있습니다.
q : 현재 화면에서 나가거나 종료합니다.
Ctrl + a : 이전에 방문한 화면으로 돌아갑니다.
: : 명령어 모드로 전환합니다. 예를 들어, 특정 리소스를 검색하거나 관리할 수 있습니다.
Ctrl + f : 리소스 검색 창을 엽니다.
Shift + i : 리소스 정보를 새로 고칩니다.
Shift + e : 리소스 편집 모드로 들어갑니다.
d : 리소스를 삭제합니다.
Ctrl + r : K9s를 새로 고칩니다.

리소스 이동 및 관리

g : 리소스 목록의 맨 위로 이동합니다.
G : 리소스 목록의 맨 아래로 이동합니다.
Enter : 선택한 리소스의 세부 정보를 표시합니다.
←/→ : 리소스 상세 정보 화면에서 섹션 간 이동합니다.
Ctrl + b : Pod의 로그를 표시합니다.
Ctrl + x : Pod의 컨테이너를 실행합니다.

Pod 관리

s : Pod의 상세 정보를 표시합니다.
l : Pod의 로그를 확인합니다.
Shift + s : Pod의 로그를 스트리밍합니다.
Ctrl + d : Pod를 삭제합니다.
r : Pod를 재시작합니다.

네비게이션

h : Home 화면으로 이동합니다.
n : 다음 화면으로 이동합니다.
p : 이전 화면으로 이동합니다.
b : Pod의 bash 셸에 접근합니다.
apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "sse.fullname" . }} labels: {{- include "sse.labels" . | nindent 4 }} spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} {{- end }} selector: matchLabels: {{- include "sse.selectorLabels" . | nindent 6 }} template: metadata: {{- with .Values.podAnnotations }} annotations: {{- toYaml . | nindent 8 }} {{- end }} labels: {{- include "sse.selectorLabels" . | nindent 8 }} spec: {{- with .Values.global.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} serviceAccountName: {{ include "sse.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} lifecycle: preStop: exec: command: ["/bin/sh","-c","sleep 10"] ports: - name: http containerPort: {{ .Values.container.port }} protocol: TCP {{- if .Values.probes.liveness.enabled }} livenessProbe: httpGet: path: {{ .Values.probes.liveness.path }} port: http {{- end }} {{- if .Values.probes.readiness.enabled }} readinessProbe: httpGet: path: {{ .Values.probes.readiness.path }} port: http {{- end }} {{- if .Values.resources.enabled }} resources: {{- toYaml .Values.resources | nindent 12 }} {{- end }} {{- if .Values.configMap.enabled }} envFrom: - configMapRef: name: {{ .Release.Name }}-configmap {{- end }} {{- if .Values.secret.enabled }} - secretRef: name: {{ .Values.secret.name }} {{- end }} # 참고 {{- with .Values.volumeMounts }} volumeMounts: {{- toYaml . | nindent 12 }} {{- end }} # 참고 {{- with .Values.volumes }} volumes: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }}
YAML
복사
{{- if .Values.pvc.enabled }} apiVersion: v1 kind: PersistentVolumeClaim metadata: name: sse-pvc spec: accessModes: - {{ .Values.pvc.accessModes }} storageClassName: {{ .Values.pvc.storageClassName }} resources: requests: storage: {{ .Values.pvc.capacity }} {{- end }}
YAML
복사