Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MetaGer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
MetaGer
Commits
c9a9297d
Commit
c9a9297d
authored
4 years ago
by
Dominik Hebeler
Browse files
Options
Downloads
Patches
Plain Diff
added php-fpm deployment
parent
e197d43e
No related branches found
No related tags found
3 merge requests
!1671
Development
,
!1653
Development
,
!1650
Resolve "Modify Deployment to be valid for 1.16"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
chart/templates/deployment.yaml
+1
-69
1 addition, 69 deletions
chart/templates/deployment.yaml
chart/templates/mg-templates/php-fpm.yaml
+72
-0
72 additions, 0 deletions
chart/templates/mg-templates/php-fpm.yaml
with
73 additions
and
69 deletions
chart/templates/deployment.yaml
+
1
−
69
View file @
c9a9297d
...
...
@@ -45,73 +45,5 @@ spec:
imagePullSecrets
:
{{
toYaml .Values.image.secrets | indent 10
}}
containers
:
-
name
:
{{
.Chart.Name
}}
image
:
{{
template "imagename" .
}}
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
{{
- if .Values.application.secretName
}}
envFrom
:
-
secretRef
:
name
:
{{
.Values.application.secretName
}}
{{
- end
}}
env
:
{{
- if .Values.postgresql.managed
}}
-
name
:
POSTGRES_USER
valueFrom
:
secretKeyRef
:
name
:
app-postgres
key
:
username
-
name
:
POSTGRES_PASSWORD
valueFrom
:
secretKeyRef
:
name
:
app-postgres
key
:
password
-
name
:
POSTGRES_HOST
valueFrom
:
secretKeyRef
:
name
:
app-postgres
key
:
privateIP
{{
- end
}}
-
name
:
DATABASE_URL
value
:
{{
.Values.application.database_url | quote
}}
-
name
:
GITLAB_ENVIRONMENT_NAME
value
:
{{
.Values.gitlab.envName | quote
}}
-
name
:
GITLAB_ENVIRONMENT_URL
value
:
{{
.Values.gitlab.envURL | quote
}}
ports
:
-
name
:
"
{{
.Values.service.name
}}"
containerPort
:
{{
.Values.service.internalPort
}}
livenessProbe
:
{{
- if eq .Values.livenessProbe.probeType "httpGet"
}}
httpGet
:
path
:
{{
.Values.livenessProbe.path
}}
scheme
:
{{
.Values.livenessProbe.scheme
}}
port
:
{{
.Values.service.internalPort
}}
{{
- else if eq .Values.livenessProbe.probeType "tcpSocket"
}}
tcpSocket
:
port
:
{{
.Values.service.internalPort
}}
{{
- else if eq .Values.livenessProbe.probeType "exec"
}}
exec
:
command
:
{{
toYaml .Values.livenessProbe.command | indent 14
}}
{{
- end
}}
initialDelaySeconds
:
{{
.Values.livenessProbe.initialDelaySeconds
}}
timeoutSeconds
:
{{
.Values.livenessProbe.timeoutSeconds
}}
readinessProbe
:
{{
- if eq .Values.readinessProbe.probeType "httpGet"
}}
httpGet
:
path
:
{{
.Values.readinessProbe.path
}}
scheme
:
{{
.Values.readinessProbe.scheme
}}
port
:
{{
.Values.service.internalPort
}}
{{
- else if eq .Values.readinessProbe.probeType "tcpSocket"
}}
tcpSocket
:
port
:
{{
.Values.service.internalPort
}}
{{
- else if eq .Values.readinessProbe.probeType "exec"
}}
exec
:
command
:
{{
toYaml .Values.readinessProbe.command | indent 14
}}
{{
- end
}}
initialDelaySeconds
:
{{
.Values.readinessProbe.initialDelaySeconds
}}
timeoutSeconds
:
{{
.Values.readinessProbe.timeoutSeconds
}}
resources
:
{{
toYaml .Values.resources | indent 12
}}
-
{{
include "mg-templates.php-fpm.yaml" | indent 8
}}
{{
- end -
}}
This diff is collapsed.
Click to expand it.
chart/templates/mg-templates/php-fpm.yaml
0 → 100644
+
72
−
0
View file @
c9a9297d
name
:
{{
.Chart.Name
}}
-phpfpm
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.tag
}}"
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
{{
- if .Values.application.secretName
}}
envFrom
:
-
secretRef
:
name
:
{{
.Values.application.secretName
}}
{{
- end
}}
env
:
-
name
:
DATABASE_URL
value
:
{{
.Values.application.database_url | quote
}}
-
name
:
GITLAB_ENVIRONMENT_NAME
value
:
{{
.Values.gitlab.envName
}}
-
name
:
GITLAB_ENVIRONMENT_URL
value
:
{{
.Values.gitlab.envURL
}}
ports
:
-
name
:
"
{{
.Values.service.name
}}-phpfpm"
containerPort
:
9000
livenessProbe
:
tcpSocket
:
port
:
"
{{
.Values.service.name
}}-phpfpm"
initialDelaySeconds
:
{{
.Values.livenessProbe.initialDelaySeconds
}}
timeoutSeconds
:
{{
.Values.livenessProbe.timeoutSeconds
}}
readinessProbe
:
tcpSocket
:
port
:
"
{{
.Values.service.name
}}-phpfpm"
initialDelaySeconds
:
{{
.Values.readinessProbe.initialDelaySeconds
}}
timeoutSeconds
:
{{
.Values.readinessProbe.timeoutSeconds
}}
volumeMounts
:
-
name
:
mglogs-persistent-storage
mountPath
:
/html/storage/logs/metager
readOnly
:
false
-
name
:
env-files
mountPath
:
/root/.env
subPath
:
.env
readOnly
:
true
-
name
:
env-files
mountPath
:
/html/database/seeds/UsersSeeder.php
subPath
:
UsersSeeder.php
readOnly
:
true
-
name
:
env-files
mountPath
:
/html/config/spam.txt
subPath
:
spam.txt
readOnly
:
true
-
name
:
sumas
mountPath
:
/html/config/sumas.json
subPath
:
sumas.json
readOnly
:
true
-
name
:
sumas-en
mountPath
:
/html/config/sumasEn.json
subPath
:
sumasEn.json
readOnly
:
true
-
name
:
blacklist
mountPath
:
/html/config/blacklistUrl.txt
subPath
:
blacklistUrl.txt
readOnly
:
true
-
name
:
blacklist
mountPath
:
/html/config/blacklistDomains.txt
subPath
:
blacklistDomains.txt
readOnly
:
true
-
name
:
blacklist-ad
mountPath
:
/html/config/adBlacklistUrl.txt
subPath
:
adBlacklistUrl.txt
readOnly
:
true
-
name
:
blacklist-ad
mountPath
:
/html/config/adBlacklistDomains.txt
subPath
:
adBlacklistDomains.txt
readOnly
:
true
resources
:
requests
:
cpu
:
500m
memory
:
500m
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment