131 lines
3.6 KiB
JSON
131 lines
3.6 KiB
JSON
[
|
|
{
|
|
"apiVersion": "serving.knative.dev/v1",
|
|
"kind": "Service",
|
|
"metadata": {
|
|
"name": "api",
|
|
"namespace": "123456789012",
|
|
"selfLink": "/apis/serving.knative.dev/v1/namespaces/123456789012/services/api",
|
|
"uid": "3f2a9c1e-5b7d-4e8f-9a0b-1c2d3e4f5a6b",
|
|
"resourceVersion": "AAYy1ZQ0JdU",
|
|
"generation": 3,
|
|
"creationTimestamp": "2026-09-30T14:02:11.431902Z",
|
|
"labels": {
|
|
"cloud.googleapis.com/location": "europe-west1"
|
|
},
|
|
"annotations": {
|
|
"run.googleapis.com/ingress": "all",
|
|
"run.googleapis.com/ingress-status": "all",
|
|
"serving.knative.dev/creator": "operator@example.com",
|
|
"serving.knative.dev/lastModifier": "operator@example.com"
|
|
}
|
|
},
|
|
"spec": {
|
|
"template": {
|
|
"metadata": {
|
|
"name": "api-00003-xyz",
|
|
"annotations": {
|
|
"autoscaling.knative.dev/maxScale": "10",
|
|
"run.googleapis.com/execution-environment": "gen2"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containerConcurrency": 80,
|
|
"timeoutSeconds": 300,
|
|
"serviceAccountName": "api-runner@example-project.iam.gserviceaccount.com",
|
|
"containers": [
|
|
{
|
|
"name": "api-1",
|
|
"image": "europe-west1-docker.pkg.dev/example-project/apps/api@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
|
|
"args": [
|
|
"--port=8080"
|
|
],
|
|
"ports": [
|
|
{
|
|
"name": "http1",
|
|
"containerPort": 8080
|
|
}
|
|
],
|
|
"env": [
|
|
{
|
|
"name": "LOG_LEVEL",
|
|
"value": "info"
|
|
},
|
|
{
|
|
"name": "DB_PASSWORD",
|
|
"valueFrom": {
|
|
"secretKeyRef": {
|
|
"key": "latest",
|
|
"name": "db-password"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"resources": {
|
|
"limits": {
|
|
"cpu": "1000m",
|
|
"memory": "512Mi"
|
|
}
|
|
},
|
|
"volumeMounts": [
|
|
{
|
|
"name": "cache",
|
|
"mountPath": "/cache"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"volumes": [
|
|
{
|
|
"name": "cache",
|
|
"emptyDir": {
|
|
"medium": "Memory",
|
|
"sizeLimit": "128Mi"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"traffic": [
|
|
{
|
|
"percent": 100,
|
|
"latestRevision": true
|
|
}
|
|
]
|
|
},
|
|
"status": {
|
|
"observedGeneration": 3,
|
|
"conditions": [
|
|
{
|
|
"type": "Ready",
|
|
"status": "True",
|
|
"lastTransitionTime": "2026-10-10T09:15:22.870111Z"
|
|
},
|
|
{
|
|
"type": "ConfigurationsReady",
|
|
"status": "True",
|
|
"lastTransitionTime": "2026-10-10T09:15:20.113005Z"
|
|
},
|
|
{
|
|
"type": "RoutesReady",
|
|
"status": "True",
|
|
"lastTransitionTime": "2026-10-10T09:15:22.870111Z"
|
|
}
|
|
],
|
|
"latestReadyRevisionName": "api-00003-xyz",
|
|
"latestCreatedRevisionName": "api-00003-xyz",
|
|
"traffic": [
|
|
{
|
|
"revisionName": "api-00003-xyz",
|
|
"percent": 100,
|
|
"latestRevision": true
|
|
}
|
|
],
|
|
"url": "https://api-abc123-ew.a.run.app",
|
|
"address": {
|
|
"url": "https://api-abc123-ew.a.run.app"
|
|
}
|
|
}
|
|
}
|
|
]
|