Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
guru
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
guru
Commits
6c8badd1
Commit
6c8badd1
authored
Mar 02, 2020
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix_k8s_deploy
parent
63bbdd3b
Pipeline
#1398
failed with stage
in 13 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
.gitlab-ci.yml
.gitlab-ci.yml
+1
-1
app.yml.tpl
Docker/manifests/app.yml.tpl
+1
-1
No files found.
.gitlab-ci.yml
View file @
6c8badd1
...
@@ -27,7 +27,7 @@ deploy_to_test:
...
@@ -27,7 +27,7 @@ deploy_to_test:
image
:
docker:stable
image
:
docker:stable
script
:
script
:
-
wget https://storage.googleapis.com/kubernetes-release/release/v1.14.3/bin/linux/amd64/kubectl && chmod +x ./kubectl
-
wget https://storage.googleapis.com/kubernetes-release/release/v1.14.3/bin/linux/amd64/kubectl && chmod +x ./kubectl
-
sed 's|_
VERSION_|'"${CI_PIPELINE_ID}"'
|g' Docker/manifests/app.yml.tpl > app.yml; cat app.yml
-
sed 's|_
PROJECT_|'"${CI_PROJECT_NAME}"'|g; s|_NS_|'"${CI_ENVIRONMENT_NAME}
|g' Docker/manifests/app.yml.tpl > app.yml; cat app.yml
-
wget https://github.com/garethr/kubeval/releases/download/0.7.3/kubeval-linux-amd64.tar.gz && tar xvf kubeval-linux-amd64.tar.gz && ./kubeval app.yml
-
wget https://github.com/garethr/kubeval/releases/download/0.7.3/kubeval-linux-amd64.tar.gz && tar xvf kubeval-linux-amd64.tar.gz && ./kubeval app.yml
-
./kubectl apply -f app.yml
-
./kubectl apply -f app.yml
environment
:
environment
:
...
...
Docker/manifests/app.yml.tpl
View file @
6c8badd1
...
@@ -21,7 +21,7 @@ metadata:
...
@@ -21,7 +21,7 @@ metadata:
name: _PROJECT_
name: _PROJECT_
labels:
labels:
app: _PROJECT_
app: _PROJECT_
namespace: _
PROJECT
_
namespace: _
NS
_
spec:
spec:
replicas: 1
replicas: 1
revisionHistoryLimit: 2
revisionHistoryLimit: 2
...
...
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