diff --git a/apps/templates/lingo-folder.yaml b/apps/templates/lingo-folder.yaml new file mode 100644 index 0000000..e3002c3 --- /dev/null +++ b/apps/templates/lingo-folder.yaml @@ -0,0 +1,21 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: lingo + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + repoURL: https://github.com/rubenhensen/k8scd.git + targetRevision: HEAD + path: lingo + destination: + server: https://kubernetes.default.svc + namespace: lingo + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + selfHeal: true diff --git a/lingo/lingo-deployment.yaml b/lingo/lingo-deployment.yaml new file mode 100644 index 0000000..92c8bbd --- /dev/null +++ b/lingo/lingo-deployment.yaml @@ -0,0 +1,32 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app: lingo + name: lingo +spec: + replicas: 1 + selector: + matchLabels: + app: lingo + strategy: + type: Recreate + template: + metadata: + labels: + app: lingo + spec: + containers: + - image: rubenhensen/lingo:latest + name: lingo + ports: + - containerPort: 8001 + protocol: TCP + resources: + requests: + memory: "128Mi" + cpu: "100m" + limits: + memory: "512Mi" + cpu: "500m" + restartPolicy: Always diff --git a/lingo/lingo-ingress.yaml b/lingo/lingo-ingress.yaml new file mode 100644 index 0000000..12834d1 --- /dev/null +++ b/lingo/lingo-ingress.yaml @@ -0,0 +1,24 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: lingo-ingress + annotations: + cert-manager.io/cluster-issuer: prod-cluster-issuer + nginx.ingress.kubernetes.io/ssl-passthrough: "false" +spec: + ingressClassName: nginx + rules: + - host: lingo.hensen.io + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: lingo + port: + number: 8001 + tls: + - secretName: letsencrypt-prod + hosts: + - lingo.hensen.io diff --git a/lingo/lingo-service.yaml b/lingo/lingo-service.yaml new file mode 100644 index 0000000..af09b31 --- /dev/null +++ b/lingo/lingo-service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app: lingo + name: lingo +spec: + ports: + - name: "8001" + port: 8001 + targetPort: 8001 + selector: + app: lingo