我使用UI删除了一个群集,从那以后任何kubectl命令都会抛出此错误
kubectl获取服务
constructor(private _langService: LanguagesService) {
_langService.getLanguages() //We get an Observable<Array> object returned.
//So this is the observable's filter function:
.filter( this._filter3rdLanguage )
//The filter gets called only once and its comparing an observable object, not a language object.
//that's why nothing gets filtered:
.do( o => console.log(o) )
//If you filter the actual list instead of the observable object, you'll get it called several times.
//This is the Array's filter function.
.subscribe( list => this.languages = list.filter( this._filter3rdLanguage ) );
}
kubectl获取节点
_langService.getLanguages()
.map( list => list.filter(this._filter3rdLanguage) )
//see that this one IS filtered.
.do( list => console.log(list) )
.subscribe( list => this.languages = list );
不确定我的方框中是否有错误..在删除群集之前一切正常。
答案 0 :(得分:3)
删除群集后,主服务器将被删除,您将无法再进行连接。如果使用gcloud命令行工具删除,它将清除群集的kubeconfig条目(如果您没有任何其他条目,kubectl将尝试连接到localhost)。如果通过UI删除群集,则kubeconfig条目将保留,除非您可以自行清理它。