오류 메시지 표시
설명

오류가 발생했을 때 표시할 상세 정보의 기본 상태입니다. 기본 안내는 쉬운 설명을, 나머지는 서버 오류 상세를 접거나 펼쳐 보여줍니다.

kubeport

YAML 은 관리자가, 폼은 사용자가. Kubernetes 셀프서비스 포털.

데모 체험

역할을 선택하면 아이디가 자동 입력됩니다. 로그인 화면에 비밀번호만 붙여넣으세요.

공통 데모 비밀번호
AHF26K8YXX
계정
demo-admin@demo.kubeport
관리자로 체험
계정
demo-user@demo.kubeport
사용자로 체험

실제 클러스터에 배포됩니다 · 매일 초기화 · 개인 데이터를 남기지 마세요

Google 로 로그인

관리자가 한 번 쓰면, 사용자는 4칸만 채웁니다

오른쪽 값을 바꿔 보세요. 왼쪽 파일에서 바뀌는 줄이 바로 표시됩니다.

관리자가 쓰는 것

YAML 112줄
1apiVersion: v1
2kind: ConfigMap
3metadata:
4 name: web-config
5 labels:
6 app.kubernetes.io/name: web
7 app.kubernetes.io/component: config
8data:
9 # nginx image expands ${ENV} in /etc/nginx/templates/*.template at startup
10 default.conf.template: |
11 server {
12 listen 8080;
13 server_tokens off;
14 charset utf-8;
15 location / {
16 default_type text/plain;
17 return 200 "${WELCOME_MESSAGE}\n";
18 }
19 location /healthz {
20 access_log off;
21 return 200 "ok\n";
22 }
23 }
24---
25apiVersion: apps/v1
26kind: Deployment
27metadata:
28 name: web
29 labels:
30 app.kubernetes.io/name: web
31 app.kubernetes.io/component: server
32spec:
33 replicas: 1
34 revisionHistoryLimit: 3
35 strategy:
36 type: RollingUpdate
37 rollingUpdate:
38 maxSurge: 1
39 maxUnavailable: 0
40 selector:
41 matchLabels:
42 app: web
43 template:
44 metadata:
45 labels:
46 app: web
47 spec:
48 automountServiceAccountToken: false
49 securityContext:
50 runAsNonRoot: true
51 runAsUser: 101
52 seccompProfile:
53 type: RuntimeDefault
54 containers:
55 - name: web
56 image: ghcr.io/nginx/nginx-unprivileged:1.27-alpine
57 imagePullPolicy: IfNotPresent
58 ports:
59 - name: http
60 containerPort: 8080
61 protocol: TCP
62 env:
63 - name: WELCOME_MESSAGE
64 value: "Hello from kubeport"
65 resources:
66 requests:
67 cpu: 50m
68 memory: 64Mi
69 limits:
70 cpu: 250m
71 memory: 128Mi
72 readinessProbe:
73 httpGet:
74 path: /healthz
75 port: http
76 initialDelaySeconds: 2
77 periodSeconds: 5
78 livenessProbe:
79 httpGet:
80 path: /healthz
81 port: http
82 initialDelaySeconds: 10
83 periodSeconds: 15
84 securityContext:
85 allowPrivilegeEscalation: false
86 capabilities:
87 drop:
88 - ALL
89 volumeMounts:
90 - name: nginx-template
91 mountPath: /etc/nginx/templates
92 readOnly: true
93 volumes:
94 - name: nginx-template
95 configMap:
96 name: web-config
97---
98apiVersion: v1
99kind: Service
100metadata:
101 name: web
102 labels:
103 app.kubernetes.io/name: web
104spec:
105 type: ClusterIP
106 selector:
107 app: web
108 ports:
109 - name: http
110 port: 80
111 targetPort: http
112 protocol: TCP

사용자가 보는 것

입력 4개

실행할 웹 서버 프로그램의 버전입니다. 잘 모르면 최신(1.27)을 고르세요.

1
3

같은 서버를 몇 개 띄울지 정합니다. 많을수록 한 개가 죽어도 서비스가 이어지지만 자원을 더 씁니다.

브라우저로 접속했을 때 화면에 보여줄 문장입니다. 80자까지, 따옴표·$·;·중괄호는 쓸 수 없습니다.

서버 하나가 쓸 수 있는 최대 메모리입니다. 이 데모에서는 128Mi 로 충분합니다.