WIP(ch9lab) add source for java-based todo-api app

This commit is contained in:
Dan K
2019-07-22 15:38:35 -04:00
parent c37d409c1d
commit 81fbcfc240
20 changed files with 610 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
spec:
template:
spec:
containers:
-
resources:
requests:
cpu: "0.2"
# memory: 256Mi
limits:
cpu: "1.0"
# memory: 256Mi
env:
- name: DATABASE_USER
value: '${database.user}'
- name: DATABASE_PASSWORD
value: '${database.password}'
- name: DATABASE_SVC_HOSTNAME
value: '${database.svc.hostname}'
- name: DATABASE_NAME
value: '${database.name}'

View File

@@ -0,0 +1,18 @@
---
apiVersion: v1
kind: Route
metadata:
labels:
expose: "true"
app: ${project.artifactId}
provider: fabric8
version: "1.0"
group: com.redhat.training
name: ${project.artifactId}
spec:
host: ${hostname}
port:
targetPort: ${service-port}
to:
kind: Service
name: ${project.artifactId}

View File

@@ -0,0 +1,21 @@
---
apiVersion: v1
kind: Service
metadata:
annotations:
fabric8.io/iconUrl: img/icons/camel.svg
labels:
expose: "true"
app: ${project.artifactId}
provider: fabric8
version: "1.0"
group: com.redhat.training
name: ${project.artifactId}
spec:
ports:
- name: http
port: ${service-port}
protocol: TCP
targetPort: ${service-port}
selector:
deploymentconfig: ${project.artifactId}