Added cel-tester

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2023-06-01 19:42:28 +01:00
parent 7ef157234f
commit d19bd05ec1
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
2 changed files with 94 additions and 0 deletions

View File

@ -0,0 +1,24 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: cel-tester
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: cluster.fun
destination:
namespace: cel-tester
name: civo
source:
path: manifests/cel-tester
repoURL: "https://git.cluster.fun/AverageMarcus/cluster.fun.git"
targetRevision: HEAD
syncPolicy:
automated: {}
syncOptions:
- CreateNamespace=true
ignoreDifferences:
- kind: Secret
jsonPointers:
- /data

View File

@ -0,0 +1,70 @@
apiVersion: v1
kind: Service
metadata:
name: cel-tester
namespace: cel-tester
spec:
type: ClusterIP
ports:
- port: 80
targetPort: web
name: web
selector:
app: cel-tester
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cel-tester
namespace: cel-tester
spec:
replicas: 1
selector:
matchLabels:
app: cel-tester
template:
metadata:
labels:
app: cel-tester
spec:
containers:
- name: web
image: rg.fr-par.scw.cloud/averagemarcus/cel-tester:latest
imagePullPolicy: Always
ports:
- containerPort: 80
name: web
resources:
limits:
memory: 20Mi
requests:
memory: 20Mi
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: cel-tester
namespace: cel-tester
annotations:
cert-manager.io/cluster-issuer: letsencrypt
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/router.tls: "true"
ingress.kubernetes.io/ssl-redirect: "true"
traefik.ingress.kubernetes.io/router.entrypoints: websecure
spec:
tls:
- hosts:
- cel-tester.cluster.fun
secretName: cel-tester-ingress
rules:
- host: cel-tester.cluster.fun
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: cel-tester
port:
number: 80