-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnode.yaml
36 lines (36 loc) · 1.3 KB
/
node.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
# POD with npm. Define "node" as agent label to use this POD in your pipeline
# This POD inherits from 'pipeline-base-container', which results in parallel deployment of all containers.
# With this, all containers, that are defined under 'pipeline-base-container' can also be used in the pipeline.
- name: "node"
serviceAccount: "{{ .Base.DeploymentName }}-agent"
instanceCap: 10
idleMinutes: 0
slaveConnectTimeout: "500"
label: "node"
inheritFrom: "pipeline-base-container"
imagePullSecrets:
- name: {{ .JCasc.CredentialIDs.DockerRegistryCredentialsID }}
containers:
- name: "node"
image: "node:latest"
privileged: false
alwaysPullImage: true
workingDir: "/home/jenkins/agent"
runAsUser: "1000"
runAsGroup: "1000"
command: ""
args: ""
ttyEnabled: true
resourceRequestCpu: "500m"
resourceLimitCpu: "2000m"
resourceRequestMemory: "128Mi"
resourceLimitMemory: "2Gi"
envVars:
- secretEnvVar:
key: 'NPM_USERNAME'
secretName: '{{ .JCasc.CredentialIDs.NpmRepositorySecretsCredentialsID }}'
secretKey: 'username'
- secretEnvVar:
key: 'NPM_PASSWORD'
secretName: '{{ .JCasc.CredentialIDs.NpmRepositorySecretsCredentialsID }}'
secretKey: 'password'