-
Notifications
You must be signed in to change notification settings - Fork 0
/
verdaccio.yml
122 lines (122 loc) · 2.59 KB
/
verdaccio.yml
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
apiVersion: v1
kind: Template
metadata:
name: npm-registry
objects:
- apiVersion: v1
kind: Route
metadata:
labels:
app: ${app}
external-exposed: 'true'
name: ${app}
namespace: ${project}
spec:
host: ${hostname}
port:
targetPort: 4873-tcp
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
to:
kind: Service
name: ${app}
weight: 100
wildcardPolicy: None
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: ${app}
name: ${app}
namespace: ${project}
spec:
replicas: ${{replicas}}
selector:
app: ${app}
deploymentconfig: ${app}
strategy:
activeDeadlineSeconds: 21600
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
labels:
app: ${app}
deploymentconfig: ${app}
spec:
containers:
- image: verdaccio/verdaccio
name: ${app}
ports:
- containerPort: 4873
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /verdaccio/storage
name: "volume-${app}-persistent-storage"
imagePullPolicy: Always
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext:
supplementalGroups:
- 10000003
terminationGracePeriodSeconds: 30
volumes:
- name: volume-${app}-persistent-storage
persistentVolumeClaim:
claimName: ${app}-persistent-volume
test: false
- apiVersion: v1
kind: Service
metadata:
labels:
app: ${app}
name: ${app}
namespace: ${project}
spec:
ports:
- name: 4873-tcp
port: 4873
protocol: TCP
targetPort: 4873
selector:
app: ${app}
deploymentconfig: ${app}
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ${app}-persistent-volume
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: ${volume_capacity}
parameters:
- description: Project Name
name: project
required: true
- description: Application name
name: app
required: true
- description: number of replicas
name: replicas
value: "1"
required: false
- name: volume_capacity
required: true
value: 1Gi
- name: hostname
required: true