Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Commit

Permalink
Fixes #9 added other apps configuration into YAML file
Browse files Browse the repository at this point in the history
  • Loading branch information
Santosh committed Jul 15, 2019
1 parent f7160ea commit a7f31db
Showing 1 changed file with 252 additions and 13 deletions.
265 changes: 252 additions & 13 deletions openshift/dotCMS-OpenShift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ items:
resources:
requests:
storage: 10Gi
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: es-static-pvc
spec:
accessModes:
- ReadWriteOnce
storageClassName: ""
resources:
requests:
storage: 10Gi
- apiVersion: extensions/v1beta1
kind: Deployment
metadata:
Expand All @@ -43,7 +54,7 @@ items:
claimName: dbdata-pvc
containers:
- name: postgres
image: bitnami/postgres:9.6
image: 172.30.1.1:5000/dotcms/bitnami-post
imagePullPolicy: Always
ports:
- containerPort: 5432
Expand All @@ -68,12 +79,206 @@ items:
- port: 5432
selector:
app: postgres
type: ClusterIP
type: ClusterIP
- apiVersion: apps/v1
kind: Deployment
metadata:
name: elasticsearch-static
spec:
replicas: 1
selector:
matchLabels:
app: elasticsearch-static
apptype: elasticsearch
appversion: 6.1.3
template:
metadata:
labels:
app: elasticsearch-static
apptype: elasticsearch
appversion: 6.1.3
spec:
volumes:
- name: esstaticstorage
persistentVolumeClaim:
claimName: es-static-pvc
containers:
- name: esstatic
image: 172.30.1.1:5000/dotcms/elastic-search
imagePullPolicy: Always
ports:
- name: http
containerPort: 9200
protocol: TCP
- name: transport
containerPort: 9300
protocol: TCP
env:
- name: PROVIDER_ELASTICSEARCH_HEAP_SIZE
value: 1500m
- name: PROVIDER_ELASTICSEARCH_DNSNAMES
value: elasticsearch-svc
- name: PROVIDER_ELASTICSEARCH_SVC_DELAY_MIN
value: "1"
- name: PROVIDER_ELASTICSEARCH_SVC_DELAY_STEP
value: "1"
- name: PROVIDER_ELASTICSEARCH_SVC_DELAY_MAX
value: "2"
- name: PROVIDER_ELASTICSEARCH_ADDR_TRANSPORT
value: "0.0.0.0"
volumeMounts:
- name: esstaticstorage
mountPath: /data
restartPolicy: Always
- apiVersion: apps/v1
kind: Deployment
metadata:
name: elasticsearch
spec:
replicas: 1
selector:
matchLabels:
app: elasticsearch
apptype: elasticsearch
appversion: 6.1.3
template:
metadata:
labels:
app: elasticsearch
apptype: elasticsearch
appversion: 6.1.3
spec:
containers:
- name: es
image: 172.30.1.1:5000/dotcms/elastic-search
imagePullPolicy: Always
ports:
- name: http
containerPort: 9200
protocol: TCP
- name: transport
containerPort: 9300
protocol: TCP
env:
- name: PROVIDER_ELASTICSEARCH_HEAP_SIZE
value: 1500m
- name: PROVIDER_ELASTICSEARCH_DNSNAMES
value: elasticsearch-svc
- name: PROVIDER_ELASTICSEARCH_SVC_DELAY_MIN
value: "5"
- name: PROVIDER_ELASTICSEARCH_SVC_DELAY_STEP
value: "1"
- name: PROVIDER_ELASTICSEARCH_SVC_DELAY_MAX
value: "15"
- name: PROVIDER_ELASTICSEARCH_ADDR_TRANSPORT
value: "0.0.0.0"
restartPolicy: Always
- apiVersion: v1
kind: Service
metadata:
name: elasticsearch-svc
spec:
ports:
- name: http
port: 9200
- name: transport
port: 9300
selector:
apptype: elasticsearch
appversion: 6.1.3
type: ClusterIP
clusterIP: None
- apiVersion: apps/v1
kind: Deployment
metadata:
name: hazelcast
spec:
replicas: 1
selector:
matchLabels:
app: hazelcast
apptype: hazelcast
appversion: 3.9.2
template:
metadata:
labels:
app: hazelcast
apptype: hazelcast
appversion: 3.9.2
spec:
containers:
- name: hazelcast
image: 172.30.1.1:5000/dotcms/dotcms-hazelcast
imagePullPolicy: Always
env:
- name: PROVIDER_HAZELCAST_DNSNAMES
value: hazelcast-svc
- name: PROVIDER_HAZELCAST_HEAP_MIN
value: 128m
- name: PROVIDER_HAZELCAST_HEAP_MAX
value: 512m
- name: PROVIDER_HAZELCAST_MANCENTER_ENABLED
value: "true"
- name: PROVIDER_HAZELCAST_MANCENTER_URL
value: "http://hazelcast-mancenter-svc:8080/mancenter"
restartPolicy: Always
- apiVersion: v1
kind: Service
metadata:
name: hazelcast-svc
spec:
ports:
- name: http
port: 5701
selector:
apptype: hazelcast
appversion: 3.9.2
type: ClusterIP
clusterIP: None
- apiVersion: apps/v1
kind: Deployment
metadata:
name: hazelcast-mancenter
spec:
replicas: 1
selector:
matchLabels:
app: hazelcast-mancenter
apptype: hazelcast-mancenter
appversion: 3.9.2
template:
metadata:
labels:
app: hazelcast-mancenter
apptype: hazelcast-mancenter
appversion: 3.9.2
spec:
containers:
- name: hazelcast-mancenter
image: 172.30.1.1:5000/dotcms/hazelcast-mancenter
imagePullPolicy: Always
restartPolicy: Always
- apiVersion: v1
kind: Service
metadata:
name: hazelcast-mancenter-svc
spec:
selector:
apptype: hazelcast-mancenter
appversion: 3.9.2
ports:
- name: http
port: 8080
type: LoadBalancer
sessionAffinity: ClientIP
- apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: dotcms
annotations:
openshift.io/image.insecureRepository: "true"
spec:
dockerImageRepository: 172.30.1.1:5000/dotcms/dotcms-openshift
replicas: 1
selector:
matchLabels:
Expand All @@ -89,26 +294,24 @@ items:
claimName: cms-shared-pvc
containers:
- name: dotcms
image: <dotcms-image>
image: 172.30.1.1:5000/dotcms/dotcms-openshift
imagePullPolicy: Always
ports:
- containerPort: 4000
protocol: TCP
- containerPort: 8000
protocol: TCP
- containerPort: 8080
protocol: TCP
- containerPort: 8081
protocol: TCP
- containerPort: 8082
protocol: TCP
env:
- name: CMS_HEAP_SIZE
value: 2G
- name: CMS_JAVA_OPTS
value: -XX:+PrintFlagsFinal
- name: PROVIDER_DB_DNSNAME
value: db-svc
- name: PROVIDER_ELASTICSEARCH_DNSNAMES
value: elasticsearch-svc
- name: PROVIDER_ELASTICSEARCH_SVC_DELAY_MAX
value: "60"
- name: PROVIDER_HAZELCAST_DNSNAMES
value: hazelcast-svc
volumeMounts:
- name: cmsshared
mountPath: /data/shared
Expand All @@ -120,8 +323,44 @@ items:
spec:
ports:
- name: dotcms
port: 8080
port: 8081
protocol: TCP
selector:
app: dotcms
type: ClusterIP
type: ClusterIP
- apiVersion: apps/v1
kind: Deployment
metadata:
name: haproxy
spec:
replicas: 1
selector:
matchLabels:
app: haproxy
template:
metadata:
name: haproxy
labels:
app: haproxy
spec:
containers:
- name: haproxy
image: 172.30.1.1:5000/dotcms/haproxy
imagePullPolicy: Always
ports:
- containerPort: 80
- containerPort: 443
- apiVersion: v1
kind: Service
metadata:
name: haproxy-svc
spec:
selector:
app: haproxy
ports:
- name: http
port: 80
- name: https
port: 443
type: LoadBalancer
sessionAffinity: ClientIP

0 comments on commit a7f31db

Please sign in to comment.