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
Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x