Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/sample-nginx.yaml → apps/pipeline-sample.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions platform/pipeline-sample/service.yaml
Original file line number Diff line number Diff line change
@@ -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
14 changes: 0 additions & 14 deletions platform/sample-nginx/service.yaml

This file was deleted.

Loading