photos-ui: helm chart
diff --git a/apps/photos-ui/chart/Chart.yaml b/apps/photos-ui/chart/Chart.yaml
new file mode 100644
index 0000000..150c176
--- /dev/null
+++ b/apps/photos-ui/chart/Chart.yaml
@@ -0,0 +1,11 @@
+apiVersion: v2
+name: photos-ui
+version: 0.0.1
+description: PCloud photo gallery application
+type: application
+sources:
+ - https://github.com/giolekva/pcloud/tree/master/apps/photos-ui
+mainteners:
+ - name: Giorgi Lekveishvili
+ url: https://github.com/giolekva
+appVersion: 1.0.0
diff --git a/apps/photos-ui/chart/README.md b/apps/photos-ui/chart/README.md
new file mode 100644
index 0000000..19bae34
--- /dev/null
+++ b/apps/photos-ui/chart/README.md
@@ -0,0 +1,3 @@
+# Photo Gallery
+
+Uses PCloud knowledge graph graphql API to render uploaded photos.
\ No newline at end of file
diff --git a/apps/photos-ui/chart/photos-ui.tar.gz b/apps/photos-ui/chart/photos-ui.tar.gz
new file mode 100644
index 0000000..15a0a03
--- /dev/null
+++ b/apps/photos-ui/chart/photos-ui.tar.gz
Binary files differ
diff --git a/apps/photos-ui/chart/templates/install.yaml b/apps/photos-ui/chart/templates/install.yaml
new file mode 100644
index 0000000..1e88645
--- /dev/null
+++ b/apps/photos-ui/chart/templates/install.yaml
@@ -0,0 +1,55 @@
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ .Chart.Name }}
+ namespace: {{ .Release.Namespace }}
+spec:
+ type: ClusterIP
+ selector:
+ app: {{ .Chart.Name }}
+ ports:
+ - nodePort:
+ port: {{ .Values.servicePort }}
+ targetPort: {{ .Values.containerPort }}
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: IngressRoute
+metadata:
+ name: ingress
+ namespace: {{ .Release.Namespace }}
+spec:
+ entryPoints:
+ - web
+ routes:
+ - kind: Rule
+ match: Host(`{{ .Values.ingressHost }}`)
+ services:
+ - kind: Service
+ name: {{ .Chart.Name }}
+ namespace: {{ .Release.Namespace }}
+ passHostHeader: true
+ port: {{ .Values.servicePort }}
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: {{ .Chart.Name }}
+ namespace: {{ .Release.Namespace }}
+spec:
+ selector:
+ matchLabels:
+ app: {{ .Chart.Name }}
+ replicas: {{ .Values.replicas }}
+ template:
+ metadata:
+ labels:
+ app: {{ .Chart.Name }}
+ spec:
+ containers:
+ - name: {{ .Chart.Name }}
+ image: {{ .Values.image.name }}:{{ .Values.image.tag }}
+ imagePullPolicy: {{ .Values.image.pullPolicy }}
+ ports:
+ - containerPort: {{ .Values.containerPort }}
+ command: ["photos-ui", "--port={{ .Values.containerPort }}", "--pcloud_api_addr={{ .Values.pcloudApiAddr }}"]
diff --git a/apps/photos-ui/chart/values.yaml b/apps/photos-ui/chart/values.yaml
new file mode 100644
index 0000000..74618e6
--- /dev/null
+++ b/apps/photos-ui/chart/values.yaml
@@ -0,0 +1,9 @@
+replicas: 1
+image:
+ name: giolekva/photos-ui
+ tag: latest
+ pullPolicy: Always
+servicePort: 80
+containerPort: 1234
+ingressHost: photos-ui
+pcloudApiAddr: http://api.pcloud.svc:1111
diff --git a/reset.sh b/reset.sh
index 9ebe652..4a0af1f 100644
--- a/reset.sh
+++ b/reset.sh
@@ -2,6 +2,7 @@
kubectl delete namespace app-object-store
kubectl delete namespace app-rpuppy
+kubectl delete namespace app-photos-ui
kubectl delete namespace app-minio-importer
kubectl delete namespace app-face-detection
kubectl delete namespace pcloud-app-manager