Open longfei-zhang opened 5 years ago
oh I see
https://kubernetes.io/blog/2019/07/18/api-deprecations-in-1-16/
DaemonSet, Deployment, StatefulSet, and ReplicaSet (in the extensions/v1beta1 and apps/v1beta2 API groups) Migrate to use the apps/v1 API, available since v1.9. Existing persisted data can be retrieved/updated via the apps/v1 API.
Now changed the deployment.yaml to the following, it's working fine.
[root@longfei-cd-test example]# cat deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: etcd-operator
spec:
selector:
matchLabels:
app: etcd-operator
replicas: 1
template:
metadata:
labels:
app: etcd-operator
spec:
containers:
- name: etcd-operator
image: quay.io/coreos/etcd-operator:v0.9.4
command:
- etcd-operator
# Uncomment to act for resources in all namespaces. More information in doc/user/clusterwide.md
#- -cluster-wide
env:
- name: MY_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
Here are my PR https://github.com/coreos/etcd-operator/pull/2127
---
+ apiVersion: apps/v1
- apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: ambassador
spec:
replicas: 3
+ selector:
+ matchLabels:
+ service: ambassador
template:
...
I have installed minikube then try to install etcd operator but got following error:
here is my kubectl version info: