more function
This commit is contained in:
		
							
								
								
									
										21
									
								
								functions/scaling/hello-world-go-concurrency.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								functions/scaling/hello-world-go-concurrency.yml
									
									
									
									
									
										Normal 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
 | 
				
			||||||
							
								
								
									
										15
									
								
								functions/scaling/hello-world-go.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								functions/scaling/hello-world-go.yml
									
									
									
									
									
										Normal 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
 | 
				
			||||||
							
								
								
									
										21
									
								
								functions/scaling/hello-world-py-concurrency.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								functions/scaling/hello-world-py-concurrency.yml
									
									
									
									
									
										Normal 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
 | 
				
			||||||
							
								
								
									
										15
									
								
								functions/scaling/hello-world-py.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								functions/scaling/hello-world-py.yml
									
									
									
									
									
										Normal 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
 | 
				
			||||||
							
								
								
									
										21
									
								
								functions/scaling/isprime-go-concurrency.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								functions/scaling/isprime-go-concurrency.yml
									
									
									
									
									
										Normal 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
 | 
				
			||||||
							
								
								
									
										15
									
								
								functions/scaling/isprime-go.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								functions/scaling/isprime-go.yml
									
									
									
									
									
										Normal 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
 | 
				
			||||||
							
								
								
									
										21
									
								
								functions/scaling/isprime-py-concurrency.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								functions/scaling/isprime-py-concurrency.yml
									
									
									
									
									
										Normal 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
 | 
				
			||||||
							
								
								
									
										15
									
								
								functions/scaling/isprime-py.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								functions/scaling/isprime-py.yml
									
									
									
									
									
										Normal 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
 | 
				
			||||||
@@ -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"
 | 
				
			||||||
							
								
								
									
										15
									
								
								functions/simple/helloworld-py.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								functions/simple/helloworld-py.yml
									
									
									
									
									
										Normal 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"
 | 
				
			||||||
@@ -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
 | 
				
			||||||
							
								
								
									
										15
									
								
								functions/simple/isprime-py.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								functions/simple/isprime-py.yml
									
									
									
									
									
										Normal 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
 | 
				
			||||||
		Reference in New Issue
	
	Block a user