diff --git a/AppSmith/appsmith-claim0-persistentvolumeclaim.yaml b/AppSmith/appsmith-claim0-persistentvolumeclaim.yaml new file mode 100644 index 00000000..567968a4 --- /dev/null +++ b/AppSmith/appsmith-claim0-persistentvolumeclaim.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + creationTimestamp: null + labels: + io.kompose.service: appsmith-claim0 + name: appsmith-claim0 + namespace: appsmith +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 45Gi +status: {} diff --git a/AppSmith/appsmith-deployment.yaml b/AppSmith/appsmith-deployment.yaml new file mode 100644 index 00000000..0a689794 --- /dev/null +++ b/AppSmith/appsmith-deployment.yaml @@ -0,0 +1,43 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + kompose.cmd: kompose convert + kompose.version: 1.26.0 (40646f47) + creationTimestamp: null + labels: + io.kompose.service: appsmith + name: appsmith + namespace: appsmith +spec: + replicas: 1 + selector: + matchLabels: + io.kompose.service: appsmith + strategy: + type: Recreate + template: + metadata: + annotations: + kompose.cmd: kompose convert + kompose.version: 1.26.0 (40646f47) + creationTimestamp: null + labels: + io.kompose.service: appsmith + spec: + containers: + - image: index.docker.io/appsmith/appsmith-ce + name: appsmith + ports: + - containerPort: 80 + - containerPort: 443 + resources: {} + volumeMounts: + - mountPath: /appsmith-stacks + name: appsmith-claim0 + restartPolicy: Always + volumes: + - name: appsmith-claim0 + persistentVolumeClaim: + claimName: appsmith-claim0 +status: {} diff --git a/AppSmith/appsmith-secrets.yaml b/AppSmith/appsmith-secrets.yaml new file mode 100644 index 00000000..91fa0b1c --- /dev/null +++ b/AppSmith/appsmith-secrets.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Secret +metadata: + name: mysql-pass + namespace: appsmith +type: Opaque +stringData: + db_password: Dsa-0213 + password: Dsa-0213 + db_user: root diff --git a/AppSmith/appsmith-service.yaml b/AppSmith/appsmith-service.yaml new file mode 100644 index 00000000..ee8ae200 --- /dev/null +++ b/AppSmith/appsmith-service.yaml @@ -0,0 +1,26 @@ +apiVersion: v1 +kind: Service +metadata: + annotations: + kompose.cmd: kompose convert + kompose.version: 1.26.0 (40646f47) + creationTimestamp: null + labels: + io.kompose.service: appsmith + name: appsmith + namespace: appsmith +spec: + type: NodePort + ports: + - name: "80" + port: 80 + nodePort: 30780 + targetPort: 80 + - name: "443" + port: 443 + nodePort: 30743 + targetPort: 443 + selector: + io.kompose.service: appsmith +status: + loadBalancer: {} diff --git a/AppSmith/docker-compose.yml b/AppSmith/docker-compose.yml new file mode 100644 index 00000000..2fc91def --- /dev/null +++ b/AppSmith/docker-compose.yml @@ -0,0 +1,27 @@ +version: "3" + +services: + appsmith: + image: index.docker.io/appsmith/appsmith-ce + container_name: appsmith + ports: + - "80:80" + - "443:443" + volumes: + - ./stacks:/appsmith-stacks + restart: unless-stopped + # Uncomment the lines below to enable auto-update + #labels: + # com.centurylinklabs.watchtower.enable: "true" + + #auto_update: + # image: containrrr/watchtower + # volumes: + # - /var/run/docker.sock:/var/run/docker.sock + # # Update check interval in seconds. + # command: --schedule "0 0 * ? * *" --label-enable --cleanup + # restart: unless-stopped + # depends_on: + # - appsmith + # environment: + # - WATCHTOWER_LIFECYCLE_HOOKS=true \ No newline at end of file diff --git a/AppSmith/mysql-deployment.yaml b/AppSmith/mysql-deployment.yaml new file mode 100644 index 00000000..6b598d3d --- /dev/null +++ b/AppSmith/mysql-deployment.yaml @@ -0,0 +1,76 @@ +apiVersion: v1 +kind: Service +metadata: + name: appsmith-mysql + namespace: appsmith + labels: + app: appsmith +spec: + type: NodePort + ports: + - name: mysql + port: 3306 + nodePort: 30785 + targetPort: mysql + selector: + app: appsmith + tier: mysql +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: mysql-pv-claim + namespace: appsmith + labels: + app: appsmith +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 25Gi + selector: + matchLabels: + app: mysql +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: appsmith-mysql + namespace: appsmith + labels: + app: appsmith +spec: + selector: + matchLabels: + app: appsmith + tier: mysql + strategy: + type: Recreate + template: + metadata: + labels: + app: appsmith + tier: mysql + spec: + containers: + - image: mariadb:latest + name: mysql + env: + - name: MYSQL_ROOT_PASSWORD + valueFrom: + secretKeyRef: + name: mysql-pass + key: password + ports: + - containerPort: 3306 + name: mysql + volumeMounts: + - name: mysql-persistent-storage + mountPath: /var/lib/mysql + imagePullSecrets: + - name: reg-cred-secret + volumes: + - name: mysql-persistent-storage + persistentVolumeClaim: + claimName: mysql-pv-claim diff --git a/AppSmith/php-myadmin-deployment.yaml b/AppSmith/php-myadmin-deployment.yaml new file mode 100644 index 00000000..c16c9480 --- /dev/null +++ b/AppSmith/php-myadmin-deployment.yaml @@ -0,0 +1,57 @@ +apiVersion: v1 +kind: Service +metadata: + name: phpmyadmin-appsmith + namespace: appsmith + labels: + app: appsmith +spec: + selector: + app: appsmith + tier: phpmyadmin + type: NodePort + ports: + - name: phpadmin + port: 80 + nodePort: 30486 + targetPort: phpmyadm +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: phpmyadmin-appsmith + namespace: appsmith + labels: + app: appsmith +spec: + selector: + matchLabels: + app: appsmith + tier: phpmyadmin + strategy: + type: Recreate + template: + metadata: + labels: + app: appsmith + tier: phpmyadmin + spec: + containers: + - name: phpmyadmin + image: phpmyadmin + ports: + - containerPort: 80 + name: phpmyadm + env: + - name: PMA_HOST + value: appsmith-mysql + - name: PMA_PORT + value: "3306" + - name: MYSQL_ROOT_PASSWORD + valueFrom: + secretKeyRef: + name: mysql-pass + key: password + imagePullSecrets: + - name: reg-cred-secret + diff --git a/AppSmith/pv-local-appsmith.yaml b/AppSmith/pv-local-appsmith.yaml new file mode 100644 index 00000000..2a473c1a --- /dev/null +++ b/AppSmith/pv-local-appsmith.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: appsmith-app-folder + labels: + app: appsmith +spec: + capacity: + storage: 45Gi + accessModes: + - ReadWriteOnce + hostPath: + path: "/mnt/Externo/appsmith/appsmith-app" + diff --git a/AppSmith/pv-local-mysql.yaml b/AppSmith/pv-local-mysql.yaml new file mode 100644 index 00000000..87797af0 --- /dev/null +++ b/AppSmith/pv-local-mysql.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: appsmith-data + labels: + app: mysql +spec: + capacity: + storage: 25Gi + accessModes: + - ReadWriteOnce + hostPath: + path: "/mnt/Externo/appsmith/appsmith-db"