Skip to content

Commit

Permalink
Fix Docs: Change Imagepull policy to IfNotpresent / Add loki-canary b…
Browse files Browse the repository at this point in the history
…ase manifests (#1053)
  • Loading branch information
flouthoc authored and cyriltovena committed Sep 25, 2019
1 parent 778c0b6 commit f755c59
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/canary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ $ docker pull grafana/loki-canary:v0.2.0
To run on Kubernetes, you can do something simple like:

`kubectl run loki-canary --generator=run-pod/v1
--image=grafana/loki-canary:latest --restart=Never --image-pull-policy=Never
--image=grafana/loki-canary:latest --restart=Never --image-pull-policy=IfNotPresent
--labels=name=loki-canary -- -addr=loki:3100`

Or you can do something more complex like deploy it as a daemonset, there is a
Expand Down
42 changes: 42 additions & 0 deletions docs/canary/loki-canary-daemonset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
kind: DaemonSet
apiVersion: extensions/v1beta1
metadata:
labels:
app: loki-canary
name: loki-canary
name: loki-canary
spec:
template:
metadata:
name: loki-canary
labels:
app: loki-canary
spec:
containers:
- args:
- -addr=loki:3100
image: grafana/loki-canary:latest
imagePullPolicy: IfNotPresent
name: loki-canary
resources: {}
---
apiVersion: v1
kind: Service
metadata:
name: loki-canary
labels:
app: loki-canary
spec:
type: ClusterIP
selector:
app: loki-canary
ports:
- name: metrics
protocol: TCP
port: 3500
targetPort: 3500




36 changes: 36 additions & 0 deletions docs/canary/loki-canary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
apiVersion: v1
kind: Pod
metadata:
labels:
app: loki-canary
name: loki-canary
name: loki-canary
spec:
containers:
- args:
- -addr=loki:3100
image: grafana/loki-canary:latest
imagePullPolicy: IfNotPresent
name: loki-canary
resources: {}
---
apiVersion: v1
kind: Service
metadata:
name: loki-canary
labels:
app: loki-canary
spec:
type: ClusterIP
selector:
app: loki-canary
ports:
- name: metrics
protocol: TCP
port: 3500
targetPort: 3500




0 comments on commit f755c59

Please sign in to comment.