Skip to content

Commit

Permalink
Better OC test deploymentconfig. #22
Browse files Browse the repository at this point in the history
  • Loading branch information
lreimer committed Oct 17, 2017
1 parent 14fee67 commit 2a90670
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 44 deletions.
44 changes: 0 additions & 44 deletions oc-payara.yaml

This file was deleted.

56 changes: 56 additions & 0 deletions oc-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
apiVersion: v1
kind: Service
metadata:
name: everything-as-code
labels:
app: everything-as-code
tier: backend
spec:
type: NodePort
ports:
- port: 18080
selector:
app: everything-as-code
tier: backend
---
apiVersion: v1
kind: DeploymentConfig
metadata:
name: payara
labels:
cloudcontrol.enabled: "true"
cloudcontrol.index: "0"
LAUNCHPAD_ENABLE: "true"
LAUNCHPAD_COLOR: ORANGE
LAUNCHPAD_ROW: "0"
spec:
replicas: 2
template:
metadata:
labels:
app: everything-as-code
tier: backend
spec:
containers:
- name: everything-as-code
image: "qaware-oss-docker-registry.bintray.io/lreimer/everything-as-code:1.2.1"
resources:
requests:
memory: "128Mi"
cpu: "125m"
limits:
memory: "256Mi"
cpu: "250m"
ports:
- containerPort: 18080
livenessProbe:
httpGet:
path: /index.html
port: 18080
initialDelaySeconds: 300
timeoutSeconds: 30
env:
- name: JAVA_OPTS
value: -Xmx128m
- name: PORT
value: "18080"

0 comments on commit 2a90670

Please sign in to comment.