https://github.com/sergioarmgpl/knativeconna2022
KnativeConNA Demo, using Knative at the edge
https://github.com/sergioarmgpl/knativeconna2022
Last synced: 3 months ago
JSON representation
KnativeConNA Demo, using Knative at the edge
- Host: GitHub
- URL: https://github.com/sergioarmgpl/knativeconna2022
- Owner: sergioarmgpl
- License: apache-2.0
- Created: 2022-10-16T17:27:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-20T06:06:48.000Z (almost 2 years ago)
- Last Synced: 2024-12-29T21:12:18.006Z (5 months ago)
- Language: Python
- Size: 70.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# knativeconna2022
KnativeConNA Demo, using Knative at the edge
## Installing this demo##
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.2.0/serving-crds.yamlkubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.2.0/serving-core.yaml
kubectl apply -f https://github.com/knative/net-contour/releases/download/knative-v1.2.0/contour.yaml
kubectl apply -f https://github.com/knative/net-contour/releases/download/knative-v1.2.0/net-contour.yaml
kubectl patch configmap/config-network \
--namespace knative-serving \
--type merge \
--patch '{"data":{"ingress-class":"contour.ingress.networking.knative.dev"}}'EXTERNAL_IP="$(kubectl get svc envoy -n contour-external -o=jsonpath='{.status.loadBalancer.ingress[0].ip}')"
KNATIVE_DOMAIN="$EXTERNAL_IP.nip.io"
kubectl patch configmap/config-domain \
--namespace knative-serving \
--type merge \
--patch '{"data":{"'$KNATIVE_DOMAIN'":""}}'kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.2.0/serving-hpa.yaml
kn service create api \
--image sergioarmgpl/app2demo \
--port 5000 \
--env MESSAGE="Knative demo v1" \
--revision-name=v1 --cluster-localcurl http://api.default.$EXTERNAL_IP.nip.io
[Unit]
After=network.target[Service]
ExecStart=/usr/local/bin/disk-space-check.sh[Install]
WantedBy=default.target