Skip to content

Commit

Permalink
Release 1.14 Preparation (#8998)
Browse files Browse the repository at this point in the history
* Increase timeout values in dex image (#8981)

* Make installer and tiller more resilient

* Bump dex image

* Bump dex image

* Add timeout and additional namespaceSelector for knative-serving webhooks (#9017)

* Add timeout and addtitinal namespaceSelector for knative-serving webhooks

* Lower default knative-eventing webhook timeout to 10 seconds

* Disable pod-preset PDB by default (#9014)

* Use resource-policy keep in CRDs (#9007)

* keyma release 1.14.0-rc1 preperation

* installer image path corrected

* fix for wrong kyma operator image tag

* worn image name fixed

* Enable setting max payload size for function (#8989)

* Enable setting max payload size for function

* remove comment

* update docs

* update docs

* Apply suggestions from code review

Co-authored-by: Karolina Zydek <[email protected]>

* Update docs/serverless/05-01-serverless-envs.md

Co-authored-by: Karolina Zydek <[email protected]>

* Update docs/serverless/05-01-serverless-envs.md

Co-authored-by: Karolina Zydek <[email protected]>

Co-authored-by: Karolina Zydek <[email protected]>

Co-authored-by: Jakub Błaszczyk <[email protected]>
Co-authored-by: Benjamin Somhegyi <[email protected]>
Co-authored-by: Szymon Gibała <[email protected]>
Co-authored-by: Mateusz Puczyński <[email protected]>
Co-authored-by: Karolina Zydek <[email protected]>
  • Loading branch information
6 people authored Jul 21, 2020
1 parent ac2e972 commit 080b752
Show file tree
Hide file tree
Showing 62 changed files with 126 additions and 2,692 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ var (
envVarsForDeployment = []corev1.EnvVar{
{Name: "FUNC_HANDLER", Value: "main"},
{Name: "MOD_NAME", Value: "handler"},
{Name: "FUNC_TIMEOUT", Value: "180"},
{Name: "FUNC_RUNTIME", Value: "nodejs12"},
// {Name: "FUNC_MEMORY_LIMIT", Value: "128Mi"},
{Name: "FUNC_PORT", Value: "8080"},
{Name: "NODE_PATH", Value: "$(KUBELESS_INSTALL_VOLUME)/node_modules"},
}
Expand Down
2 changes: 1 addition & 1 deletion docs/serverless/03-01-supported-webhooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ A newly created or modified Function CR is first updated by the defaulting webho
- Requests are lower than or equal to limits, and the minimum number of replicas is lower than or equal to the maximum one.
- The Function CR contains all the required parameters.
- The format of deps, envs, labels, and the Function name ([RFC 1035](https://tools.ietf.org/html/rfc1035)) is correct.
- The Function CR contains any envs reserved for the Deployment: `FUNC_RUNTIME`, `FUNC_HANDLER`, `FUNC_TIMEOUT`, `FUNC_PORT`, `MOD_NAME`, `NODE_PATH`, `REQ_MB_LIMIT`, `FUNC_MEMORY_LIMIT`.
- The Function CR contains any envs reserved for the Deployment: `FUNC_RUNTIME`, `FUNC_HANDLER`, `FUNC_PORT`, `MOD_NAME`, `NODE_PATH`.
35 changes: 35 additions & 0 deletions docs/serverless/05-01-serverless-envs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: Environment variables
type: Configuration
---

To configure the Serverless Function, override the default values of these environment variables:

| Environment variable | Description | Unit | Default value |
| ---------------------- | ----------------------------------------------------------------------------- | ------ | ------------- |
| **FUNC_TIMEOUT** | Specifies the number of seconds in which a runtime must execute the code. | Number | `180` |
| **REQ_MB_LIMIT** | Specifies the payload body size limit in megabytes. | Number | `1` |

See [`kubeless.js`](https://github.com/kubeless/runtimes/blob/master/stable/nodejs/kubeless.js) to get a deeper understanding of how the Express server, that acts as a runtime, uses these values internally to run Functions.

See the example of a Function with these environment variables set:

```yaml
apiVersion: serverless.kyma-project.io/v1alpha1
kind: Function
metadata:
name: sample-fn-with-envs
namespace: default
spec:
env:
- name: FUNC_TIMEOUT
value: "2"
- name: REQ_MB_LIMIT
value: "10"
source: |
module.exports = {
main: function (event, context) {
return "Hello World!";
}
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,3 @@ This table lists the configurable parameters, their descriptions, and default va
| **containers.manager.envs.buildRequestsMemory** | Amount of memory requested by the image-building Pod to operate. | `700Mi` | `200Mi` |
| **containers.manager.envs.buildLimitsCPU** | Maximum number of CPUs available for the image-building Pod to use. | `1100m` | `200m` |
| **containers.manager.envs.buildLimitsMemory** | Maximum amount of memory available for the image-building Pod to use. | `1100Mi` | `400Mi` |

<!-- write info about cpuUtilTarget% ?? -->
2 changes: 1 addition & 1 deletion installation/resources/installer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ spec:
done < helm2-releases
containers:
- name: kyma-installer-container
image: eu.gcr.io/kyma-project/develop/installer:408cb6a6
image: eu.gcr.io/kyma-project/kyma-installer:1.14.0-rc1
imagePullPolicy: IfNotPresent
args:
- -overrideLogFile=/app/overrides.txt
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

117 changes: 0 additions & 117 deletions resources/application-connector/templates/application.crd.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ spec:
path: webhook.crt
- key: tls.key
path: webhook.key
{{- if .Values.webhook.pdb.enabled }}
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
Expand All @@ -64,3 +65,4 @@ spec:
selector:
matchLabels:
app: {{ template "pod-preset.name" . }}-webhook
{{- end -}}
2 changes: 2 additions & 0 deletions resources/cluster-essentials/charts/pod-preset/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ webhook:
verbosity: 6
securityContext:
runAsUser: 2000
pdb:
enabled: false

controller:
enabled: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
"helm.sh/resource-policy": keep
name: compassconnections.compass.kyma-project.io
spec:
group: compass.kyma-project.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ metadata:
{ "type": "dev.knative.apiserver.ref.delete" },
{ "type": "dev.knative.apiserver.ref.update" }
]
"helm.sh/resource-policy": keep
labels:
duck.knative.dev/source: "true"
eventing.knative.dev/release: "v0.12.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ metadata:
{ "type": "dev.knative.apiserver.ref.delete" },
{ "type": "dev.knative.apiserver.ref.update" }
]
"helm.sh/resource-policy": keep
creationTimestamp: null
labels:
duck.knative.dev/source: "true"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
"helm.sh/resource-policy": keep
name: applications.applicationconnector.kyma-project.io
spec:
group: applicationconnector.kyma-project.io
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
"helm.sh/resource-policy": keep
labels:
duck.knative.dev/addressable: "true"
eventing.knative.dev/release: "v0.12.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
"helm.sh/resource-policy": keep
name: centralconnections.applicationconnector.kyma-project.io
spec:
group: applicationconnector.kyma-project.io
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
"helm.sh/resource-policy": keep
name: certificaterequests.applicationconnector.kyma-project.io
spec:
group: applicationconnector.kyma-project.io
Expand Down
Loading

0 comments on commit 080b752

Please sign in to comment.