Added marcusnoble.com

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2022-08-07 13:37:32 +01:00
parent 5df68dd190
commit c93a73d2cb
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
2 changed files with 107 additions and 0 deletions

View File

@ -0,0 +1,28 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: marcusnoble
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: cluster.fun
destination:
namespace: marcusnoble
name: cluster-fun (scaleway)
source:
path: manifests/marcusnoble
repoURL: "https://git.cluster.fun/AverageMarcus/cluster.fun.git"
targetRevision: HEAD
syncPolicy:
automated: {}
syncOptions:
- CreateNamespace=true
ignoreDifferences:
- kind: Secret
jsonPointers:
- /data
- group: apps
kind: Deployment
jqPathExpressions:
- .spec.template.spec.containers[]?.image

View File

@ -0,0 +1,79 @@
apiVersion: v1
kind: Service
metadata:
name: marcusnoble
namespace: marcusnoble
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 8080
name: web
selector:
app: marcusnoble
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: marcusnoble
namespace: marcusnoble
spec:
replicas: 1
selector:
matchLabels:
app: marcusnoble
template:
metadata:
labels:
app: marcusnoble
spec:
containers:
- name: web
image: rg.fr-par.scw.cloud/averagemarcus/marcusnoble:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
name: web
resources:
limits:
memory: 50Mi
requests:
memory: 50Mi
# livenessProbe:
# httpGet:
# path: /healthz
# port: web
# initialDelaySeconds: 10
# readinessProbe:
# httpGet:
# path: /healthz
# port: web
# initialDelaySeconds: 10
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: marcusnoble
namespace: marcusnoble
annotations:
cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
spec:
ingressClassName: nginx
tls:
- hosts:
- marcusnoble.com
secretName: marcusnoble-ingress
rules:
- host: marcusnoble.com
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: marcusnoble
port:
number: 80
---