more function

This commit is contained in:
Torma Kristóf 2019-10-08 18:30:22 +02:00
parent f04142f2d0
commit 5661866a94
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
12 changed files with 176 additions and 2 deletions

View File

@ -0,0 +1,21 @@
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: helloworld-go-sc-cc
namespace: default
spec:
template:
metadata:
annotations:
# Knative concurrency-based autoscaling (default).
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
autoscaling.knative.dev/metric: concurrency
# Target 10 requests in-flight per pod.
autoscaling.knative.dev/target: "10"
# Disable scale to zero with a minScale of 1.
autoscaling.knative.dev/minScale: "1"
# Limit scaling to 100 pods.
autoscaling.knative.dev/maxScale: "100"
spec:
containers:
- image: docker.pkg.github.com/tormachris/knative-report-functions/hello-world-go

View File

@ -0,0 +1,15 @@
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: helloworld-go-sc
namespace: default
spec:
template:
metadata:
annotations:
# Knative cpu-based autoscaling.
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
autoscaling.knative.dev/metric: cpu
spec:
containers:
- image: docker.pkg.github.com/tormachris/knative-report-functions/hello-world-go

View File

@ -0,0 +1,21 @@
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: helloworld-py-sc-cc
namespace: default
spec:
template:
metadata:
annotations:
# Knative concurrency-based autoscaling (default).
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
autoscaling.knative.dev/metric: concurrency
# Target 10 requests in-flight per pod.
autoscaling.knative.dev/target: "10"
# Disable scale to zero with a minScale of 1.
autoscaling.knative.dev/minScale: "1"
# Limit scaling to 100 pods.
autoscaling.knative.dev/maxScale: "100"
spec:
containers:
- image: docker.pkg.github.com/tormachris/knative-report-functions/hello-world-py

View File

@ -0,0 +1,15 @@
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: hello-world-py-sc
namespace: default
spec:
template:
metadata:
annotations:
# Knative cpu-based autoscaling.
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
autoscaling.knative.dev/metric: cpu
spec:
containers:
- image: docker.pkg.github.com/tormachris/knative-report-functions/hello-world-py

View File

@ -0,0 +1,21 @@
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: isprime-go-sc-cc
namespace: default
spec:
template:
metadata:
annotations:
# Knative concurrency-based autoscaling (default).
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
autoscaling.knative.dev/metric: concurrency
# Target 10 requests in-flight per pod.
autoscaling.knative.dev/target: "10"
# Disable scale to zero with a minScale of 1.
autoscaling.knative.dev/minScale: "1"
# Limit scaling to 100 pods.
autoscaling.knative.dev/maxScale: "100"
spec:
containers:
- image: docker.pkg.github.com/tormachris/knative-report-functions/isprime-go

View File

@ -0,0 +1,15 @@
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: isprime-go-sc
namespace: default
spec:
template:
metadata:
annotations:
# Knative cpu-based autoscaling.
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
autoscaling.knative.dev/metric: cpu
spec:
containers:
- image: docker.pkg.github.com/tormachris/knative-report-functions/isprime-go

View File

@ -0,0 +1,21 @@
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: isprime-py-sc-cc
namespace: default
spec:
template:
metadata:
annotations:
# Knative concurrency-based autoscaling (default).
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
autoscaling.knative.dev/metric: concurrency
# Target 10 requests in-flight per pod.
autoscaling.knative.dev/target: "10"
# Disable scale to zero with a minScale of 1.
autoscaling.knative.dev/minScale: "1"
# Limit scaling to 100 pods.
autoscaling.knative.dev/maxScale: "100"
spec:
containers:
- image: docker.pkg.github.com/tormachris/knative-report-functions/isprime-py

View File

@ -0,0 +1,15 @@
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: isprime-py-sc
namespace: default
spec:
template:
metadata:
annotations:
# Knative cpu-based autoscaling.
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
autoscaling.knative.dev/metric: cpu
spec:
containers:
- image: docker.pkg.github.com/tormachris/knative-report-functions/isprime-py

View File

@ -7,7 +7,7 @@ spec:
template: template:
spec: spec:
containers: containers:
- image: docker.pkg.github.com/tormachris/knative-report-functions/hello-world - image: "docker.pkg.github.com/tormachris/knative-report-functions/hello-world-go"
env: env:
- name: TARGET - name: TARGET
value: "Go" value: "Go"

View File

@ -0,0 +1,15 @@
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: helloworld-python
namespace: default
spec:
template:
spec:
containers:
-
env:
-
name: TARGET
image: "docker.pkg.github.com/tormachris/knative-report-functions/hello-world-py"
value: "Python"

View File

@ -7,7 +7,7 @@ spec:
template: template:
spec: spec:
containers: containers:
- image: docker.pkg.github.com/tormachris/knative-report-functions/isprime - image: "docker.pkg.github.com/tormachris/knative-report-functions/isprime-go"
env: env:
- name: TARGET - name: TARGET
value: 107107 value: 107107

View File

@ -0,0 +1,15 @@
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: isprime-py
namespace: default
spec:
template:
spec:
containers:
-
env:
-
name: TARGET
image: "docker.pkg.github.com/tormachris/knative-report-functions/isprime-py"
value: 107107