diff --git a/apps/sample-nginx.yaml b/apps/pipeline-sample.yaml similarity index 83% rename from apps/sample-nginx.yaml rename to apps/pipeline-sample.yaml index 5abacbd..868100f 100644 --- a/apps/sample-nginx.yaml +++ b/apps/pipeline-sample.yaml @@ -1,7 +1,7 @@ apiVersion: argoproj.io/v1alpha1 kind: Application metadata: - name: sample-nginx + name: pipeline-sample namespace: argocd finalizers: - resources-finalizer.argocd.argoproj.io @@ -10,10 +10,10 @@ spec: source: repoURL: https://github.com/Phantom-s-Lab/phantom-cloud-gitops.git targetRevision: main - path: platform/sample-nginx + path: platform/pipeline-sample destination: server: https://kubernetes.default.svc - namespace: sample + namespace: pipeline-sample syncPolicy: automated: prune: 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