Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zh] StatefulSet docs missing VolumeClaimTemplates information #46294

Closed
Vallenbo opened this issue May 9, 2024 · 10 comments
Closed

[zh] StatefulSet docs missing VolumeClaimTemplates information #46294

Vallenbo opened this issue May 9, 2024 · 10 comments
Labels
area/localization General issues or PRs related to localization language/zh Issues or PRs related to Chinese language lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. sig/docs Categorizes an issue or PR as relevant to SIG Docs. triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@Vallenbo
Copy link

Vallenbo commented May 9, 2024

volumeClaimTemplates:

  • metadata:
    name: www
    spec:
    accessModes: [ "ReadWriteOnce" ]
    resources:
    requests:
    storage: 1Gi

why?the volumeClaimTemplates word?

@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label May 9, 2024
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@stmcginnis
Copy link
Contributor

Could you expand on what you're looking for? Is there a specific page that has missing information or needs clarification?

@dipesh-rawat
Copy link
Member

/triage needs-information

@k8s-ci-robot k8s-ci-robot added the triage/needs-information Indicates an issue needs more information in order to work on it. label May 9, 2024
@Vallenbo
Copy link
Author

Vallenbo commented May 9, 2024

There is no information about the volumeClaimTemplates field in the demonstration of the example StatefulSet component (https://kubernetes.io/zh-cn/docs/concepts/workloads/controllers/statefulset/#using-statefulsets)in this link, and it is also incorrect to use it.
apiVersion: v1
kind: Service
metadata:
name: nginx
labels:
app: nginx
spec:
ports:

  • port: 80
    name: web
    clusterIP: None
    selector:
    app: nginx

apiVersion: apps/v1
kind: StatefulSet
metadata:
name: web
spec:
selector:
matchLabels:
app: nginx # 必须匹配 .spec.template.metadata.labels
serviceName: "nginx"
replicas: 3 # 默认值是 1
minReadySeconds: 10 # 默认值是 0
template:
metadata:
labels:
app: nginx # 必须匹配 .spec.selector.matchLabels
spec:
terminationGracePeriodSeconds: 10
containers:
- name: nginx
image: registry.k8s.io/nginx-slim:0.8
ports:
- containerPort: 80
name: web
volumeMounts:
- name: www
mountPath: /usr/share/nginx/html
volumeClaimTemplates:

  • metadata:
    name: www
    spec:
    accessModes: [ "ReadWriteOnce" ]
    storageClassName: "my-storage-class"
    resources:
    requests:
    storage: 1Gi

@stmcginnis
Copy link
Contributor

Thanks, that's helpful. It looks like some of the translation updates need to be done yet for ZH. That information is present in the EN docs: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#volume-claim-templates

/sig docs
/language zh
/area localization

@k8s-ci-robot k8s-ci-robot added sig/docs Categorizes an issue or PR as relevant to SIG Docs. language/zh Issues or PRs related to Chinese language area/localization General issues or PRs related to localization labels May 9, 2024
@stmcginnis
Copy link
Contributor

/retitle [zh] StatefulSet docs missing VolumeClaimTemplates information

@k8s-ci-robot k8s-ci-robot changed the title StatefulSet [zh] StatefulSet docs missing VolumeClaimTemplates information May 9, 2024
@tengqm
Copy link
Contributor

tengqm commented May 9, 2024

This page was faithfully translated from the English version.
The volumeClaimTemplates field is part of the spec for creating a volume.
See the API reference.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 8, 2024
@tengqm
Copy link
Contributor

tengqm commented Aug 18, 2024

/close

@k8s-ci-robot
Copy link
Contributor

@tengqm: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/localization General issues or PRs related to localization language/zh Issues or PRs related to Chinese language lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. sig/docs Categorizes an issue or PR as relevant to SIG Docs. triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

6 participants