Deploy defiant
This commit is contained in:
parent
4704719583
commit
1cbea70a98
3 changed files with 20 additions and 2 deletions
|
@ -121,3 +121,21 @@ defiant:release:
|
||||||
only:
|
only:
|
||||||
changes:
|
changes:
|
||||||
- defiant/**/*
|
- defiant/**/*
|
||||||
|
|
||||||
|
defiant:deploy:
|
||||||
|
stage: deploy
|
||||||
|
image: lwolf/helm-kubectl-docker:v1.15.4-v2.14.3
|
||||||
|
script:
|
||||||
|
- mkdir -p ${KUBECONFIG_PARENT}
|
||||||
|
- echo ${K8S_CLUSTER_CONFIG} | base64 -d > ${KUBECONFIG}
|
||||||
|
|
||||||
|
# Deploy using helm chart
|
||||||
|
- cd ${DEFIANT_SRC}/chart
|
||||||
|
- mkdir -p manifests/
|
||||||
|
- helm template ./defiant/ --output-dir manifests/ --name defiant -f ./defiant/values.yaml
|
||||||
|
- kubectl apply --namespace ${DEPLOY_NAMESPACE} -R -f manifests/
|
||||||
|
only:
|
||||||
|
refs:
|
||||||
|
- master
|
||||||
|
changes:
|
||||||
|
- defiant/**/*
|
|
@ -1,7 +1,7 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}
|
name: rethinkb-{{ .Release.Name }}
|
||||||
labels:
|
labels:
|
||||||
app: rethinkdb
|
app: rethinkdb
|
||||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
|
|
|
@ -5,7 +5,7 @@ web:
|
||||||
|
|
||||||
database:
|
database:
|
||||||
# RethinkDB configuration
|
# RethinkDB configuration
|
||||||
ip: "rethinkdb.public"
|
ip: "rethinkdb-defiant.public"
|
||||||
port: 28015
|
port: 28015
|
||||||
database_name: "battle_myth_theater"
|
database_name: "battle_myth_theater"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue