From 3f1b780e137624c3a0f14dc9c2fd012b5701e953 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Wed, 19 Jan 2022 19:44:47 +0000 Subject: [PATCH] Added link --- manifests/_apps/link.yaml | 20 +++++++++ manifests/link/link.yaml | 85 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 manifests/_apps/link.yaml create mode 100644 manifests/link/link.yaml diff --git a/manifests/_apps/link.yaml b/manifests/_apps/link.yaml new file mode 100644 index 0000000..2a8fed1 --- /dev/null +++ b/manifests/_apps/link.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: link + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: cluster.fun + destination: + namespace: link + name: cluster-fun (scaleway) + source: + path: manifests/link + repoURL: "https://git.cluster.fun/AverageMarcus/cluster.fun.git" + targetRevision: HEAD + syncPolicy: + automated: {} + syncOptions: + - CreateNamespace=true \ No newline at end of file diff --git a/manifests/link/link.yaml b/manifests/link/link.yaml new file mode 100644 index 0000000..e5a7932 --- /dev/null +++ b/manifests/link/link.yaml @@ -0,0 +1,85 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: urls-map + namespace: link + labels: + app: link +data: + urls.yaml: | + +--- +--- +apiVersion: v1 +kind: Service +metadata: + name: link + namespace: link + labels: + app: link +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: web + name: web + selector: + app: link +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: link + namespace: link + labels: + app: link +spec: + replicas: 1 + selector: + matchLabels: + app: link + template: + metadata: + labels: + app: link + spec: + containers: + - name: web + image: docker.cluster.fun/averagemarcus/link:latest + imagePullPolicy: Always + ports: + - containerPort: 5050 + name: web + volumeMounts: + - name: config + mountPath: /app/urls.yaml + subPath: urls.yaml + volumes: + - name: config + configmap: + name: urls-map +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: link + namespace: link + annotations: + cert-manager.io/cluster-issuer: letsencrypt + nginx.ingress.kubernetes.io/force-ssl-redirect: "true" +spec: + tls: + - hosts: + - go-get.link + secretName: link-ingress + rules: + - host: go-get.link + http: + paths: + - path: / + pathType: ImplementationSpecific + backend: + service: + name: link + port: + number: 80