当前位置:网站首页>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 .
边栏推荐
- How to use PS to extract image color and analyze color matching
- Leetcode(81)——搜索旋转排序数组 II
- 链游系统开发(Unity3D链游开发详情)丨链游开发成熟技术源码
- 300+篇文献!一文详解基于Transformer的多模态学习最新进展
- “栈”的典型应用—表达式求值(C语言实现)
- Web实时通信技术之Websocket
- MySQL about only_ full_ group_ By limit
- 夜神模擬器+Fiddler抓包測試App
- Wechat applet video sharing platform system graduation design (2) applet function
- Iframe nesting details
猜你喜欢

NM01-独立于总线协议的NM模块功能概述与API定义
![[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

呆错图床系统源码图片CDN加速与破J防盗链功能

Leetcode interview question 16.11 Diving board

Responses of different people in technology companies to bugs | daily anecdotes

300+ documents! This article explains the latest progress of multimodal learning based on transformer

Web version 3D visualization tool, 97 things programmers should know, AI frontier paper | information daily # 2022.07.01

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

文字编辑器 希望有错误的句子用红色标红,文字编辑器用了markdown

Leetcode 面试题 17.04. 消失的数字
随机推荐
paddlepaddle 28 搭建基于卷积的自动编码机
iptable端口重定向 MASQUERADE[通俗易懂]
How to set vscode to delete the whole line shortcut key?
exness深度好文:动性系列-黄金流动性实例分析(五)
NM02-独立于总线协议的NM模块调用序列图及代码解释
Night God simulator +fiddler packet capture test app
@Component 拿不到dao层
Chrome 正式支持 MathML,默认在 Chromium Dev 105 中启用
Web version 3D visualization tool, 97 things programmers should know, AI frontier paper | information daily # 2022.07.01
Unity learning shader notes [82] black and white processing of enhanced single channel color rendering
服务器php环境搭建教程,PHP服务端环境搭建图文详解
呆错图床系统源码图片CDN加速与破J防盗链功能
Wechat applet video sharing platform system graduation design completion (8) graduation design thesis template
Summary of fun free GM games
SteamOS 3.3 Beta 发布,Steam Deck 中文键盘终于来了
Leetcode interview question 16.17 Continuous sequence
Basic idea of quick sorting (easy to understand + examples) "suggestions collection"
Server PHP environment building tutorial, PHP server environment building graphic explanation
【愚公系列】2022年07月 Go教学课程 001-Go语言前提简介
Web版3D可视化工具,程序员应该知道的97件事,AI前沿论文 | 资讯日报 #2022.07.01
