06-30-2022
11:51 AM
- last edited on
07-14-2022
6:52 PM
by
thomas_jung
07-06-2022 5:14 AM - edited 07-06-2022 5:23 AM
Hi Kevin,
Great to see Kyma in Community Code Challenge! Thanks!
The issue I'm having is that the image with the service seems to be missing in ghcr.io.
And the link to the Service Package in the Week 1 challenge leads to 404 page. This one: https://github.com/SAP-samples/sap-community-code-challenge-cloud-native/pkgs/container/sap-communit...
And the submission. The URL to some Coffee Corner thread in the Challenge Week 1 description leads to non-existing space :
07-06-2022 2:01 PM
Hi @VishnAndr ,
Thank you for letting me know. The link should be corrected and the package is public now (I forgot to change the visibility 🙈). Please let me know if there are still issues.
Best,
KM
07-06-2022 9:37 PM
Hi Kevin,
Super interesting this challenge.
I pass the screenshots and url of the uploaded application (I didn't know that GitHub had a docker registry hehe)
url: https://hello-community.e51816a.kyma.ondemand.com/greeting/r00k13d3v
Pd. If anyone wants more content in the SAP Developers list there are a few more (link) 😉
Best regards and thanks for the work Kevin!
07-07-2022 1:06 AM
07-07-2022 8:17 AM
It is great to see the first submissions flying in! I am really excited 😍
07-07-2022 10:01 PM
https://hello-community.c-65c082c.kyma.ondemand.com
The hardest part was, as always, to remember the OSX shortcut for screenshots
07-08-2022 3:35 AM
07-08-2022 11:26 AM
07-08-2022 12:47 PM
07-08-2022 3:41 PM
07-08-2022 5:09 PM
Hi Experts,
To participate in this challenge, is it required to have SAP BTP Free tier subscription enabled?
Just BTP trial version is enough to work on the challenges? When I tried to subscribe for Free tier plan as an individual, it states for "India" free tier plan for individual is not permitted currently.
Thanks,
Vignesh.
07-08-2022 8:03 PM
07-08-2022 8:01 PM - edited 07-08-2022 8:02 PM
07-10-2022 11:22 AM
Week1 Challenge Submission:
https://hello-community.a8a8425.kyma.ondemand.com/greeting/Punith
Thanks,
Punith Kumar
07-11-2022 12:20 AM
07-11-2022 4:48 AM
Week 1
Service deployed
Service URL
https://hello-community.fb42648.kyma.ondemand.com/
Looks like all developers love dark theme. 😃
07-11-2022 8:58 AM
07-11-2022 9:52 PM
07-12-2022 1:16 PM
07-12-2022 3:35 PM
🚨 Hey folks, for those of you waiting for week 2's challenge, it's arrived! Head on over to the detail on GitHub to find out more. Happy hacking! https://github.com/SAP-samples/sap-community-code-challenge-cloud-native/blob/main/Challenges.md#wee...
07-20-2022 4:10 AM
Week2 submission
Deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: kyma-test
labels:
app: kyma-test
spec:
replicas: 1
selector:
matchLabels:
app: kyma-test
template:
metadata:
labels:
app: kyma-test
spec:
containers:
- name: kyma-test
image: ghcr.io/sunilchandra007/sap-community-code-challenge-cloud-native:main
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
limits:
ephemeral-storage: 256M
memory: 256M
cpu: 100m
requests:
cpu: 100m
ephemeral-storage: 256M
memory: 256M
imagePullSecrets:
- name: regcred
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: kyma-test
spec:
selector:
app: kyma-test
ports:
- port: 8080
targetPort: 8080
protocol: TCP
---
apiVersion: gateway.kyma-project.io/v1alpha1
kind: APIRule
metadata:
name: kyma-test
spec:
gateway: kyma-gateway.kyma-system.svc.cluster.local
service:
name: kyma-test
port: 8080
host: kyma-test
rules:
- path: /.*
methods: ["GET"]
accessStrategies:
- handler: noop
config: {}
Regards,
Sunil Chandra
07-26-2022 8:05 AM
Back from vacation with week 2's challenge
https://hello-world.c-65c082c.kyma.ondemand.com/
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-world
labels:
app: hello-world
spec:
replicas: 1
selector:
matchLabels:
app: hello-world
template:
metadata:
labels:
app: hello-world
spec:
containers:
- name: hello-world
image: docker.io/matt1as/sap-community-week1:v30
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
limits:
ephemeral-storage: 256M
memory: 256M
cpu: 100m
requests:
cpu: 100m
ephemeral-storage: 256M
memory: 256M
imagePullSecrets:
- name: regcred
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: hello-world
spec:
selector:
app: hello-world
ports:
- port: 8080
targetPort: 8080
protocol: TCP
---
apiVersion: gateway.kyma-project.io/v1alpha1
kind: APIRule
metadata:
name: hello-world
spec:
gateway: kyma-gateway.kyma-system.svc.cluster.local
service:
name: hello-world
port: 8080
host: hello-world
rules:
- path: /.*
methods: ["GET"]
accessStrategies:
- handler: noop
config: {}
07-12-2022 6:49 PM
Finally, Here is my Week 1 Submission.
Service URL: https://hello-community.c-5ff4ab7.kyma.shoot.live.k8s-hana.ondemand.com/greeting/Sai%20Nithesh
Regards,
Sai Nithesh
07-12-2022 7:08 PM - edited 07-13-2022 7:09 AM
Hi!!
Here is my submission for week 2 --> https://rick-and-morty.e51816a.kyma.ondemand.com/character/1 || https://hello-go.e51816a.kyma.ondemand.com/hello/r00k13d3v
¡Happy Coding!
07-13-2022 12:33 AM
07-13-2022 2:57 AM
Hi!
Follow below my deployment and URL link, so I just finish the challenge week 1.
07-13-2022 3:58 AM
Hi!
I'm sending below the image about Week 1 Challenge.
07-13-2022 3:43 PM
Hi,
Week 1 Challenge Submission
URL: https://hello-community.c-994d9e7.kyma.ondemand.com/greeting/Kanag
07-14-2022 1:34 AM
Week 2
"go-hello" deployed using golang to display a chuck norris joke
deployment.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: go-hello
spec:
replicas: 1
selector:
matchLabels:
name: go-hello
template:
metadata:
labels:
name: go-hello
spec:
containers:
- name: application
image: docker.io/whocann/go-hello
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
limits:
ephemeral-storage: 256M
memory: 256M
cpu: 100m
requests:
cpu: 100m
ephemeral-storage: 256M
memory: 256M
imagePullSecrets:
- name: regcred
---
apiVersion: v1
kind: Service
metadata:
name: go-hello
spec:
ports:
- name: http
port: 8080
targetPort: 8080
selector:
name: go-hello
---
apiVersion: gateway.kyma-project.io/v1alpha1
kind: APIRule
metadata:
name: go-hello
spec:
gateway: kyma-gateway.kyma-system.svc.cluster.local
service:
name: go-hello
port: 8080
host: go-hello
rules:
- path: /.*
methods: ["GET"]
accessStrategies:
- handler: noop
config: {}
btw, one question: how to get the api rule URL from command line?
07-15-2022 4:56 PM - edited 07-15-2022 4:56 PM
Hey there - this docu resource should help https://kyma-project.io/docs/kyma/latest/05-technical-reference/00-custom-resources/apix-01-apirule#...
example:
kubectl get crd apirules.gateway.kyma-project.io -o yaml
07-18-2022 1:36 AM
Hi DJ, thanks for the reply.
I tried the command but does not seem to return what I want.
Currently I can only see the url of the deployed service from dashboard. I wonder if I can get it using command line.
07-18-2022 11:35 AM - edited 07-21-2022 11:12 AM
One way you could find this out is by looking at the virtualservices based on the deployment name and namespace, as follows (in this example, I'm assuming the namespace is default):
$ kubectl get deployments
NAME READY UP-TO-DATE AVAILABLE AGE
hello-community 1/1 1 1 19m
This confirms that the deployment name is hello-community.
Then you could use this (in conjunction with the namespace) to filter the virtualservices on the apirules label, and get the host this way:
$ kubectl get virtualservices -l "apirule.gateway.kyma-project.io/v1alpha1=hello-community.default" -o=jsonpath='{.items[0].spec.hosts[0]}'
hello-community.c-3d84dyx.kyma.ondemand.com
Hope that this will set you on the right path.
Cheers
07-21-2022 1:52 AM
07-14-2022 3:15 AM - edited 07-14-2022 3:20 AM
Hello Kevin!
Here is my submission for Week 1.
url: https://hello-community.c-410cfea.kyma.ondemand.com/
Thank you!
07-14-2022 4:04 AM
07-14-2022 8:32 AM
07-14-2022 12:58 PM
Hi,
My week 1 challenge.
https://hello-community.c-52d46b5.kyma.ondemand.com/greeting/gaurav
Thanks and Regards,
Gaurav Phadnis
07-15-2022 3:56 AM
07-15-2022 9:30 AM