Skip to content

Commit

Permalink
Upgrade Knative serving to 1.10.2 and eventing to 1.10.1 (kubeflow#2486)
Browse files Browse the repository at this point in the history
* Upgrade Knative serving to 1.10.2 and eventing to 1.10.1

Signed-off-by: Anna Jung (VMware) <antheaj@vmware.com>

* Update README

Signed-off-by: Anna Jung (VMware) <antheaj@vmware.com>

* Add additional worker nodes

Signed-off-by: Anna Jung (VMware) <antheaj@vmware.com>

---------

Signed-off-by: Anna Jung (VMware) <antheaj@vmware.com>
  • Loading branch information
Anna authored Aug 1, 2023
1 parent 6de2b20 commit 59fbcdb
Show file tree
Hide file tree
Showing 13 changed files with 637 additions and 535 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ used from the different projects of Kubeflow:
| Component | Local Manifests Path | Upstream Revision |
| - | - | - |
| Istio | common/istio-1-17 | [1.17.3](https://github.com/istio/istio/releases/tag/1.17.3) |
| Knative | common/knative/knative-serving <br /> common/knative/knative-eventing | [1.8.1](https://github.com/knative/serving/releases/tag/knative-v1.8.1) <br /> [1.8.1](https://github.com/knative/eventing/releases/tag/knative-v1.8.1) |
| Knative | common/knative/knative-serving <br /> common/knative/knative-eventing | [1.10.2](https://github.com/knative/serving/releases/tag/knative-v1.10.2) <br /> [1.10.1](https://github.com/knative/eventing/releases/tag/knative-v1.10.1) |
| Cert Manager | common/cert-manager | [1.12.2](https://github.com/cert-manager/cert-manager/releases/tag/v1.12.2) |

## Installation
Expand Down
27 changes: 13 additions & 14 deletions common/knative/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@

The manifests for Knative Serving are based off the following:

- [Knative serving (v1.8.1)](https://github.com/knative/serving/releases/tag/knative-v1.8.1)
- [Knative ingress controller for Istio (v1.8.0)](https://github.com/knative-sandbox/net-istio/releases/tag/knative-v1.8.0)

- [Knative serving (v1.10.2)](https://github.com/knative/serving/releases/tag/knative-v1.10.2)
- [Knative ingress controller for Istio (v1.10.1)](https://github.com/knative-sandbox/net-istio/releases/tag/knative-v1.10.1)

1. Download the knative-serving manifests with the following commands:

```sh
# No need to install serving-crds.
# See: https://github.com/knative/serving/issues/9945
wget -O knative-serving/base/upstream/serving-core.yaml 'https://github.com/knative/serving/releases/download/knative-v1.8.1/serving-core.yaml'
wget -O knative-serving/base/upstream/net-istio.yaml 'https://github.com/knative-sandbox/net-istio/releases/download/knative-v1.8.0/net-istio.yaml'
wget -O knative-serving-post-install-jobs/base/serving-post-install-jobs.yaml 'https://github.com/knative/serving/releases/download/knative-v1.8.1/serving-post-install-jobs.yaml'
wget -O knative-serving/base/upstream/serving-core.yaml 'https://github.com/knative/serving/releases/download/knative-v1.10.2/serving-core.yaml'
wget -O knative-serving/base/upstream/net-istio.yaml 'https://github.com/knative-sandbox/net-istio/releases/download/knative-v1.10.1/net-istio.yaml'
wget -O knative-serving-post-install-jobs/base/serving-post-install-jobs.yaml 'https://github.com/knative/serving/releases/download/knative-v1.10.2/serving-post-install-jobs.yaml'
```

1. Remove all comments, since `yq` does not handle them correctly. See:
Expand Down Expand Up @@ -70,20 +69,20 @@ NOTE: You'll need to remove a redundant `{}` at the end of the `knative-serving/

## Knative-Eventing

The manifests for Knative Eventing are based off the the [v1.8.1 release](https://github.com/knative/eventing/releases/tag/knative-v1.8.1).
The manifests for Knative Eventing are based off the the [v1.10.1 release](https://github.com/knative/eventing/releases/tag/knative-v1.10.1).

- [Eventing Core](https://github.com/knative/eventing/releases/download/knative-v1.8.1/eventing-core.yaml)
- [In-Memory Channel](https://github.com/knative/eventing/releases/download/knative-v1.8.1/in-memory-channel.yaml)
- [MT Channel Broker](https://github.com/knative/eventing/releases/download/knative-v1.8.1/mt-channel-broker.yaml)
- [Eventing Core](https://github.com/knative/eventing/releases/download/knative-v1.10.1/eventing-core.yaml)
- [In-Memory Channel](https://github.com/knative/eventing/releases/download/knative-v1.10.1/in-memory-channel.yaml)
- [MT Channel Broker](https://github.com/knative/eventing/releases/download/knative-v1.10.1/mt-channel-broker.yaml)


1. Download the knative-eventing manifests with the following commands:

```sh
wget -O knative-eventing/base/upstream/eventing-core.yaml 'https://github.com/knative/eventing/releases/download/knative-v1.8.1/eventing-core.yaml'
wget -O knative-eventing/base/upstream/in-memory-channel.yaml 'https://github.com/knative/eventing/releases/download/knative-v1.8.1/in-memory-channel.yaml'
wget -O knative-eventing/base/upstream/mt-channel-broker.yaml 'https://github.com/knative/eventing/releases/download/knative-v1.8.1/mt-channel-broker.yaml'
wget -O knative-eventing-post-install-jobs/base/eventing-post-install.yaml 'https://github.com/knative/eventing/releases/download/knative-v1.8.1/eventing-post-install.yaml'
wget -O knative-eventing/base/upstream/eventing-core.yaml 'https://github.com/knative/eventing/releases/download/knative-v1.10.1/eventing-core.yaml'
wget -O knative-eventing/base/upstream/in-memory-channel.yaml 'https://github.com/knative/eventing/releases/download/knative-v1.10.1/in-memory-channel.yaml'
wget -O knative-eventing/base/upstream/mt-channel-broker.yaml 'https://github.com/knative/eventing/releases/download/knative-v1.10.1/mt-channel-broker.yaml'
wget -O knative-eventing-post-install-jobs/base/eventing-post-install.yaml 'https://github.com/knative/eventing/releases/download/knative-v1.10.1/eventing-post-install.yaml'
```

1. Remove all comments, since `yq` does not handle them correctly. See:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,145 +1,14 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: knative-eventing-post-install-job-role
labels:
app.kubernetes.io/version: "1.8.1"
app.kubernetes.io/name: knative-eventing
eventing.knative.dev/release: "v1.8.1"
rules:
- apiGroups:
- "apiextensions.k8s.io"
resources:
- "customresourcedefinitions"
- "customresourcedefinitions/status"
verbs:
- "get"
- "list"
- "update"
- "patch"
- "watch"
- apiGroups:
- "sources.knative.dev"
resources:
- "apiserversources"
- "apiserversources/finalizers"
- "apiserversources/status"
- "containersources"
- "containersources/finalizers"
- "containersources/status"
- "pingsources"
- "pingsources/finalizers"
- "pingsources/status"
- "sinkbindings"
- "sinkbindings/finalizers"
- "sinkbindings/status"
verbs:
- "get"
- "list"
- "create"
- "update"
- "patch"
- "watch"
- apiGroups:
- "eventing.knative.dev"
resources:
- "brokers"
- "brokers/finalizers"
- "brokers/status"
- "eventtypes"
- "eventtypes/finalizers"
- "eventtypes/status"
- "triggers"
- "triggers/finalizers"
- "triggers/status"
verbs:
- "get"
- "list"
- "create"
- "update"
- "patch"
- "watch"
- apiGroups:
- "messaging.knative.dev"
resources:
- "channels"
- "channels/finalizers"
- "channels/status"
- "inmemorychannels"
- "inmemorychannels/finalizers"
- "inmemorychannels/status"
- "subscriptions"
- "subscriptions/finalizers"
- "subscriptions/status"
verbs:
- "get"
- "list"
- "create"
- "update"
- "patch"
- "watch"
- apiGroups:
- "flows.knative.dev"
resources:
- "parallels"
- "parallels/finalizers"
- "parallels/status"
- "sequences"
- "sequences/finalizers"
- "sequences/status"
verbs:
- "get"
- "list"
- "create"
- "update"
- "patch"
- "watch"
- apiGroups:
- ""
resources:
- "namespaces"
verbs:
- "get"
- "list"
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: knative-eventing-post-install-job
namespace: knative-eventing
labels:
eventing.knative.dev/release: "v1.8.1"
app.kubernetes.io/version: "1.8.1"
app.kubernetes.io/name: knative-eventing
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: knative-eventing-post-install-job-role-binding
labels:
eventing.knative.dev/release: "v1.8.1"
app.kubernetes.io/version: "1.8.1"
app.kubernetes.io/name: knative-eventing
subjects:
- kind: ServiceAccount
name: knative-eventing-post-install-job
namespace: knative-eventing
roleRef:
kind: ClusterRole
name: knative-eventing-post-install-job-role
apiGroup: rbac.authorization.k8s.io
---
apiVersion: batch/v1
kind: Job
metadata:
name: storage-version-migration-eventing
generateName: storage-version-migration-eventing-
namespace: knative-eventing
labels:
app: "storage-version-migration-eventing"
app.kubernetes.io/name: knative-eventing
app.kubernetes.io/component: storage-version-migration-job
app.kubernetes.io/version: "1.8.1"
eventing.knative.dev/release: "v1.8.1"
app.kubernetes.io/version: "1.10.1"
name: storage-version-migration-eventing
spec:
ttlSecondsAfterFinished: 600
backoffLimit: 10
Expand All @@ -149,16 +18,15 @@ spec:
app: "storage-version-migration-eventing"
app.kubernetes.io/name: knative-eventing
app.kubernetes.io/component: storage-version-migration-job
app.kubernetes.io/version: "1.8.1"
eventing.knative.dev/release: "v1.8.1"
app.kubernetes.io/version: "1.10.1"
annotations:
sidecar.istio.io/inject: "false"
spec:
serviceAccountName: knative-eventing-post-install-job
restartPolicy: OnFailure
containers:
- name: migrate
image: gcr.io/knative-releases/knative.dev/pkg/apiextensions/storageversion/cmd/migrate@sha256:bb95337552b07e1a52d6205a95342317b1b081b6b57ef7764c0d59c466978b6f
image: gcr.io/knative-releases/knative.dev/pkg/apiextensions/storageversion/cmd/migrate@sha256:56780f69e6496bb4790b0c147deb652a2b020ff81e08d58cc58a61cd649b1121
args:
- "apiserversources.sources.knative.dev"
- "brokers.eventing.knative.dev"
Expand All @@ -181,5 +49,3 @@ spec:
- ALL
seccompProfile:
type: RuntimeDefault
---

Loading

0 comments on commit 59fbcdb

Please sign in to comment.