From 7b27feb91ea4d09c9b9210c1e8bb3276900e0541 Mon Sep 17 00:00:00 2001 From: hm-desk Date: Sun, 2 Feb 2025 00:22:31 +0900 Subject: [PATCH] assign --- asign.html | 85 ++++++++++++++++++++++++++++++++++ kube-manifests/cm-html.yaml | 92 +++++++++++++++++++++++++++++++++++++ kube-manifests/dp-all.yaml | 56 ++++++++++++++++++++++ 3 files changed, 233 insertions(+) create mode 100644 asign.html create mode 100644 kube-manifests/cm-html.yaml create mode 100644 kube-manifests/dp-all.yaml diff --git a/asign.html b/asign.html new file mode 100644 index 0000000..b9ef1c5 --- /dev/null +++ b/asign.html @@ -0,0 +1,85 @@ + + + + + + 인사말 페이지 + + + +
+

안녕하세요! 반갑습니다.

+ + + + + + + + + + +
nameurl
test pagehttps://assign.icurfer.com
+
+ + + diff --git a/kube-manifests/cm-html.yaml b/kube-manifests/cm-html.yaml new file mode 100644 index 0000000..8da5c3e --- /dev/null +++ b/kube-manifests/cm-html.yaml @@ -0,0 +1,92 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: greeting-html-config + namespace: toy +data: + index.html: | + + + + + + 인사말 페이지 + + + +
+

안녕하세요! 반갑습니다.

+ + + + + + + + + + +
nameurl
test pagehttps://assign.icurfer.com
+
+ + + diff --git a/kube-manifests/dp-all.yaml b/kube-manifests/dp-all.yaml new file mode 100644 index 0000000..a2d6d5b --- /dev/null +++ b/kube-manifests/dp-all.yaml @@ -0,0 +1,56 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: assign-ing + namespace: assign +spec: + ingressClassName: nginx + rules: + - host: assign.icurfer.com + http: + paths: + - backend: + service: + name: assign-svc + port: + number: 80 + path: / + pathType: Prefix +--- +apiVersion: v1 +kind: Service +metadata: + name: assign-svc + namespace: assign +spec: + selector: + app: assign + ports: + - protocol: TCP + port: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: assign-dp + namespace: assign +spec: + replicas: 1 + selector: + matchLabels: + app: assign + template: + metadata: + labels: + app: assign + spec: + containers: + - name: nginx + image: nginx:latest + volumeMounts: + - name: greeting-html + mountPath: /usr/share/nginx/html + volumes: + - name: greeting-html + configMap: + name: greeting-html-config \ No newline at end of file