Skip to content

Commit

Permalink
Issue yuriatgoogle#3: prometheus-demo.yaml uses obsolete apiVersion
Browse files Browse the repository at this point in the history
Upped apiVersion to apps/v1 and added spec.selector section. File now loads and works on Kubernetes 1.17.

Signed-off-by: Rob Thorne <[email protected]>
  • Loading branch information
torenware committed Apr 24, 2020
1 parent 68d0da2 commit 269cafc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kubernetes/prometheus-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: prometheus-deployment
namespace: prometheus
spec:
replicas: 1
selector:
matchLabels:
app: prometheus-server
template:
metadata:
labels:
Expand All @@ -30,4 +33,4 @@ spec:
name: prometheus-server-conf

- name: prometheus-storage-volume
emptyDir: {}
emptyDir: {}

0 comments on commit 269cafc

Please sign in to comment.