Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kubernetes-deploy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
kubernetes-deploy
Commits
5201d0a4
Unverified
Commit
5201d0a4
authored
Jan 16, 2017
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix deployments
parent
123c0c74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
deploy
deploy
+2
-6
No files found.
deploy
View file @
5201d0a4
...
...
@@ -32,7 +32,7 @@ metadata:
name:
$KUBE_NAMESPACE
EOF
cat
<<
EOF
| kubectl
replace
-n
$KUBE_NAMESPACE
-f -
cat
<<
EOF
| kubectl
apply
-n
$KUBE_NAMESPACE
-f -
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
...
...
@@ -49,8 +49,6 @@ spec:
labels:
name:
$CI_ENVIRONMENT_SLUG
app:
$CI_ENVIRONMENT_SLUG
pipeline_id: "
$CI_PIPELINE_ID
"
build_id: "
$CI_BUILD_ID
"
spec:
containers:
- name: app
...
...
@@ -71,9 +69,7 @@ spec:
port: 5000
initialDelaySeconds: 5
timeoutSeconds: 3
EOF
cat
<<
EOF
| kubectl apply -n
$KUBE_NAMESPACE
-f -
---
apiVersion: v1
kind: Service
metadata:
...
...
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