57 lines
1.8 KiB
YAML
57 lines
1.8 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: portal-deployment
|
|
namespace: portal
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: portal
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: portal
|
|
spec:
|
|
volumes:
|
|
- name: portal-pv
|
|
persistentVolumeClaim:
|
|
claimName: portal-pv-claim
|
|
initContainers:
|
|
- name: init-portal
|
|
image: busybox:1.28
|
|
command: ['sh', '-c', "mkdir -p /var/www/html/storage/app/public && mkdir -p /var/www/html/storage/framework/cache && mkdir -p /var/www/html/storage/framework/sessions && mkdir -p /var/www/html/storage/framework/testing && mkdir -p /var/www/html/storage/framework/views && chown -R www-data:www-data /var/www/html/storage"]
|
|
volumeMounts:
|
|
- mountPath: "/var/www/html/storage"
|
|
name: portal-pv
|
|
containers:
|
|
- name: redis
|
|
image: redis:5.0.4-alpine
|
|
ports:
|
|
- name: redis
|
|
containerPort: 6379
|
|
protocol: TCP
|
|
- name: portal
|
|
image: gmcintire/portal:1
|
|
# image: sonarsoftware/customerportal:stable
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
protocol: TCP
|
|
env:
|
|
- name: NGINX_HOST
|
|
value: portaltest.vntx.net
|
|
- name: API_USERNAME
|
|
value: api
|
|
- name: API_PASSWORD
|
|
value: MlgGynhWD20uoMdt4eaeomryVXW
|
|
- name: SONAR_URL
|
|
value: https://vntx.sonar.software
|
|
- name: REDIS_HOST
|
|
value: localhost
|
|
- name: APP_KEY
|
|
value: base64:O+Bxk/ww7D35liT3tWjwJmpf3gecrxZYd62rRAn7/XA=
|
|
imagePullPolicy: Always
|
|
volumeMounts:
|
|
- mountPath: "/var/www/html/storage"
|
|
name: portal-pv
|