Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

change default images #26

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 19 additions & 20 deletions cap/brain/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ spec:
version: v1
spec:
containers:
- image: docker.pkg.github.com/OWNER/REPOSITORY/brain:latest
imagePullPolicy: Always
name: brain
ports:
- name: http
containerPort: 4004
resources:
limits:
memory: 1000Mi
requests:
memory: 32Mi
envFrom:
- configMapRef:
name: appconfigcap
- image: ghcr.io/sap-samples/developer-keynote-2020-brain:latest
imagePullPolicy: Always
name: brain
ports:
- name: http
containerPort: 4004
resources:
limits:
memory: 1000Mi
requests:
memory: 32Mi
envFrom:
- configMapRef:
name: appconfigcap
imagePullSecrets:
- name: regcred
- name: regcred

---
apiVersion: v1
Expand All @@ -40,13 +40,12 @@ metadata:
app: brain
spec:
ports:
- port: 4004
name: http
targetPort: 4004
- port: 4004
name: http
targetPort: 4004
selector:
app: brain


---
apiVersion: gateway.kyma-project.io/v1alpha1
kind: APIRule
Expand All @@ -60,7 +59,7 @@ spec:
host: brain
rules:
- path: /.*
methods: ["GET","POST","PUT","DELETE","PATCH","HEAD"]
methods: ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"]
accessStrategies:
- handler: noop
config: {}
30 changes: 15 additions & 15 deletions converter/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ spec:
name: calc-service
spec:
containers:
- name: application
image: docker.pkg.github.com/sap-samples/teched2020-developer-keynote/calculationservice:latest
imagePullPolicy: Always # change to pull after testing
ports:
- containerPort: 8080
resources:
limits:
memory: 1000Mi
requests:
memory: 32Mi
- name: application
image: ghcr.io/sap-samples/developer-keynote-2020-calculationservice:latest
imagePullPolicy: Always # change to pull after testing
ports:
- containerPort: 8080
resources:
limits:
memory: 1000Mi
requests:
memory: 32Mi
imagePullSecrets:
- name: regcred
- name: regcred

---
apiVersion: v1
Expand All @@ -34,9 +34,9 @@ metadata:
name: calc-service
spec:
ports:
- name: http
port: 8080
targetPort: 8080
- name: http
port: 8080
targetPort: 8080
selector:
name: calc-service

Expand All @@ -56,4 +56,4 @@ spec:
methods: ["GET"]
accessStrategies:
- handler: noop
config: {}
config: {}
41 changes: 20 additions & 21 deletions s4hana/sandbox/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ spec:
version: v1
spec:
containers:
# replace this image URL with your own repository
- image: docker.pkg.github.com/OWNER/REPOSITORY/s4mock:latest
imagePullPolicy: Always
name: s4mock
ports:
- name: http
containerPort: 5000
resources:
limits:
memory: 1000Mi
requests:
memory: 32Mi
envFrom:
- configMapRef:
name: appconfig
# replace this image URL with your own repository
- image: ghcr.io/sap-samples/developer-keynote-2020-s4mock:latest
imagePullPolicy: Always
name: s4mock
ports:
- name: http
containerPort: 5000
resources:
limits:
memory: 1000Mi
requests:
memory: 32Mi
envFrom:
- configMapRef:
name: appconfig
imagePullSecrets:
- name: regcred
- name: regcred

---
apiVersion: v1
Expand All @@ -51,13 +51,12 @@ metadata:
app: s4mock
spec:
ports:
- port: 5000
name: http
targetPort: 5000
- port: 5000
name: http
targetPort: 5000
selector:
app: s4mock


---
apiVersion: gateway.kyma-project.io/v1alpha1
kind: APIRule
Expand All @@ -71,7 +70,7 @@ spec:
host: s4mock
rules:
- path: /.*
methods: ["GET","POST","PUT","DELETE","PATCH","HEAD"]
methods: ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"]
accessStrategies:
- handler: noop
config: {}