Skip to content

Commit

Permalink
Merge pull request #60 from bcgov/0.12
Browse files Browse the repository at this point in the history
0.12
  • Loading branch information
ychung-mot authored Sep 15, 2022
2 parents 785a5eb + 9d0b4ce commit 515464b
Show file tree
Hide file tree
Showing 7 changed files with 253 additions and 6 deletions.
3 changes: 1 addition & 2 deletions openshift/camera-web-app-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ kind: Route
metadata:
annotations:
haproxy.router.openshift.io/timeout: 5m
creationTimestamp: null
name: camera-web-app
spec:
host: camera-web-app-b07b69-dev.apps.silver.devops.gov.bc.ca
Expand All @@ -98,7 +97,7 @@ spec:
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: camera-web-app
name: allow-camera-web-app
spec:
podSelector:
matchLabels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ data:
camel.zipkin.endpoint: "http://zipkin:9411/api/v2/spans"
drivebc-ghostcms.camel.cron: 0+0/10+*+*+*+?
logstash.host: logstash-local
logstash.port: "8002"
logstash.port: "8002"
32 changes: 32 additions & 0 deletions openshift/drivebc-open511-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
kind: ImageStream
apiVersion: image.openshift.io/v1
metadata:
labels:
shared: "true"
name: drivebc-open511
spec:
lookupPolicy:
local: false
---
kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: drivebc-open511
spec:
runPolicy: Serial
output:
to:
kind: ImageStreamTag
name: drivebc-open511:latest
source:
git:
uri: https://github.com/bcgov/Enterprise-Connector.git
ref: "0.12"
type: Git
contextDir: integrations/drivebc-open511
strategy:
sourceStrategy:
from:
kind: DockerImage
name: image-registry.openshift-image-registry.svc:5000/openshift/java:openjdk-11-el7
type: Source
84 changes: 84 additions & 0 deletions openshift/drivebc-open511-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: drivebc-open511
labels:
app: drivebc-open511
app.kubernetes.io/part-of: Integrations
spec:
replicas: 1
selector:
matchLabels:
app: drivebc-open511
template:
metadata:
labels:
app: drivebc-open511
deploymentconfig: drivebc-open511
spec:
containers:
- name: drivebc-open511
image: >-
image-registry.openshift-image-registry.svc:5000/b07b69-tools/drivebc-open511
ports:
- containerPort: 8080
protocol: TCP
- containerPort: 8443
protocol: TCP
- containerPort: 8082
protocol: TCP
env:
- name: ZIPKIN_HOST
valueFrom:
configMapKeyRef:
name: ecp-camel-config
key: camel.zipkin.endpoint
- name: LOGSTASH_HOST
valueFrom:
configMapKeyRef:
name: ecp-camel-config
key: logstash.host
- name: LOGSTASH_PORT
valueFrom:
configMapKeyRef:
name: ecp-camel-config
key: logstash.port
resources:
requests:
cpu: 50m
memory: 300Mi
limits:
cpu: 100m
memory: 400Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: Always
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
revisionHistoryLimit: 10
progressDeadlineSeconds: 600
---
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: allow-drivebc-open511
spec:
podSelector:
matchLabels:
deploymentconfig: drivebc-open511
ingress:
- ports:
- protocol: TCP
port: 8081
- protocol: TCP
port: 8082
policyTypes:
- Ingress
117 changes: 117 additions & 0 deletions openshift/ghostcms-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: ghostcms-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: netapp-file-standard
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: ghostcms
labels:
app: ghostcms
app.kubernetes.io/part-of: Content-Management
spec:
replicas: 1
selector:
matchLabels:
app: ghostcms
template:
metadata:
labels:
app: ghostcms
deploymentconfig: ghostcms
spec:
volumes:
- name: ghostcms-1
persistentVolumeClaim:
claimName: ghostcms-pvc
containers:
- name: ghostcms
env:
- name: url
value: 'https://ghostcms-b07b69-dev.apps.silver.devops.gov.bc.ca/'
image: >-
image-registry.openshift-image-registry.svc:5000/b07b69-tools/ghostcms
ports:
- containerPort: 2368
protocol: TCP
resources:
requests:
cpu: 500m
memory: 256Mi
limits:
cpu: 800m
memory: 500Mi
volumeMounts:
- name: ghostcms-1
mountPath: /var/lib/ghost/content
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
revisionHistoryLimit: 10
progressDeadlineSeconds: 600
---
apiVersion: v1
kind: Service
metadata:
name: ghostcms
spec:
ports:
- name: web
port: 2368
protocol: TCP
targetPort: 2368
selector:
deploymentconfig: ghostcms
---
apiVersion: route.openshift.io/v1
kind: Route
metadata:
annotations:
haproxy.router.openshift.io/timeout: 5m
creationTimestamp: null
name: ghostcms
spec:
host: ghostcms-b07b69-dev.apps.silver.devops.gov.bc.ca
path: "/"
port:
targetPort: web
tls:
termination: edge
to:
kind: Service
name: ghostcms
weight: 100
wildcardPolicy: None
---
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: allow-ghostcms
spec:
podSelector:
matchLabels:
deploymentconfig: ghostcms
ingress:
- ports:
- protocol: TCP
port: 2368
policyTypes:
- Ingress
19 changes: 17 additions & 2 deletions openshift/open511-ghostcms-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ spec:
containers:
- resources:
requests:
cpu: 50m
cpu: 300m
memory: 300Mi
limits:
cpu: 100m
cpu: 500m
memory: 400Mi
terminationMessagePath: /dev/termination-log
name: open511-ghostcms
Expand Down Expand Up @@ -88,3 +88,18 @@ spec:
maxSurge: 25%
revisionHistoryLimit: 10
progressDeadlineSeconds: 600
---
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: allow-open511-ghostcms
spec:
podSelector:
matchLabels:
deploymentconfig: open511-ghostcms
ingress:
- ports:
- protocol: TCP
port: 8080
policyTypes:
- Ingress
2 changes: 1 addition & 1 deletion openshift/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ stringData:
Url: value
Ssa: value
Interval: "30"
type: Opaque
type: Opaque

0 comments on commit 515464b

Please sign in to comment.