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

Commit

Permalink
feat: use knative operator overrides (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
zalsader authored Mar 16, 2024
1 parent d396516 commit b12e899
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
4 changes: 0 additions & 4 deletions exp/knative-basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ This could be intermediate files in your image processing pipeline or [find appl
```bash
kubectl apply -f deploy/operator.yaml
kubectl apply -f deploy/serving.yaml
kubectl patch service/kourier \
-n knative-serving \
--type merge -p '{"metadata": {"annotations": {"load-balancer.hetzner.cloud/name": "koor-demo-staging-kourier" }}}'

```

## Install knative func
Expand Down
9 changes: 8 additions & 1 deletion exp/knative-basic/deploy/serving.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,11 @@ spec:
features:
kubernetes.podspec-persistent-volume-claim: "enabled"
kubernetes.podspec-persistent-volume-write: "enabled"
kubernetes.podspec-securitycontext: "enabled"
kubernetes.podspec-securitycontext: "enabled"
services:
- name: kourier
# Override annotations for the kourier service
annotations:
# A provider-specific annotation is necessary to access the functions using a load balancer
# For Hetzner it is:
load-balancer.hetzner.cloud/name: "koor-demo-kourier"
3 changes: 0 additions & 3 deletions exp/knative-ml/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ kubectl rook-ceph ceph status
```bash
kubectl apply -f deploy/operator.yaml
kubectl apply -f deploy/serving.yaml
kubectl patch service/kourier \
-n knative-serving \
--type merge -p '{"metadata": {"annotations": {"load-balancer.hetzner.cloud/name": "koor-demo-kourier" }}}'
kubectl apply -f deploy/eventing.yaml

```
Expand Down
9 changes: 8 additions & 1 deletion exp/knative-ml/deploy/serving.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,11 @@ spec:
domain:
"knative.koor.dev": ""
network:
ingress-class: "kourier.ingress.networking.knative.dev"
ingress-class: "kourier.ingress.networking.knative.dev"
services:
- name: kourier
# Override annotations for the kourier service
annotations:
# A provider-specific annotation is necessary to access the functions using a load balancer
# For Hetzner it is:
load-balancer.hetzner.cloud/name: "koor-demo-kourier"

0 comments on commit b12e899

Please sign in to comment.