k8s api-versions no matches
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了k8s api-versions no matches相关的知识,希望对你有一定的参考价值。
参考技术A错误如下:
k8s用api version管理配置中的各种对象,例如 Deployment 等,可以在 Which Kubernetes apiVersion Should I Use? 中查阅相关api对应的api version。
也可以在本机利用如下命令查询,当前K8s所支持的api-version:
查询后发现当前K8s不支持"apps/v1beta2"。启动minikube时可以看到本机kubernates版本为1.16.2,也可以直接用 kubectl version 查看client和server的版本。
在 k8s官方文档 中发现v1beta2.Deployment已经被标记为 DEPRECATED , 应该使用api/v1代替。将apiVersions改为api/v1,pod起动成功。
no matching function transform?
http://stackoverflow.com/questions/19876746/stdtolower-and-visual-studio-2013
http://forums.codeguru.com/showthread.php?489969-no-matching-function-transform
std::tolower
is overloaded in C++, it‘s declared in <cctype>
as
int tolower(int);
and also in <locale>
as
template<CharT> CharT tolower(CharT, const locale&);
so when you say "std::tolower
" you get an ambiguous(模糊不清的) reference to an overloaded function.
- Why
::tolower
version is working?
When you include <cctype>
the one-argument overload is declared in namespace std
and mightalso be declared in the global namespace, depending on the compiler. If you include <ctype.h>
then it‘s guaranteed to be included in the global namespace, and ::tolower
will work (although note Dietmar‘s points about when it‘s not safe). The two-argument overload from <locale>
is never declared in the global namespace, so ::tolower
never refers to the two-argument overload.
2. Why
std::tolower
is not working in std::transform?
See above, it‘s an overloaded name.
以上是关于k8s api-versions no matches的主要内容,如果未能解决你的问题,请参考以下文章
k8s安装recognize “calico.yaml“: no matches for kind “PodDisruptionBudget“ in version “policy/v1“
k8s v1.22版本中Ingress配置:no matches for kind “Ingress“ in version “networking.k8s.io/v1beta1“
docker0: iptables: No chain/target/match by that name
云原生k8s集群命令行工具kubectl基础操作命令实践详解