-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvalues.yaml
168 lines (151 loc) · 4.33 KB
/
values.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
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
---
# Default values for scancodeio.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
scancode:
database: scancode-db
username: scancode-user
# change default password
password: scancode-pwd
# change default password
postgresPassword: scancode-admin-pwd
# change default secret key
SECRET_KEY: sBWLZ0ryiaO15842p0yMS//Zhh7K66wwxn0MmPLwI7nfRPLe/Y
# change default password
SCANCODEIO_REDIS_PASSWORD: scancode-redis-pwd
replicaCount: 1
image:
repository: nginx
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
nameOverride: ""
fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: false
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname
# template
name: ""
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
ingress:
enabled: false
annotations: {}
hosts:
- host: chart-example.local
paths: []
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
resources: {}
# We usually recommend not to specify default resources and to leave this
# as a conscious choice for the user. This also increases chances charts
# run on environments with little resources, such as Minikube.
# If you do want to specify resources, uncomment the following
# lines, adjust them as necessary,
# and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
postgresql:
auth:
username: scancode-user
database: scancode-db
existingSecret: scancode-secret
redis:
architecture: standalone
auth:
enabled: true
existingSecret: scancode-secret
existingSecretPasswordKey: SCANCODEIO_REDIS_PASSWORD
nginx:
## @param extraVolumes Array to add extra volumes
##
# extraVolumes:
# - name: staticsite
# hostPath:
# path: /data/static/
# type: Directory
service:
type: NodePort
extraVolumes:
- name: "{{ .Release.Name }}-staticsite"
persistentVolumeClaim:
claimName: "{{ .Release.Name }}-staticsite"
# @param extraVolumeMounts Array to add extra mount
#
extraVolumeMounts:
- mountPath: /static
name: "{{ .Release.Name }}-staticsite"
## @param initContainers Extra init containers
##
initContainers:
- name: populate-static
image: eeproton/scancodeio_web
command: ['/bin/sh']
args:
- '-c'
- "find /static/ -mindepth 1 -maxdepth 1 -type d -delete && \
mkdir -p /static/scancodeio /static/scancodeio-static && \
cp -r /var/scancodeio/static/ /static/scancodeio && \
cp -r /usr/local/lib/python3.9/site-packages/rest_framework/static/ \
/static/scancodeio-static && \
cp -r \
/usr/local/lib/python3.9/site-packages/django/contrib/admin/static/ \
/static/scancodeio-static"
volumeMounts:
- mountPath: /static
name: "{{ .Release.Name }}-staticsite"
## @param serverBlock Custom server block to be added to NGINX configuration
serverBlock: |-
server {
listen 0.0.0.0:8080;
root /app;
location / {
proxy_pass http://{{ .Release.Name }}-scancodeio-web:8000/;
proxy_redirect off;
client_max_body_size 10G;
proxy_read_timeout 600s;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
}
location /static/admin/ {
alias /static/scancodeio-static/static/admin/;
}
location /static/rest_framework {
alias /static/scancodeio-static/static/rest_framework;
}
location /static/ {
alias /static/scancodeio/static/;
}
location /status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
}