You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

82 lines
1.6 KiB

apiVersion: v1
kind: Service
metadata:
name: appsmith
namespace: appsmith
labels:
app: appsmith
spec:
type: NodePort
ports:
- port: 80
nodePort: 30798
targetPort: appsmith
selector:
app: appsmith
tier: frontend
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: as-pv-claim
namespace: appsmith
labels:
app: appsmith
spec:
accessModes:
- ReadWriteOnce
storageClassName: ""
resources:
requests:
storage: 10Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: appsmith
namespace: appsmith
labels:
app: appsmith
spec:
selector:
matchLabels:
app: appsmith
tier: frontend
strategy:
type: Recreate
template:
metadata:
labels:
app: appsmith
tier: frontend
spec:
containers:
- image: index.docker.io/appsmith/appsmith-ce
name: appsmith
env:
- name: DB_TYPE
value: mysql
- name: DB_NAME
value: appsmith
- name: DB_HOST
value: appsmith-mysql
- name: DB_PASS
valueFrom:
secretKeyRef:
name: mysqlas-pass
key: password
- name: DB_USER
valueFrom:
secretKeyRef:
name: mysqlas-pass
key: db_user
ports:
- containerPort: 80
name: appsmith
volumeMounts:
- name: appsmith-persistent-storage
mountPath: /var/www/html
volumes:
- name: appsmith-persistent-storage
persistentVolumeClaim:
claimName: as-pv-claim