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
6597d536
Commit
6597d536
authored
4 years ago
by
Rafael László
Browse files
Options
Downloads
Plain Diff
Merge branch 'tormakris-master-
patch-06379
' into 'master'
update static files as well See merge request
!7
parents
4ce33832
18454628
No related branches found
Branches containing commit
Tags
1.0.8
Tags containing commit
1 merge request
!7
update static files as well
Pipeline
#5958
passed
4 years ago
Stage: Test and Flake8
Stage: Docker Build
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
k8s/deployment.yml
+56
-0
56 additions, 0 deletions
k8s/deployment.yml
with
56 additions
and
0 deletions
k8s/deployment.yml
+
56
−
0
View file @
6597d536
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
apache-static
namespace
:
devteam-kszk-bme-hu
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
apache-kszkepzes
template
:
metadata
:
labels
:
app
:
apache-kszkepzes
spec
:
initContainers
:
-
name
:
volume-mount-hack
image
:
busybox
command
:
[
'
sh'
,
'
-c'
,
'
chown
-R
1000:1000
/staticfiles'
]
volumeMounts
:
-
name
:
kszkepzes-static-volume
mountPath
:
/staticfiles
-
name
:
kszkepzes-backend-collectstatic
image
:
registry.kszk.bme.hu/kszk/devteam/kszkepzes-backend:##IMAGETAG##
imagePullPolicy
:
'
Always'
command
:
[
'
python'
,
'
manage.py'
,
'
collectstatic'
,
'
--noinput'
]
volumeMounts
:
-
mountPath
:
/home/app/kszkepzes-backend/staticfiles
name
:
kszkepzes-static-volume
envFrom
:
-
configMapRef
:
name
:
kszkepzes-config
-
secretRef
:
name
:
kszkepzes-secret-config
-
name
:
volume-mount-hack-backwards
image
:
busybox
command
:
[
'
sh'
,
'
-c'
,
'
chown
-R
0:0
/staticfiles'
]
volumeMounts
:
-
name
:
kszkepzes-static-volume
mountPath
:
/staticfiles
containers
:
-
name
:
apache-kszkepzes
image
:
httpd:2
imagePullPolicy
:
'
Always'
volumeMounts
:
-
mountPath
:
/usr/local/apache2/htdocs/staticfiles
name
:
kszkepzes-static-volume
ports
:
-
containerPort
:
80
volumes
:
-
name
:
kszkepzes-static-volume
persistentVolumeClaim
:
claimName
:
kszkepzes-static-pv-claim
imagePullSecrets
:
-
name
:
kszkepzes-regcred
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
kszkepzes-backend
namespace
:
devteam-kszk-bme-hu
...
...
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