当前位置:网站首页>Troubleshooting: kubectl reports an error validationerror: unknown field \u00a0
Troubleshooting: kubectl reports an error validationerror: unknown field \u00a0
2022-07-02 18:44:00 【Migrant worker Lao Wang】
Blog home page :https://tomcat.blog.csdn.net
Blogger's nickname : Lao Wang of migrant workers
Main areas :Java、Linux、K8S
We look forward to your attention, praise and collection comments
Fault details
Recently k8s Through the cluster kubectl apply -f When deploying resources , Encountered the following error . It was quickly solved at that time . Now record the faults and troubleshooting methods , To facilitate developers who encounter the same error .
error: error validating “nfs.yaml”: error validating data: [ValidationError(ServiceAccount): unknown field “\u00a0\u00a0name” in io.k8s.api.core.v1.ServiceAccount, ValidationError(ServiceAccount): unknown field “\u00a0\u00a0namespace” in io.k8s.api.core.v1.ServiceAccount]; if you choose to ignore these errors, turn validation off with --validate=false

The analysis reason
The error message has been clearly described , Because name Before “\u00a0\u00a0” Caused by two characters . We know through inquiry ,\u00a0 stay utf-8 In the encoding , Represents an uninterrupted space , Mainly used in office in , Let a word not wrap at the end . stay word in , Can pass ctrlshiftspace Input .
We are IDEA Open... In the editor nfs.yaml file , Then look for spaces , No match found name And all white space characters representing indentation . It also verifies the prompt message of error .

use Sublime Text open , It is easier to find differences :
It turns out the yaml The contents of the file are from a word Files are copied directly , Inadvertently, it contains some \u00a0 This special white space character .
Solve the problem
The solution is simple , Directly in the editor \u00a0 Replace with ordinary spaces ,IDEA,Sublime Text Can be easily realized .

After replacement, it can be deployed smoothly .

If you want to reprint , Please indicate the source of this article : Migrant worker Lao Wang's CSDN Blog https://blog.csdn.net/monarch91 .
边栏推荐
- Paddlepaddle 28 build an automatic coder based on convolution
- sql训练2
- 再放宽!这些应届生,可直接落户上海
- 如何优雅的写 Controller 层代码?
- 快速排序基本思路(通俗易懂+例子)「建议收藏」
- [Yugong series] July 2022 go teaching course 001 introduction to go language premise
- 【每日一题】第一天
- Web版3D可视化工具,程序员应该知道的97件事,AI前沿论文 | 资讯日报 #2022.07.01
- 工业软件讲堂-三维CAD设计软件的核心技术解析----讲坛第二次讲座
- Websocket of Web real-time communication technology
猜你喜欢

Comprendre complètement le tutoriel de traitement de Point Cloud basé sur open3d!

Leetcode interview question 17.04 Vanishing numbers

Redis(7)----数据库与过期键

开源物联网平台ThingsBoard的安装

Leetcode interview question 16.11 Diving board

Leetcode 面试题 16.15. 珠玑妙算

Wechat applet video sharing platform system graduation design completion (5) assignment

Ue4 dessine un cercle avec une ligne de contour

CDN acceleration and breaking J anti-theft chain function
![[Northwestern Polytechnic University] information sharing of the first and second postgraduate examinations](/img/15/298ea6f7367741e1e085007c498e51.jpg)
[Northwestern Polytechnic University] information sharing of the first and second postgraduate examinations
随机推荐
SLAM|如何时间戳对齐?
Which securities company has a low, safe and reliable online account opening commission
NM02-独立于总线协议的NM模块调用序列图及代码解释
饭卡 HDU2546
Basic idea of quick sorting (easy to understand + examples) "suggestions collection"
Wechat applet video sharing platform system graduation design (2) applet function
Is it safe to buy funds on Alipay account
Paddlepaddle 28 build an automatic coder based on convolution
[Yugong series] July 2022 go teaching course 001 introduction to go language premise
故障排查:kubectl报错ValidationError: unknown field \u00a0
Chrome 正式支持 MathML,默认在 Chromium Dev 105 中启用
Chrome officially supports MathML, which is enabled in chromium dev 105 by default
Leetcode 面试题 17.01. 不用加号的加法
距离度量 —— 杰卡德距离(Jaccard Distance)
The difference between promise and observable
科技公司不同人对Bug的反应 | 每日趣闻
“栈”的典型应用—表达式求值(C语言实现)
揭秘得物客服IM全链路通信过程
谷歌官方回应:我们没有放弃TensorFlow,未来与JAX并肩发展
The second bullet of AI development and debugging series: the exploration journey of multi machine distributed debugging
