Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ASM
dkim-validator
Commits
ee546eb6
Commit
ee546eb6
authored
Feb 20, 2018
by
Jørn Åne de Jong
Browse files
Try to get it to build on local Kubernetes infrastructure
parent
92b015c2
Pipeline
#6234
passed with stages
in 4 minutes and 7 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
ee546eb6
image
:
registry.uninett.no/asm/kubernetes-deploy:v0.13
variables
:
KUBE_PROD_DOMAIN
:
dkim.paas2.uninett.no
KUBE_TEST_ID
:
dkim
HTTP_PORT
:
'
80'
# The port number of the web server.
REPLICAS
:
'
1'
stages
:
-
build
-
test
-
review
-
staging
-
production
build
:
stage
:
build
script
:
-
build
only
:
-
branches
production
:
stage
:
production
variables
:
REPLICAS
:
"
2"
script
:
-
deploy dist/kubernetes.yml
environment
:
name
:
production
url
:
https://$KUBE_PROD_DOMAIN
when
:
manual
only
:
-
master
staging
:
stage
:
staging
script
:
-
deploy dist/kubernetes.yml
environment
:
name
:
staging
url
:
https://$KUBE_TEST_ID-staging.paas2.uninett.no
only
:
-
master
review
:
stage
:
review
script
:
-
deploy dist/kubernetes.yml
environment
:
name
:
review/$CI_BUILD_REF_NAME
url
:
https://$KUBE_TEST_ID-$CI_ENVIRONMENT_SLUG.paas2.uninett.no
on_stop
:
stop_review
only
:
-
branches
except
:
-
master
stop_review
:
stage
:
review
script
:
-
destroy
environment
:
name
:
review/$CI_BUILD_REF_NAME
action
:
stop
when
:
manual
only
:
-
branches
except
:
-
master
dist/kubernetes.yml
0 → 100644
View file @
ee546eb6
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
name
:
$CI_ENVIRONMENT_SLUG
namespace
:
$KUBE_NAMESPACE
labels
:
app
:
$CI_ENVIRONMENT_SLUG
pipeline_id
:
"
$CI_PIPELINE_ID"
build_id
:
"
$CI_BUILD_ID"
spec
:
replicas
:
$REPLICAS
template
:
metadata
:
labels
:
name
:
$CI_ENVIRONMENT_SLUG
app
:
$CI_ENVIRONMENT_SLUG
spec
:
containers
:
-
name
:
app
image
:
$CI_REGISTRY_IMAGE:$CI_REGISTRY_TAG
ports
:
-
name
:
web
containerPort
:
$HTTP_PORT
livenessProbe
:
httpGet
:
path
:
/
port
:
$HTTP_PORT
initialDelaySeconds
:
15
timeoutSeconds
:
15
readinessProbe
:
httpGet
:
path
:
/
port
:
$HTTP_PORT
initialDelaySeconds
:
5
timeoutSeconds
:
15
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment