Openshift/Kubernetes: disoriented by the various configuration files

时光毁灭记忆、已成空白 提交于 2019-12-08 10:52:44

问题


I'm learning openshift origin , in the master container I found a number of config files:

[root@openshift] cd /var/lib/origin
[root@openshift origin]# find . -name *kubeconfig
./openshift.local.config/node-localhost/node.kubeconfig
./openshift.local.config/master/admin.kubeconfig
./openshift.local.config/master/openshift-master.kubeconfig

[root@openshift origin]# find . -name *config.yaml
./openshift.local.config/node-localhost/node-config.yaml
./openshift.local.config/master/master-config.yaml

I found out these files also inspecting the origin container:

 $ docker inspect 671fb8df3752 | grep config
            "--master-config=/var/lib/origin/openshift.local.config/master/master-config.yaml",
            "--node-config=/var/lib/origin/openshift.local.config/node-localhost/node-config.yaml"
                "/var/lib/origin/openshift.local.config:/var/lib/origin/openshift.local.config:z",
                "Source": "/var/lib/origin/openshift.local.config",
                "Destination": "/var/lib/origin/openshift.local.config",
                "KUBECONFIG=/var/lib/origin/openshift.local.config/master/admin.kubeconfig",
                "--master-config=/var/lib/origin/openshift.local.config/master/master-config.yaml",
                "--node-config=/var/lib/origin/openshift.local.config/node-localhost/node-config.yaml"

Could you help me to schematize / summarize the role and use of each of these files?

Specifically when executing commands of this type:

oadm policy add-scc-to-group anyuid system:authenticated --config=/var/lib/origin/openshift.local.config/master/admin.kubeconfig

they must be directed to each of the configurations I have found or only to the specific one?

来源:https://stackoverflow.com/questions/48651767/openshift-kubernetes-disoriented-by-the-various-configuration-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!