From c65463705acbd120d321d46e3a7ffaf802629672 Mon Sep 17 00:00:00 2001 From: developowl Date: Wed, 25 Nov 2026 15:33:39 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20sample-nginx=EB=A5=BC=20tenant-base?= =?UTF-8?q?=20=EA=B8=B0=EB=B0=98=20pipeline-sample=EB=A1=9C=20=EA=B5=90?= =?UTF-8?q?=EC=B2=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 이미지 CI/CD를 끝에서 끝까지 검증할 배포 대상을 추가한다. 이미지 CI가 platform/pipeline-sample의 이미지 태그를 바꾸는 PR을 자동으로 연다. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Ws9Xo8JS1c9scfrMUcVYrD --- apps/sample-nginx.yaml | 22 ------------------ .../deployment.yaml | 23 +++++++++---------- platform/pipeline-sample/service.yaml | 14 +++++++++++ platform/sample-nginx/service.yaml | 14 ----------- 4 files changed, 25 insertions(+), 48 deletions(-) delete mode 100644 apps/sample-nginx.yaml rename platform/{sample-nginx => pipeline-sample}/deployment.yaml (54%) create mode 100644 platform/pipeline-sample/service.yaml delete mode 100644 platform/sample-nginx/service.yaml diff --git a/apps/sample-nginx.yaml b/apps/sample-nginx.yaml deleted file mode 100644 index 5abacbd..0000000 --- a/apps/sample-nginx.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: sample-nginx - namespace: argocd - finalizers: - - resources-finalizer.argocd.argoproj.io -spec: - project: default - source: - repoURL: https://github.com/Phantom-s-Lab/phantom-cloud-gitops.git - targetRevision: main - path: platform/sample-nginx - destination: - server: https://kubernetes.default.svc - namespace: sample - syncPolicy: - automated: - prune: true - selfHeal: true - syncOptions: - - CreateNamespace=true diff --git a/platform/sample-nginx/deployment.yaml b/platform/pipeline-sample/deployment.yaml similarity index 54% rename from platform/sample-nginx/deployment.yaml rename to platform/pipeline-sample/deployment.yaml index 49a629d..29351be 100644 --- a/platform/sample-nginx/deployment.yaml +++ b/platform/pipeline-sample/deployment.yaml @@ -1,37 +1,36 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: sample-nginx + name: pipeline-sample labels: - app.kubernetes.io/name: sample-nginx + app.kubernetes.io/name: pipeline-sample spec: replicas: 1 selector: matchLabels: - app.kubernetes.io/name: sample-nginx + app.kubernetes.io/name: pipeline-sample template: metadata: labels: - app.kubernetes.io/name: sample-nginx + app.kubernetes.io/name: pipeline-sample spec: securityContext: - runAsNonRoot: true seccompProfile: type: RuntimeDefault containers: - - name: nginx - image: nginxinc/nginx-unprivileged:1.27-alpine + - name: sshd + image: ghcr.io/phantom-s-lab/tenant-base:sha-e928162 ports: - - name: http - containerPort: 8080 + - name: ssh + containerPort: 2222 securityContext: allowPrivilegeEscalation: false capabilities: drop: ["ALL"] + add: ["CHOWN", "SETUID", "SETGID", "SYS_CHROOT", "AUDIT_WRITE", "KILL"] resources: requests: { cpu: 10m, memory: 16Mi } limits: { memory: 64Mi } readinessProbe: - httpGet: - path: / - port: http + tcpSocket: + port: ssh diff --git a/platform/pipeline-sample/service.yaml b/platform/pipeline-sample/service.yaml new file mode 100644 index 0000000..43804fe --- /dev/null +++ b/platform/pipeline-sample/service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: pipeline-sample + labels: + app.kubernetes.io/name: pipeline-sample +spec: + type: ClusterIP + selector: + app.kubernetes.io/name: pipeline-sample + ports: + - name: ssh + port: 2222 + targetPort: ssh diff --git a/platform/sample-nginx/service.yaml b/platform/sample-nginx/service.yaml deleted file mode 100644 index 84cfd23..0000000 --- a/platform/sample-nginx/service.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: sample-nginx - labels: - app.kubernetes.io/name: sample-nginx -spec: - type: ClusterIP - selector: - app.kubernetes.io/name: sample-nginx - ports: - - name: http - port: 80 - targetPort: http From 5f9618093907308497b950882a0a9a11cd80ebbc Mon Sep 17 00:00:00 2001 From: developowl Date: Wed, 25 Nov 2026 15:33:51 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20pipeline-sample=20Application=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Ws9Xo8JS1c9scfrMUcVYrD --- apps/pipeline-sample.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 apps/pipeline-sample.yaml diff --git a/apps/pipeline-sample.yaml b/apps/pipeline-sample.yaml new file mode 100644 index 0000000..868100f --- /dev/null +++ b/apps/pipeline-sample.yaml @@ -0,0 +1,22 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: pipeline-sample + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + repoURL: https://github.com/Phantom-s-Lab/phantom-cloud-gitops.git + targetRevision: main + path: platform/pipeline-sample + destination: + server: https://kubernetes.default.svc + namespace: pipeline-sample + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true