Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kszkepzes-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
KSZK
DevTeam
kszkepzes
old
kszkepzes-backend
Commits
08f6c840
Commit
08f6c840
authored
1 year ago
by
Pomucz Tamás András
Browse files
Options
Downloads
Patches
Plain Diff
k8s fixes
parent
1f17d0c5
Branches
Branches containing commit
Tags
v1.8.0
Tags containing commit
1 merge request
!15
Many stuff
Pipeline
#50423
passed with warnings
1 year ago
Stage: Test and Flake8
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
k8s/templates/backend.yaml
+0
-65
0 additions, 65 deletions
k8s/templates/backend.yaml
k8s/templates/minio.yaml
+1
-1
1 addition, 1 deletion
k8s/templates/minio.yaml
with
1 addition
and
66 deletions
k8s/templates/backend.yaml
+
0
−
65
View file @
08f6c840
...
@@ -15,29 +15,10 @@ spec:
...
@@ -15,29 +15,10 @@ spec:
app
:
{{
.Release.Name
}}
-backend
app
:
{{
.Release.Name
}}
-backend
spec
:
spec
:
initContainers
:
initContainers
:
-
name
:
volume-permission-fix
image
:
busybox
command
:
-
"
sh"
-
"
-c"
-
|
chown -R 1000:1000 /mediafiles
chown -R 1000:1000 /staticfiles
volumeMounts
:
-
name
:
kszkepzes-media-volume
mountPath
:
/mediafiles
-
name
:
kszkepzes-static-volume
mountPath
:
/staticfiles
resources
:
limits
:
memory
:
30Mi
-
name
:
kszkepzes-backend-collectstatic
-
name
:
kszkepzes-backend-collectstatic
image
:
{{
.Values.backend.image
}}
:{{ .Values.backend.tag }}
image
:
{{
.Values.backend.image
}}
:{{ .Values.backend.tag }}
imagePullPolicy
:
"
Always"
imagePullPolicy
:
"
Always"
command
:
[
"
python"
,
"
manage.py"
,
"
collectstatic"
,
"
--noinput"
]
command
:
[
"
python"
,
"
manage.py"
,
"
collectstatic"
,
"
--noinput"
]
volumeMounts
:
-
mountPath
:
/home/app/kszkepzes-backend/staticfiles
name
:
kszkepzes-static-volume
envFrom
:
envFrom
:
-
configMapRef
:
-
configMapRef
:
name
:
{{
.Release.Name
}}
-config
name
:
{{
.Release.Name
}}
-config
...
@@ -62,11 +43,6 @@ spec:
...
@@ -62,11 +43,6 @@ spec:
-
name
:
kszkepzes-backend
-
name
:
kszkepzes-backend
image
:
{{
.Values.backend.image
}}
:{{ .Values.backend.tag }}
image
:
{{
.Values.backend.image
}}
:{{ .Values.backend.tag }}
imagePullPolicy
:
"
Always"
imagePullPolicy
:
"
Always"
volumeMounts
:
-
mountPath
:
/home/app/kszkepzes-backend/mediafiles
name
:
kszkepzes-media-volume
-
mountPath
:
/home/app/kszkepzes-backend/staticfiles
name
:
kszkepzes-static-volume
ports
:
ports
:
-
containerPort
:
8000
-
containerPort
:
8000
envFrom
:
envFrom
:
...
@@ -101,11 +77,6 @@ spec:
...
@@ -101,11 +77,6 @@ spec:
runAsGroup
:
1000
runAsGroup
:
1000
image
:
halverneus/static-file-server:latest
image
:
halverneus/static-file-server:latest
imagePullPolicy
:
"
Always"
imagePullPolicy
:
"
Always"
volumeMounts
:
-
mountPath
:
/var/www/html/mediafiles
name
:
kszkepzes-media-volume
-
mountPath
:
/var/www/html/staticfiles
name
:
kszkepzes-static-volume
ports
:
ports
:
-
containerPort
:
8080
-
containerPort
:
8080
env
:
env
:
...
@@ -121,13 +92,6 @@ spec:
...
@@ -121,13 +92,6 @@ spec:
limits
:
limits
:
memory
:
200Mi
memory
:
200Mi
cpu
:
"
2"
cpu
:
"
2"
volumes
:
-
name
:
kszkepzes-media-volume
persistentVolumeClaim
:
claimName
:
{{
.Release.Name
}}
-media-pv-claim
-
name
:
kszkepzes-static-volume
persistentVolumeClaim
:
claimName
:
{{
.Release.Name
}}
-static-pv-claim
imagePullSecrets
:
imagePullSecrets
:
-
name
:
{{
.Values.backend.imagePullSecretName
}}
-
name
:
{{
.Values.backend.imagePullSecretName
}}
---
---
...
@@ -188,35 +152,6 @@ spec:
...
@@ -188,35 +152,6 @@ spec:
---
---
apiVersion
:
v1
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
labels
:
app
:
{{
.Release.Name
}}
name
:
{{
.Release.Name
}}
-media-pv-claim
spec
:
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
10Gi
storageClassName
:
{{
.Values.backend.storageClassName
}}
---
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
labels
:
app
:
{{
.Release.Name
}}
name
:
{{
.Release.Name
}}
-static-pv-claim
spec
:
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
1Gi
storageClassName
:
{{
.Values.backend.storageClassName
}}
---
apiVersion
:
v1
kind
:
ConfigMap
kind
:
ConfigMap
metadata
:
metadata
:
name
:
{{
.Release.Name
}}
-config
name
:
{{
.Release.Name
}}
-config
...
...
This diff is collapsed.
Click to expand it.
k8s/templates/minio.yaml
+
1
−
1
View file @
08f6c840
...
@@ -38,7 +38,7 @@ spec:
...
@@ -38,7 +38,7 @@ spec:
name
:
{{
.Release.Name
}}
-minio-credentials
name
:
{{
.Release.Name
}}
-minio-credentials
key
:
MINIO_ROOT_PASSWORD
key
:
MINIO_ROOT_PASSWORD
volumeMounts
:
volumeMounts
:
-
mountPath
:
/var/lib/minioql
/data
-
mountPath
:
/data
name
:
kszkepzes-minio-volume
name
:
kszkepzes-minio-volume
resources
:
resources
:
requests
:
requests
:
...
...
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