etcd TLS certificate not properly configured This product is not supported for your selected
Datadog site . (
).
このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、
お気軽にご連絡ください 。
Id: kubernetes-etcd-tls-certificate-not-properly-configured
Platform: Kubernetes
Severity: Medium
Category: Networking and Firewall
Learn More Description When using kube-apiserver, the --etcd-certfile and --etcd-keyfile flags should be set. The rule checks containers and initContainers for containers whose command includes kube-apiserver and reports a MissingAttribute issue when either flag is not defined.
Compliant Code Examples apiVersion : v1
kind : Pod
metadata :
name : command-demo
labels :
purpose : demonstrate-command
spec :
containers :
- name : command-demo-container
image : gcr.io/google_containers/kube-apiserver-amd64:v1.6.0
command : [ "kube-apiserver" ]
args : [ "--etcd-keyfile=/path/to/key/file.key" , "--etcd-certfile=/path/to/cert/file.crt" ]
restartPolicy : OnFailure
apiVersion : v1
kind : Pod
metadata :
name : command-demo
labels :
purpose : demonstrate-command
spec :
containers :
- name : command-demo-container
image : gcr.io/google_containers/kube-apiserver-amd64:v1.6.0
command : [ "kube-apiserver" , "--etcd-keyfile=/path/to/key/file.key" , "--etcd-certfile=/path/to/cert/file.crt" ]
args : []
restartPolicy : OnFailure
Non-Compliant Code Examples apiVersion : v1
kind : Pod
metadata :
name : command-demo
labels :
purpose : demonstrate-command
spec :
containers :
- name : command-demo-container
image : gcr.io/google_containers/kube-apiserver-amd64:v1.6.0
command : [ "kube-apiserver" ]
args : [ "--etcd-keyfile=/path/to/key/file.key" ]
restartPolicy : OnFailure
apiVersion : v1
kind : Pod
metadata :
name : command-demo
labels :
purpose : demonstrate-command
spec :
containers :
- name : command-demo-container
image : gcr.io/google_containers/kube-apiserver-amd64:v1.6.0
command : [ "kube-apiserver" ]
args : [ "--etcd-certfile=/path/to/cert/file.crt" ]
restartPolicy : OnFailure