2022 Jun 30 11:51 AM - last edited on 2022 Jul 14 6:52 PM by thomas_jung
2022 Jul 06 5:14 AM - last edited on 2022 Jul 06 5:23 AM by Former Member
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 :
2022 Jul 06 2:01 PM
Hi @Former Member ,
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
2022 Jul 06 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!
2022 Jul 07 1:06 AM
2022 Jul 07 8:17 AM
It is great to see the first submissions flying in! I am really excited 😍
2022 Jul 07 10:01 PM
https://hello-community.c-65c082c.kyma.ondemand.com
The hardest part was, as always, to remember the OSX shortcut for screenshots
2022 Jul 08 3:35 AM
2022 Jul 08 11:26 AM
2022 Jul 08 12:47 PM
2022 Jul 08 3:41 PM
2022 Jul 08 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.
2022 Jul 08 8:03 PM
2022 Jul 08 8:01 PM - edited 2022 Jul 08 8:02 PM
2022 Jul 10 11:22 AM
Week1 Challenge Submission:
https://hello-community.a8a8425.kyma.ondemand.com/greeting/Punith
Thanks,
Punith Kumar
2022 Jul 11 12:20 AM
2022 Jul 11 4:48 AM
Week 1
Service deployed
Service URL
https://hello-community.fb42648.kyma.ondemand.com/
Looks like all developers love dark theme. 😃
2022 Jul 11 8:58 AM
2022 Jul 11 9:52 PM
2022 Jul 12 1:16 PM
2022 Jul 12 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...
2022 Jul 20 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
2022 Jul 26 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: {}
2022 Jul 12 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
2022 Jul 12 7:08 PM - edited 2022 Jul 13 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!
2022 Jul 13 12:33 AM
2022 Jul 13 2:57 AM
Hi!
Follow below my deployment and URL link, so I just finish the challenge week 1.
2022 Jul 13 3:58 AM
Hi!
I'm sending below the image about Week 1 Challenge.
2022 Jul 13 3:43 PM
Hi,
Week 1 Challenge Submission
URL: https://hello-community.c-994d9e7.kyma.ondemand.com/greeting/Kanag
2022 Jul 14 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?
2022 Jul 15 4:56 PM - edited 2022 Jul 15 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
2022 Jul 18 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.
2022 Jul 18 11:35 AM - edited 2022 Jul 21 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
2022 Jul 21 1:52 AM
2022 Jul 14 3:15 AM - edited 2022 Jul 14 3:20 AM
Hello Kevin!
Here is my submission for Week 1.
url: https://hello-community.c-410cfea.kyma.ondemand.com/
Thank you!
2022 Jul 14 4:04 AM
2022 Jul 14 8:32 AM
2022 Jul 14 12:58 PM
Hi,
My week 1 challenge.
https://hello-community.c-52d46b5.kyma.ondemand.com/greeting/gaurav
Thanks and Regards,
Gaurav Phadnis
2022 Jul 15 3:56 AM
2022 Jul 15 9:30 AM