956dcf8cd6a2eee39c6637d6607a0c10ece7d971
There are a couple awesome enhancements that would benefit from being documented here: 1. `spec.nodeName` for obtaining the host name 2. `spec.serviceAccountName` for obtaining the name of the service account the pod is running under Right now these enhancements are documented only in a couple of issues and pull requests: 1. https://github.com/kubernetes/kubernetes/pull/27880 2. https://github.com/kubernetes/kubernetes/issues/24657 3. https://github.com/kubernetes/kubernetes/issues/21317 I have verified the functionality in the latest codebase: 1. https://github.com/kubernetes/kubernetes/blob/master/pkg/api/v1/conversion.go#L200 Also updating downward-api/dapi-pod.yaml to add a concrete example.
Instructions for Contributing to the Kubernetes Documentation
Welcome! We are very pleased you want to contribute to the Kubernetes documentation.
You can click the Fork button in the upper-right area of the screen to create a copy of this repository in your GitHub account called a fork. Make any changes you want in your fork, and when you are ready to send those changes to us, go to your fork and create a new pull request to let us know about it.
For more information about contributing to the Kubernetes documentation, see:
- Contributing to the Kubernetes Documentation
- Creating a Documentation Pull Request
- Writing a New Topic
- Staging Your Documentation Changes
- Using Page Templates
- Documentation Style Guide
Thank you!
Kubernetes thrives on community participation, and we really appreciate your contributions to our site and our documentation!
Languages
HTML
78.8%
CSS
9.6%
JavaScript
5%
Go
2.4%
Python
2.1%
Other
2.1%