forked from gitops-tools/image-updater
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
46 lines (46 loc) · 1.03 KB
/
deployment.yaml
File metadata and controls
46 lines (46 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
apiVersion: apps/v1
kind: Deployment
metadata:
name: image-hooks-http
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: image-hooks-http
template:
metadata:
labels:
app.kubernetes.io/name: image-hooks-http
spec:
containers:
- name: image-hooks-http
image: bigkevmcd/image-hooks:latest
imagePullPolicy: Always
args: ["http", "--parser", "docker"]
volumeMounts:
- name: config-volume
mountPath: /etc/image-hooks
env:
- name: AUTH_TOKEN
valueFrom:
secretKeyRef:
name: image-hooks-secret
key: token
volumes:
- name: config-volume
configMap:
name: image-hooks-config
---
apiVersion: v1
kind: Service
metadata:
name: image-hooks-http
namespace: default
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: image-hooks-http
ports:
- protocol: TCP
port: 8080