Skip to content

Commit

Permalink
v2 of streaming chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Rein-Vanbelleghem committed Apr 29, 2024
1 parent 5f477fc commit 8015048
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 19 deletions.
4 changes: 2 additions & 2 deletions charts/streaming/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: streaming-app
description: A streaming app for kubernetes
type: application
version: 0.1.0
appVersion: "1.0"
version: 0.2.0
appVersion: "1.1"

dependencies:
- name: mysql
Expand Down
2 changes: 1 addition & 1 deletion charts/streaming/site.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
imageUrl: "https://t3.ftcdn.net/jpg/04/23/92/78/360_F_423927894_T9UIBqoqC1XOwLXlYa8j38VyxLUxO8ii.jpg"
imageUrl: "https://variety.com/wp-content/uploads/2022/10/featured_Dare_to_Stream_SR_v6.jpg?w=910&h=511&crop=1&resize=910%2C511"
24 changes: 15 additions & 9 deletions charts/streaming/templates/dashgen-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@ spec:
- name: log-volume
hostPath:
path: {{ .Values.logger.hostPath }}
- name: dash-volume
persistentVolumeClaim:
claimName: dash-storage

containers:
- name: dashgen-webapp
image: {{ .Values.dashgen.image }}
command: ["/dashgen"]
args: ["$(MYSQL_HOST)", "$(MYSQL_PASSWORD)"]
#args: ["$(MYSQL_HOST)", "$(MYSQL_PASSWORD)"]
ports:
- containerPort: {{ .Values.dashgen.webappPort }}
resources:
Expand All @@ -40,14 +44,16 @@ spec:
- name: config-volume
mountPath: /config
subPath: defaultConfig.json
env:
- name: MYSQL_HOST
value: mysql.default.svc.cluster.local
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: my-mysql-secret # Adjust with the correct secret name
key: mysql-password
- name: dash-volume
mountPath: /dash
#env:
# - name: MYSQL_HOST
# value: mysql.default.svc.clusterf.local
# - name: MYSQL_PASSWORD
# valueFrom:
# secretKeyRef:
# name: streamingapphelm-mysql # Adjust with the correct secret name
# key: mysql-root-password


- name: logger
Expand Down
13 changes: 13 additions & 0 deletions charts/streaming/templates/persistent-volume-claim.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: dash-storage
namespace: {{ .Values.namespace }}
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 2Gi
storageClassName: vmware-sc
volumeName: dash-storage
13 changes: 13 additions & 0 deletions charts/streaming/templates/persistent-volume.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: dash-storage
namespace: {{ .Values.namespace }}
spec:
accessModes:
- ReadWriteMany
capacity:
storage: 2Gi
storageClassName: vmware-sc
hostPath:
path: /tmp/pv
4 changes: 2 additions & 2 deletions charts/streaming/templates/streaming-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ spec:
mountPath: /usr/local/apache2/htdocs
volumes:
- name: dash-volume
hostPath:
path: /path/to/your/dash/files
persistentVolumeClaim:
claimName: dash-storage
8 changes: 3 additions & 5 deletions charts/streaming/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace: k8slabohelm
namespace: k8slabo

dashgen:
image: gitlab.ilabt.imec.be:4567/togoetha/sysmgmt/dashgen
Expand All @@ -10,7 +10,7 @@ dashgen:
limits:
memory: "1000Mi"
cpu: "3000m"
nodePort: 30082
nodePort: 30080

logger:
image: gitlab.ilabt.imec.be:4567/togoetha/sysmgmt/logservice
Expand All @@ -26,7 +26,7 @@ logger:

streaming:
image: gitlab.ilabt.imec.be:4567/togoetha/sysmgmt/httpd
nodePort: 30083
nodePort: 30081
resources:
requests:
memory: "300Mi"
Expand All @@ -41,8 +41,6 @@ autoscaler:
# MySQL values go here if you include the MySQL chart as a dependency.

mysql:
global:
storageClass: "default"
primary:
persistence:
size: "2Gi" # Set the size to 2GB as you wanted

0 comments on commit 8015048

Please sign in to comment.