🚀 DevOps & SRE Certification Program 📅 Starting: 1st of Every Month 🤝 +91 8409492687 🔍 Contact@DevOpsSchool.com

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Knative Knative Serving Component

1.8.5


# Check the Existing version of Knative
$ kubectl get namespace knative-serving -o 'go-template={{index .metadata.labels "app.kubernetes.io/version"}}'
 
# Install the required custom resources by running the command:
 $ kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.8.5/serving-crds.yaml 
 
# Install the core components of Knative Serving by running the command:
$ kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.8.5/serving-core.yaml
 
# Check the knative Serving POD is running or not.
$ kubectl get pods -n knative-serving
 
# Check the Existing version of Knative
$ kubectl get namespace knative-serving -o 'go-template={{index .metadata.labels "app.kubernetes.io/version"}}'

1.9.4


# Check the Existing version of Knative
$ kubectl get namespace knative-serving -o 'go-template={{index .metadata.labels "app.kubernetes.io/version"}}'
 
# Install the required custom resources by running the command:
$ kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.9.4/serving-crds.yaml
 
# Install the core components of Knative Serving by running the command:
$ kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.9.4/serving-core.yaml
 
# Check the knative Serving POD is running or not.
$ kubectl get pods -n knative-serving
 
# Check the Existing version of Knative
$ kubectl get namespace knative-serving -o 'go-template={{index .metadata.labels "app.kubernetes.io/version"}}'

1.10.2


# Check the Existing version of Knative
$ kubectl get namespace knative-serving -o 'go-template={{index .metadata.labels "app.kubernetes.io/version"}}'
 
# Install the required custom resources by running the command:
$ kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.10.2/serving-crds.yaml
 
# Install the core components of Knative Serving by running the command:
$ kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.10.2/serving-core.yaml 
 
# Check the knative Serving POD is running or not.
$ kubectl get pods -n knative-serving
 
# Check the Existing version of Knative and validate if upgrade has happend or not
$ kubectl get namespace knative-serving -o 'go-template={{index .metadata.labels "app.kubernetes.io/version"}}'

Istio chart to be installed for knative networking


# Install Istio Networking Resources for Knative Serving.
$ kubectl apply -l knative.dev/crd-install=true -f https://github.com/knative/net-istio/releases/download/knative-v1.8.3/istio.yaml
$ kubectl apply -f https://github.com/knative/net-istio/releases/download/knative-v1.8.3/istio.yaml
$ kubectl apply -f https://github.com/knative/net-istio/releases/download/knative-v1.8.3/net-istio.yaml
 
# Check the knative Serving POD is running or not.
$ kubectl get pods -n knative-serving
 
# Fetch the External IP address or CNAME by running the command:
$ kubectl get all --namespace istio-system
$ kubectl --namespace istio-system get service istio-ingressgateway

Upgrade


Run following commands if you are upgrading from 1.7.4 to 1.8.5
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.8.5/serving-core.yaml
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.8.5/serving-crds.yaml
 
Run following commands if you are upgrading from 1.8.5 to 1.9.4
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.9.4/serving-crds.yaml
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.9.4/serving-core.yaml
 
Run following commands if you are upgrading from 1.9.4 to 1.10.2
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.10.2/serving-crds.yaml
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.10.2/serving-core.yaml
 
Run following commands if you are upgrading from 1.10.2 to 1.11.2
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.11.0/serving-crds.yaml
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.11.0/serving-core.yaml

Uninstalling a networking layer


# If you are uninstalling 1.7.X
kubectl delete -f https://github.com/knative/net-istio/releases/download/knative-v1.7.1/istio.yaml
kubectl delete -f https://github.com/knative/net-istio/releases/download/knative-1.7.1/net-istio.yaml
 
# If you are uninstalling 1.8.X
kubectl delete -f https://github.com/knative-extensions/net-istio/releases/download/knative-v1.8.3/istio.yaml
kubectl delete -f https://github.com/knative-extensions/net-istio/releases/download/knative-v1.8.3/net-istio.yaml 
 
# If you are uninstalling 1.9.X
kubectl delete -f https://github.com/knative/net-istio/releases/download/knative-v1.9.3/istio.yaml
kubectl delete -f https://github.com/knative/net-istio/releases/download/knative-v1.9.3/net-istio.yaml
 
# If you are uninstalling 1.10.X
kubectl delete -f https://github.com/knative/net-istio/releases/download/knative-v1.10.1/istio.yaml
kubectl delete -f https://github.com/knative/net-istio/releases/download/knative-v1.10.1/net-istio.yaml
 
# If you are uninstalling 1.11.X
kubectl delete -f https://github.com/knative/net-istio/releases/download/knative-v1.11.0/istio.yaml
kubectl delete -f https://github.com/knative/net-istio/releases/download/knative-v1.11.0/net-istio.yaml

Uninstalling the Serving component


# Check the knative Serving POD is running or not.
$ kubectl get pods -n knative-serving
 # If you are uninstalling 1.7.X
$ kubectl delete -f https://github.com/knative/serving/releases/download/knative-v1.7.4/serving-crds.yaml
$ kubectl delete -f https://github.com/knative/serving/releases/download/knative-v1.7.4/serving-core.yaml
 
# If you are uninstalling 1.8.X
kubectl delete -f https://github.com/knative/serving/releases/download/knative-v1.8.5/serving-core.yaml
kubectl delete -f https://github.com/knative/serving/releases/download/knative-v1.8.5/serving-crds.yaml 
 
# If you are uninstalling 1.9.X
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.9.4/serving-crds.yaml
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.9.4/serving-core.yaml
 
# If you are uninstalling 1.10.X
kubectl delete -f https://github.com/knative/serving/releases/download/knative-v1.10.2/serving-crds.yaml
kubectl delete -f https://github.com/knative/serving/releases/download/knative-v1.10.2/serving-core.yaml
 
# If you are uninstalling 1.11.X
kubectl delete -f https://github.com/knative/serving/releases/download/knative-v1.11.0/serving-crds.yaml
kubectl delete -f https://github.com/knative/serving/releases/download/knative-v1.11.0/serving-core.yaml

How to Uninstall the existing Knative Version?


Details - https://knative.dev/docs/install/uninstall/

$ kubectl delete -f https://storage.googleapis.com/knative-nightly/serving/latest/serving-core.yaml
$ kubectl delete -f https://storage.googleapis.com/knative-nightly/serving/latest/serving-crds.yaml

$ kubectl delete -f https://storage.googleapis.com/knative-nightly/eventing/latest/eventing-core.yaml
$ kubectl delete -f https://storage.googleapis.com/knative-nightly/eventing/latest/eventing-crds.yaml
Subscribe
Notify of
guest


0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x