Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pheweb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Andres Veidenberg
Pheweb
Commits
638cd8db
Commit
638cd8db
authored
2 weeks ago
by
villersk
Browse files
Options
Downloads
Patches
Plain Diff
Added depolyment
parent
1ef49895
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#48373
passed
2 weeks ago
Stage: .pre
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+13
-0
13 additions, 0 deletions
.gitlab-ci.yml
deploy/deployment.yaml
+72
-0
72 additions, 0 deletions
deploy/deployment.yaml
with
85 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
13
−
0
View file @
638cd8db
stages
:
-
build
-
deploy
variables
:
KANIKO_BUILD_ARGS
:
"
--destination
$CI_REGISTRY_IMAGE/$CI_COMMIT_BRANCH:latest"
include
:
-
remote
:
"
https://gitlab.hpc.ut.ee/templates/gitlab-actions/-/raw/main/.gitlab-ci-kaniko-build.yml"
-
remote
:
"
https://gitlab.hpc.ut.ee/templates/gitlab-actions/-/raw/main/.gitlab-ci-kubectl-deploy.yml"
This diff is collapsed.
Click to expand it.
deploy/deployment.yaml
0 → 100644
+
72
−
0
View file @
638cd8db
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
${CI_PROJECT_NAME}-pod-deployment
namespace
:
pheweb-gi-ut-ee
spec
:
replicas
:
3
selector
:
matchLabels
:
app
:
${CI_PROJECT_NAME}-app
template
:
metadata
:
labels
:
app
:
${CI_PROJECT_NAME}-app
version
:
${CI_COMMIT_SHA}
spec
:
containers
:
-
name
:
my-container
image
:
${CI_REGISTRY}/${CI_PROJECT_PATH}/${CI_COMMIT_BRANCH}:${CI_COMMIT_SHA}
ports
:
-
containerPort
:
5000
imagePullPolicy
:
Always
volumeMounts
:
-
name
:
pheweb-nfs
mountPath
:
/data
volumes
:
-
name
:
pheweb-nfs
persistentVolumeClaim
:
claimName
:
pheweb-nfs-claim
imagePullSecrets
:
-
name
:
pheweb
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
${CI_PROJECT_NAME}-service
namespace
:
pheweb-gi-ut-ee
spec
:
ports
:
-
port
:
80
targetPort
:
5000
protocol
:
TCP
selector
:
app
:
${CI_PROJECT_NAME}-app
---
apiVersion
:
networking.k8s.io/v1
kind
:
Ingress
metadata
:
name
:
${CI_PROJECT_NAME}-ingress
namespace
:
pheweb-gi-ut-ee
annotations
:
cert-manager.io/cluster-issuer
:
vault-hpc-issuer
nginx.ingress.kubernetes.io/proxy-buffer-size
:
"
512k"
nginx.ingress.kubernetes.io/proxy-buffers-number
:
"
8"
nginx.ingress.kubernetes.io/affinity
:
"
cookie"
nginx.ingress.kubernetes.io/session-cookie-name
:
"
route"
spec
:
rules
:
-
host
:
"
pheweb.gi.ut.ee"
http
:
paths
:
-
path
:
/
pathType
:
Prefix
backend
:
service
:
name
:
${CI_PROJECT_NAME}-service
port
:
number
:
80
tls
:
-
hosts
:
-
pheweb.gi.ut.ee
secretName
:
pheweb.gi.ut.ee
\ 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