https://github.com/debianmaster/knative
https://github.com/debianmaster/knative
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/debianmaster/knative
- Owner: debianmaster
- Created: 2021-10-10T23:27:13.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-02T17:49:48.000Z (over 4 years ago)
- Last Synced: 2025-03-24T09:28:34.388Z (over 1 year ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Knative
# Install kn cli
```
wget https://github.com/knative/client/releases/download/v0.26.0/kn-linux-amd64
mv kn-linux-amd64 kn
chmod +x kn
mv kn /usr/local/bin
kn version
```
# Copy your k3s.yaml file content to kn config file
```
vi ~/.kube/knts.com
```
# Install knative serving component
```
kubectl apply -f https://github.com/knative/serving/releases/download/v0.26.0/serving-crds.yaml
kubectl apply -f https://github.com/knative/serving/releases/download/v0.26.0/serving-core.yaml
```
# Install courier network layer
```
kubectl apply -f https://github.com/knative/net-kourier/releases/download/v0.26.0/kourier.yaml
```
# Configure knative serving to use kourier network
```
kubectl patch configmap/config-network \
--namespace knative-serving \
--type merge \
--patch '{"data":{"ingress.class":"kourier.ingress.networking.knative.dev"}}'
```
# Configure sslip.io dns
```
kubectl apply -f https://github.com/knative/serving/releases/download/v0.26.0/serving-default-domain.yaml
```
# If you want to replace with your own dns name edit config-domain configmap
```
kubectl edit cm config-domain -n knative-serving
```
# Create a service
```
kn service create helloworld-go --image gcr.io/knative-samples/helloworld-go
```