diff --git a/apps/watchparty.yaml b/apps/watchparty.yaml new file mode 100644 index 0000000..09bf007 --- /dev/null +++ b/apps/watchparty.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: watchparty + namespace: argocd +spec: + project: default + source: + repoURL: ssh://git@git.czsk.it/asxpi/k8s-asxpio-gitops.git + targetRevision: main + path: apps/watchparty + destination: + server: https://kubernetes.default.svc + namespace: watchparty + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true diff --git a/apps/watchparty/deployment.yaml b/apps/watchparty/deployment.yaml new file mode 100644 index 0000000..6dfc73a --- /dev/null +++ b/apps/watchparty/deployment.yaml @@ -0,0 +1,32 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: watchparty + namespace: watchparty +spec: + replicas: 1 + selector: + matchLabels: + app: watchparty + template: + metadata: + labels: + app: watchparty + spec: + containers: + - name: watchparty + image: muaeabudhabi/watchparty-v8:latest + ports: + - containerPort: 8080 + name: http + env: + - name: PORT + value: "8080" + - name: HOST + value: "0.0.0.0" + resources: + requests: + memory: 256Mi + cpu: 100m + limits: + memory: 512Mi diff --git a/apps/watchparty/ingress.yaml b/apps/watchparty/ingress.yaml new file mode 100644 index 0000000..549173e --- /dev/null +++ b/apps/watchparty/ingress.yaml @@ -0,0 +1,16 @@ +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: watchparty + namespace: watchparty +spec: + entryPoints: + - websecure + routes: + - match: Host(`watch.k8s.asxp.io`) + kind: Rule + services: + - name: watchparty + port: 8080 + tls: + certResolver: letsencrypt diff --git a/apps/watchparty/service.yaml b/apps/watchparty/service.yaml new file mode 100644 index 0000000..7c37b31 --- /dev/null +++ b/apps/watchparty/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: watchparty + namespace: watchparty +spec: + selector: + app: watchparty + ports: + - name: http + port: 8080 + targetPort: http