gpt4 book ai didi

azure - aks 无法创建 kubernetes 副本集

转载 作者:行者123 更新时间:2023-12-02 11:34:27 25 4
gpt4 key购买 nike

当尝试从 yaml 文件创建 kubernetes 副本集时,我总是在 AKS 上收到此错误:

kubectl create -f kubia-replicaset.yaml error: unable to recognize "kubia-replicaset.yaml": no matches for apps/, Kind=ReplicaSet

我尝试了几个不同的文件以及 K8s 文档中的示例,但都导致了此失败。创建 Pod 和 RC 有效

下面是 yaml 文件:

apiVersion: apps/v1beta2
kind: ReplicaSet
metadata:
name: kubia
spec:
replicas: 3
selector:
matchLabels:
app: kubia
template:
metadata:
labels:
app: kubia
spec:
containers:
- name: kubia
image: luksa/kubia

最佳答案

将 apps/v1beta2 更改为 apps/v1 对我有用。

关于azure - aks 无法创建 kubernetes 副本集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49665464/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com