diff --git a/functions/scaling/hello-world-go-concurrency.yml b/functions/scaling/hello-world-go-concurrency.yml index 19bf62f..abe1842 100644 --- a/functions/scaling/hello-world-go-concurrency.yml +++ b/functions/scaling/hello-world-go-concurrency.yml @@ -1,7 +1,7 @@ apiVersion: serving.knative.dev/v1alpha1 kind: Service metadata: - name: helloworld-go-sc-cc + name: helloworld-py-sc-cc namespace: default spec: template: @@ -18,4 +18,7 @@ spec: autoscaling.knative.dev/maxScale: "100" spec: containers: - - image: tormachris/hello-world-go + - image: tormachris/hello-world-py + env: + - name: TARGET + value: "Go" diff --git a/functions/scaling/hello-world-go.yml b/functions/scaling/hello-world-go.yml index 127defc..fd346a3 100644 --- a/functions/scaling/hello-world-go.yml +++ b/functions/scaling/hello-world-go.yml @@ -13,3 +13,6 @@ spec: spec: containers: - image: tormachris/hello-world-go + env: + - name: TARGET + value: "Go" diff --git a/functions/scaling/hello-world-py-concurrency.yml b/functions/scaling/hello-world-py-concurrency.yml index ab45be7..e77ef25 100644 --- a/functions/scaling/hello-world-py-concurrency.yml +++ b/functions/scaling/hello-world-py-concurrency.yml @@ -19,3 +19,6 @@ spec: spec: containers: - image: tormachris/hello-world-py + env: + - name: TARGET + value: "Py" diff --git a/functions/scaling/hello-world-py.yml b/functions/scaling/hello-world-py.yml index 011a42e..0c3bd38 100644 --- a/functions/scaling/hello-world-py.yml +++ b/functions/scaling/hello-world-py.yml @@ -1,7 +1,7 @@ apiVersion: serving.knative.dev/v1alpha1 kind: Service metadata: - name: hello-world-py-sc + name: helloworld-py-sc namespace: default spec: template: @@ -13,3 +13,6 @@ spec: spec: containers: - image: tormachris/hello-world-py + env: + - name: TARGET + value: "Go" diff --git a/functions/scaling/isprime-go-concurrency.yml b/functions/scaling/isprime-go-concurrency.yml index 2ffdce5..a7e1afc 100644 --- a/functions/scaling/isprime-go-concurrency.yml +++ b/functions/scaling/isprime-go-concurrency.yml @@ -19,3 +19,6 @@ spec: spec: containers: - image: tormachris/isprime-go + env: + - name: TARGET + value: 107107 diff --git a/functions/scaling/isprime-go.yml b/functions/scaling/isprime-go.yml index b169e01..02237e3 100644 --- a/functions/scaling/isprime-go.yml +++ b/functions/scaling/isprime-go.yml @@ -13,3 +13,6 @@ spec: spec: containers: - image: tormachris/isprime-go + env: + - name: TARGET + value: 107107 diff --git a/functions/scaling/isprime-py-concurrency.yml b/functions/scaling/isprime-py-concurrency.yml index b632e2a..aa0bae0 100644 --- a/functions/scaling/isprime-py-concurrency.yml +++ b/functions/scaling/isprime-py-concurrency.yml @@ -19,3 +19,6 @@ spec: spec: containers: - image: tormachris/isprime-py + env: + - name: TARGET + value: "Py" diff --git a/functions/scaling/isprime-py.yml b/functions/scaling/isprime-py.yml index 92a4cb3..c8cc760 100644 --- a/functions/scaling/isprime-py.yml +++ b/functions/scaling/isprime-py.yml @@ -13,3 +13,6 @@ spec: spec: containers: - image: tormachris/isprime-py + env: + - name: TARGET + value: "Py" diff --git a/functions/simple/helloworld-py.yml b/functions/simple/helloworld-py.yml index 175149f..0314fe8 100644 --- a/functions/simple/helloworld-py.yml +++ b/functions/simple/helloworld-py.yml @@ -1,15 +1,13 @@ apiVersion: serving.knative.dev/v1alpha1 kind: Service -metadata: - name: helloworld-python +metadata: + name: helloworld-py namespace: default -spec: - template: - spec: - containers: - - - env: - - - name: TARGET - image: "tormachris/hello-world-py" - value: "Python" +spec: + template: + spec: + containers: + - image: "tormachris/hello-world-py" + env: + - name: TARGET + value: "Py" diff --git a/functions/simple/isprime-py.yml b/functions/simple/isprime-py.yml index 260e15a..d4211cc 100644 --- a/functions/simple/isprime-py.yml +++ b/functions/simple/isprime-py.yml @@ -1,15 +1,13 @@ apiVersion: serving.knative.dev/v1alpha1 kind: Service -metadata: +metadata: name: isprime-py namespace: default -spec: - template: - spec: - containers: - - - env: - - - name: TARGET - image: "tormachris/isprime-py" - value: 107107 +spec: + template: + spec: + containers: + - image: "tormachris/isprime-py" + env: + - name: TARGET + value: 107107