용기 편성 기술 - Kubernetes kubectl create secret tls 명령 상세 설명
3193 단어 쿠 베 넷 스Kubernetes
용기 편성 기술 - Kubernetes kubectl create secret tls 명령 상세 설명
create secret tls
주어진 (public / private) 공개 키 / 비밀 키 에서 TLS secret 만 들 기 。
공공 키 인증 서 는. PEM 인 코딩 과 지정 한 비밀 키 와 일치 해 야 합 니 다.
문법
$ tls NAME --cert=path/to/cert/file --key=path/to/key/file [--dry-run]
예시
지정 한 key 를 사용 하여 tles - secret 라 는 TLS secret 를 만 듭 니 다. :
kubectl create secret tls tls-secret --cert=path/to/tls.cert --key=path/to/tls.key
Flags
Name
Shorthand
Default
Usage
allow-missing-template-keys
true
If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.
cert
Path to PEM encoded public key certificate.
dry-run
false
If true, only print the object that would be sent, without sending it.
generator
secret-for-tls/v1
The name of the API generator to use.
key
Path to private key associated with given certificate.
no-headers
false
When using the default or custom-column output format, don't print headers (default print headers).
output
o
Output format. One of: json|yaml|wide|name|custom-columns=...|custom-columns-file=...|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See custom columns [http://kubernetes.io/docs/user-guide/kubectl-overview/#custom-columns], golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://kubernetes.io/docs/user-guide/jsonpath].
output-version
DEPRECATED: To use a specific API version, fully-qualify the resource, version, and group (for example: 'jobs.v1.batch/myjob').
save-config
false
If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.
schema-cache-dir
~/.kube/schema
If non-empty, load/store cached API schemas in this directory, default is '$HOME/.kube/schema'
show-all
a
false
When printing, show all resources (default hide terminated pods.)
show-labels
false
When printing, show all labels as the last column (default hide labels column)
sort-by
If non-empty, sort list types using this field specification. The field specification is expressed as a JSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPath expression must be an integer or a string.
template
Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].
validate
true
If true, use a schema to validate the input before sending it
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
k8s 배치 wordpressnginx 미 러 만 들 기 vi /etc/nginx/nginx.conf vi /etc/nginx/conf.d/localhost.conf 디 렉 터 리 만 들 기 미 러 제출 php 미 러 만 들 기 vi /etc/...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.