Skip to main content

Knative Serving CRDs


Service

apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: <name>
namespace: <namespace>
spec:
template:
metadata:
annotations: {}
spec:
containerConcurrency: 0 # 0 == no-limit
containers:
- name: <containerName>
image: <image>
imagePullPolicy: IfNotPresent
ports:
# ports는 하나만 선언해야 합니다
- name: http1 # http1|h2c
containerPort: <port>
protocol: TCP
resources: {}
env: []
traffic: {}

Route