Skip to content

add kubernetes deployment#160

Merged
aojea merged 1 commit into
google:mainfrom
aojea:autopudate
Jun 27, 2026
Merged

add kubernetes deployment#160
aojea merged 1 commit into
google:mainfrom
aojea:autopudate

Conversation

@aojea

@aojea aojea commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@aojea aojea merged commit e571551 into google:main Jun 27, 2026
13 checks passed

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a new "Production Kubernetes Deployment" guide and updates the documentation index and local testing guide to link to it. The reviewer feedback correctly points out that both the StatefulSet and Deployment YAML examples in the new guide are missing the required .spec.selector and template labels, which would cause validation failures in Kubernetes apps/v1.

Comment on lines +134 to +138
namespace: sam
spec:
serviceName: "sam-hub"
replicas: 3
template:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The StatefulSet manifest is missing the required .spec.selector field and the corresponding .spec.template.metadata.labels. In Kubernetes apps/v1, a StatefulSet will fail to validate and deploy without these fields.

Suggested change
namespace: sam
spec:
serviceName: "sam-hub"
replicas: 3
template:
spec:
serviceName: "sam-hub"
replicas: 3
selector:
matchLabels:
app: sam-hub
template:
metadata:
labels:
app: sam-hub
spec:

Comment on lines +216 to +219
spec:
replicas: 5
template:
spec:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The Deployment manifest is missing the required .spec.selector field and the corresponding .spec.template.metadata.labels. In Kubernetes apps/v1, a Deployment will fail to validate and deploy without these fields.

Suggested change
spec:
replicas: 5
template:
spec:
spec:
replicas: 5
selector:
matchLabels:
app: sam-node
template:
metadata:
labels:
app: sam-node
spec:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant