0% found this document useful (0 votes)
9 views2 pages

Docker Im3

The document defines a Kubernetes deployment for an application named 'co-myim3' in the 'tibco-others-uat' namespace, specifying one replica with various security and resource configurations. It includes a service of type NodePort to expose the application on port 8080, mapping it to container port 8983. Additionally, a route is created to provide external access to the service via a specified host URL.

Uploaded by

babin1005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Docker Im3

The document defines a Kubernetes deployment for an application named 'co-myim3' in the 'tibco-others-uat' namespace, specifying one replica with various security and resource configurations. It includes a service of type NodePort to expose the application on port 8080, mapping it to container port 8983. Additionally, a route is created to provide external access to the service via a specified host URL.

Uploaded by

babin1005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

apiVersion: apps/v1

kind: Deployment
metadata:
name: co-myim3
namespace: tibco-others-uat
spec:
replicas: 1
selector:
matchLabels:
app: co-myim3
template:
metadata:
labels:
app: co-myim3
spec:
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- name: co-myim3
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
image: image-registry.openshift-image-registry.svc:5000/tibco-others-sit/
co-myim3:1.0.1
imagePullPolicy: IfNotPresent
resources:
limits:
cpu: '1'
memory: 1Gi
requests:
cpu: 500m
memory: 512Mi
env:
- name: BW_JAVA_OPTS
value: '-Duser.timezone=WIB -Dbw.engine.opentracing.enable=true -
Dbw.application.activity.validateOutput=false -
Dbw.application.activity.validateInput=false'
- name: BW_PROFILE
value: 'SIT'
- name: CUSTOM_LOGBACK
value: 'true'
- name: common.shared.Log.LogReferenceEnabled
value: 'false'
- name: common.shared.Log.Level
value: 'INFO'
- name: bi.hlr.client.bi.hlr.client.HttpPort
value: '80'
- name: bi.hlr.client.bi.hlr.client.HttpMaxConn
value: '200'
- name: bi.hlr.client.bi.hlr.client.HttpHost
value: 'bi-hlr-uat.apps.ocpmwdev.ioh.co.id'
- name: bi.hlr.client.bi.hlr.client.Activity_timeout
value: '10'
- name: bi.hlr.client.bi.hlr.client.HttpMaxConnHost
value: '20'
- name: co-myim3.RoamingStatus.port
value: '8983'
- name: common.shared.Log.PayloadEnabled
value: 'true'
ports:
- containerPort: 8983
---
apiVersion: v1
kind: Service
metadata:
name: co-myim3
namespace: tibco-others-uat
labels:
app: co-myim3
annotations:
k8s.v1.cni.cncf.io/networks: tibco-others-uat-ipvlan
spec:
type: NodePort
selector:
app: co-myim3
ports:
- name: co-myim3-8983-tcp
protocol: TCP
port: 8080
targetPort: 8983
---
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: co-myim3
namespace: tibco-others-uat
labels:
app: co-myim3
spec:
host: co-myim3-uat.apps.ocpmwdev.ioh.co.id
path:
to:
kind: Service
name: co-myim3
weight: 100
port:
targetPort: 8983

You might also like