Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
是否有命令列出所有kubernetes集群';的配置文件_Kubernetes_Google Cloud Platform_Google Kubernetes Engine_Istio - Fatal编程技术网

是否有命令列出所有kubernetes集群';的配置文件

是否有命令列出所有kubernetes集群';的配置文件,kubernetes,google-cloud-platform,google-kubernetes-engine,istio,Kubernetes,Google Cloud Platform,Google Kubernetes Engine,Istio,我有一个使用Istio的Kubernetes集群,我需要调试一个问题。我需要查看正在使用的所有配置文件。我想从集群中删除某些配置,但我不确定运行的是什么 例如,我可以部署一个配置 kubectl应用-f config1.yaml 我需要一个所有已部署配置的列表,如“config1”。是否存在命令,是否有人可以提供该命令 在Istio的上下文中,并应用于路由/网络,有6个对象: # kubectl api-resources | grep networking.istio destinationr

我有一个使用Istio的Kubernetes集群,我需要调试一个问题。我需要查看正在使用的所有配置文件。我想从集群中删除某些配置,但我不确定运行的是什么

例如,我可以部署一个配置
kubectl应用-f config1.yaml


我需要一个所有已部署配置的列表,如“config1”。是否存在命令,是否有人可以提供该命令

在Istio的上下文中,并应用于路由/网络,有6个对象:

# kubectl api-resources | grep networking.istio
destinationrules                  dr           networking.istio.io            true         DestinationRule
envoyfilters                                   networking.istio.io            true         EnvoyFilter
gateways                          gw           networking.istio.io            true         Gateway
serviceentries                    se           networking.istio.io            true         ServiceEntry
sidecars                                       networking.istio.io            true         Sidecar
virtualservices                   vs           networking.istio.io            true         VirtualService
因此,要获取所有Istio对象,可以执行以下操作:

kubectl获取dr、特使过滤器、gw、se、侧车、vs-oyaml-n名称空间


——在Istio上下文中,应用于路由/网络的所有名称空间都有6个对象:

# kubectl api-resources | grep networking.istio
destinationrules                  dr           networking.istio.io            true         DestinationRule
envoyfilters                                   networking.istio.io            true         EnvoyFilter
gateways                          gw           networking.istio.io            true         Gateway
serviceentries                    se           networking.istio.io            true         ServiceEntry
sidecars                                       networking.istio.io            true         Sidecar
virtualservices                   vs           networking.istio.io            true         VirtualService
因此,要获取所有Istio对象,可以执行以下操作:

kubectl获取dr、特使过滤器、gw、se、侧车、vs-oyaml-n名称空间


或者
--所有名称空间

在这种情况下,config1可能是一个包含一个或多个kubernetes yaml文件的文件夹。您需要知道您正在寻找哪种类型的对象。@coderanger在此上下文中,我应该编写kubectl apply-f config1.Yaml其中包含什么类型的对象?在我的一些Yaml文件中定义的类型有网关、服务、虚拟服务。我想知道所有应用的yaml文件。只是猜测一下,也许
kubectl gel all--all namespaces=true-o yaml
可以做到。在这种情况下,config1可能是一个包含一个或多个kubernetes yaml文件的文件夹。您需要知道您正在寻找哪种类型的对象。@coderanger在此上下文中,我应该编写kubectl apply-f config1.Yaml其中包含什么类型的对象?在我的一些Yaml文件中定义的类型有网关、服务、虚拟服务。我想知道所有应用的yaml文件。只是猜测一下,也许
kubectl-gel-all--all namespaces=true-o yaml
可以做到这一点。