2022 Jun 30
11:51 AM
- last edited on
2022 Jul 14
6:52 PM
by
thomas_jung
2022 Jul 29 1:52 PM - edited 2022 Jul 29 1:52 PM
My week 4 submission:
URL: https://check-invoice-service.c-1e90315.kyma.ondemand.com/checkInvoice
You can invoke the command using curl:
curl --location --request POST 'https://check-invoice-service.c-1e90315.kyma.ondemand.com/checkInvoice' \
--header 'Content-Type: application/json' \
--data-raw '{
"supplierId": "ccd955cbc7b3",
"invoiceNumber": "0254863",
"invoiceDate": "2022-03-02",
"locale": "en"
}'
The check-invoice service is now running 10 pods...
2022 Jul 30 7:17 AM
Week3 Challenge Submission
API Access Strategy JWT Token
Unauthorized Endpoint: https://auth-service.a8a8425.kyma.ondemand.com
Below is the screenshot for Unauthorized Endpoint Access
Get Request with JWT Access Token
2022 Jul 30 1:42 PM
My week 4 submission.
https://my-service.a2985eb.kyma.shoot.live.k8s-hana.ondemand.com/
I haven't been able to put much of a load on it. Pods increased to a maximum of 3.
2022 Aug 02 9:17 AM
You can try and change the deployment.yaml and increase the ReplicaSet property 🙂
2022 Aug 04 1:26 PM
Hi @KRiedelsheimer ,
Thanks for your reply. In my submission above, I used below command to configure Horizontal Pod Autoscaler. Isn't this enough to achieve the goal?
kubectl autoscale deployment my-service --cpu-percent=50 --min=1 --max=10I have increased spec.replicas in deployment.yaml to 10 and this indeed increased the pod count. But this is rather static declaration and not scaling according to the load, right?
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-service
labels:
app: my-service
spec:
replicas: 10
selector:
matchLabels:
app: my-service
2022 Jul 31 7:32 PM
week 2 submission - React app
https://reactfiori.c-154df33.kyma.ondemand.com/
Deployment file
2022 Jul 31 7:42 PM
Week 1 submission (3 more to go, 2 days left :-O)
https://hello-community.c-0007af4.kyma.ondemand.com/greeting/Віталій
2022 Jul 31 9:15 PM
2022 Aug 01 9:44 AM
2022 Aug 01 10:28 AM
2022 Aug 01 9:57 PM
2022 Aug 01 11:11 PM
2022 Aug 02 12:44 AM
2022 Aug 02 9:11 AM
Week 2. It's a simple node js that returns current timestamp.
apiVersion: apps/v1
kind: Deployment
metadata:
name: simple-current-timestamp
labels:
app: simple-current-timestamp
spec:
replicas: 1
selector:
matchLabels:
app: simple-current-timestamp
template:
metadata:
labels:
app: simple-current-timestamp
spec:
containers:
- name: simple-current-timestamp
image: ghcr.io/stevanic/simple-current-timestamp:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
limits:
ephemeral-storage: 256M
memory: 256M
cpu: 100m
requests:
cpu: 100m
ephemeral-storage: 256M
memory: 256M
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: simple-current-timestamp
spec:
selector:
app: simple-current-timestamp
ports:
- port: 8080
targetPort: 8080
protocol: TCP
---
apiVersion: gateway.kyma-project.io/v1alpha1
kind: APIRule
metadata:
name: simple-current-timestamp
spec:
gateway: kyma-gateway.kyma-system.svc.cluster.local
service:
name: simple-current-timestamp
port: 8080
host: simple-current-timestamp
rules:
- path: /.*
methods: ["GET"]
accessStrategies:
- handler: noop
config: {}
2022 Aug 02 9:21 AM
Hi my friends!
Tomorrow is the last they for submitting your challenge submissions. After Wednesday, August 3rd we will close the Code Challenge for this month 😊.
Thank you all for the participation and all of your submissions! I am super excited that all of you put work and thought into solving each weeks challenge!
The badges for your Code Challenge participation will go online after August 8th.
For more Cloud Native, Kyma, Kubernetes, etc. Content please visit our SAP Developer YouTube Channel
2022 Aug 02 12:28 PM
For week 2 I tried to deploy the same Python app that I deployed to CloudFoundry: https://blogs.sap.com/2022/06/09/sap-tech-bytes-cf-python-app-to-upload-csv-into-sap-hana-cloud-data...
It runs localy in my Docker container, but does not start when deployed to Kyma due to error "WebSocket connection to 'wss://loadfilemvp.c-0007af4.kyma.ondemand.com/stream' failed: WebSocket is closed before the connection is established.".
Is there any additional rule I need to include into deployment file to enable websockets? I searched documentation, but could not find it.
2022 Aug 02 1:18 PM
2022 Aug 02 1:44 PM
2022 Aug 03 4:16 AM
Week 3
Follow the link, this a CAP Service with JSON Web Token.
https://orders.eacec52.kyma.ondemand.com/
2022 Aug 03 7:54 AM
2022 Aug 03 8:19 AM
2022 Aug 03 5:49 PM
2022 Aug 03 6:33 PM - edited 2022 Aug 03 6:40 PM
2022 Aug 03 9:31 PM
2022 Aug 04 12:02 AM
2022 Aug 04 12:21 AM