Browse Source

Añado AppSmith

main
Celestino Rey 2 years ago
parent
commit
21f68daf82
9 changed files with 281 additions and 0 deletions
  1. +15
    -0
      AppSmith/appsmith-claim0-persistentvolumeclaim.yaml
  2. +43
    -0
      AppSmith/appsmith-deployment.yaml
  3. +10
    -0
      AppSmith/appsmith-secrets.yaml
  4. +26
    -0
      AppSmith/appsmith-service.yaml
  5. +27
    -0
      AppSmith/docker-compose.yml
  6. +76
    -0
      AppSmith/mysql-deployment.yaml
  7. +57
    -0
      AppSmith/php-myadmin-deployment.yaml
  8. +14
    -0
      AppSmith/pv-local-appsmith.yaml
  9. +13
    -0
      AppSmith/pv-local-mysql.yaml

+ 15
- 0
AppSmith/appsmith-claim0-persistentvolumeclaim.yaml View File

@ -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: {}

+ 43
- 0
AppSmith/appsmith-deployment.yaml View File

@ -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: {}

+ 10
- 0
AppSmith/appsmith-secrets.yaml View File

@ -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

+ 26
- 0
AppSmith/appsmith-service.yaml View File

@ -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: {}

+ 27
- 0
AppSmith/docker-compose.yml View File

@ -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

+ 76
- 0
AppSmith/mysql-deployment.yaml View File

@ -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

+ 57
- 0
AppSmith/php-myadmin-deployment.yaml View File

@ -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

+ 14
- 0
AppSmith/pv-local-appsmith.yaml View File

@ -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"

+ 13
- 0
AppSmith/pv-local-mysql.yaml View File

@ -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"

Loading…
Cancel
Save