-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.yaml
81 lines (81 loc) · 1.99 KB
/
install.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
apiVersion: v1
kind: Secret
metadata:
name: argocd-github-release-generator
namespace: argocd
labels:
app.kubernetes.io/part-of: argocd
type: Opaque
data:
plugin.argocd-github-release-generator.token: ${ARGOCD_TOKEN}
plugin.argocd-github-release-generator.github_pat: ${GITHUB_PAT}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-github-release-generator
namespace: argocd
data:
token: "$argocd-github-release-generator:plugin.argocd-github-release-generator.token"
baseUrl: "http://argocd-github-release-generator.argocd.svc.cluster.local:8080"
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: argocd-github-release-generator
name: argocd-github-release-generator
namespace: argocd
spec:
replicas: 1
selector:
matchLabels:
app: argocd-github-release-generator
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
app: argocd-github-release-generator
spec:
containers:
- env:
- name: ARGOCD_TOKEN
valueFrom:
secretKeyRef:
key: plugin.argocd-github-release-generator.token
name: argocd-github-release-generator
- name: GITHUB_PAT
valueFrom:
secretKeyRef:
key: plugin.argocd-github-release-generator.github_pat
name: argocd-github-release-generator
image: ghcr.io/matipan/argocd-github-release-generator:v0.0.3
imagePullPolicy: IfNotPresent
name: argocd-github-release-generator
ports:
- containerPort: 8080
resources:
limits:
cpu: 150m
memory: 100Mi
requests:
cpu: 150m
memory: 100Mi
---
apiVersion: v1
kind: Service
metadata:
name: argocd-github-release-generator
namespace: argocd
spec:
type: ClusterIP
selector:
app: argocd-github-release-generator
ports:
- port: 8080
name: http
targetPort: 8080