Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Commit

Permalink
docs: add required fields to operator deployment
Browse files Browse the repository at this point in the history
kubectl create fails on modern k8s versions with error that label is
missing and apiVersion is unknown
  • Loading branch information
Kevin Kelani committed Oct 24, 2019
1 parent 8347d27 commit bd69e89
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions example/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: etcd-operator
spec:
selector:
matchLabels:
app: etcd-operator
replicas: 1
template:
metadata:
labels:
name: etcd-operator
app: etcd-operator
spec:
containers:
- name: etcd-operator
Expand Down

0 comments on commit bd69e89

Please sign in to comment.