Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
presentation-gitlab-k8s
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Arthur Lutz
presentation-gitlab-k8s
Commits
9adbee77edb9
Commit
9adbee77edb9
authored
7 years ago
by
Alexander Trost
Browse files
Options
Downloads
Patches
Plain Diff
Use apply instead of replace
parent
deea67e79737
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-4
4 additions, 4 deletions
.gitlab-ci.yml
with
4 additions
and
4 deletions
.gitlab-ci.yml
+
4
−
4
View file @
9adbee77
...
@@ -67,5 +67,5 @@
...
@@ -67,5 +67,5 @@
-
sed -i "s/__VERSION__/${CI_COMMIT_REF_NAME}/" deployment.yaml ingress.yaml service.yaml
-
sed -i "s/__VERSION__/${CI_COMMIT_REF_NAME}/" deployment.yaml ingress.yaml service.yaml
-
kubectl cluster-info
-
kubectl cluster-info
-
kubectl get deployments -l app=${CI_ENVIRONMENT_SLUG}
-
kubectl get deployments -l app=${CI_ENVIRONMENT_SLUG}
-
kubectl create -f deployment.yaml || (kubectl delete -f deployment.yaml && kubectl
create
-f deployment.yaml)
-
kubectl create -f deployment.yaml || (kubectl delete -f deployment.yaml && kubectl
apply
-f deployment.yaml)
-
kubectl create -f service.yaml ||
true
-
kubectl create -f service.yaml ||
true
...
@@ -71,5 +71,5 @@
...
@@ -71,5 +71,5 @@
-
kubectl create -f service.yaml ||
true
-
kubectl create -f service.yaml ||
true
-
kubectl
create -f ingress.yaml || kubectl replace
-f ingress.yaml
-
kubectl
apply
-f ingress.yaml
deploy_live
:
deploy_live
:
image
:
registry.gitlab.com/gitlab-examples/kubernetes-deploy
image
:
registry.gitlab.com/gitlab-examples/kubernetes-deploy
...
@@ -90,5 +90,5 @@
...
@@ -90,5 +90,5 @@
-
sed -i "s/__VERSION__/${CI_COMMIT_REF_NAME}/" deployment.yaml ingress.yaml service.yaml
-
sed -i "s/__VERSION__/${CI_COMMIT_REF_NAME}/" deployment.yaml ingress.yaml service.yaml
-
kubectl cluster-info
-
kubectl cluster-info
-
kubectl get deployments -l app=${CI_ENVIRONMENT_SLUG}
-
kubectl get deployments -l app=${CI_ENVIRONMENT_SLUG}
-
kubectl
create -f deployment.yaml || kubectl replace
-f deployment.yaml
-
kubectl
apply
-f deployment.yaml
-
kubectl create -f service.yaml ||
true
-
kubectl create -f service.yaml ||
true
...
@@ -94,2 +94,2 @@
...
@@ -94,2 +94,2 @@
-
kubectl create -f service.yaml ||
true
-
kubectl create -f service.yaml ||
true
-
kubectl
create -f ingress.yaml || kubectl replace
-f ingress.yaml
-
kubectl
apply
-f ingress.yaml
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