Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
d42e4f23
Commit
d42e4f23
authored
7 years ago
by
Matthew Mosesohn
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
fb467df4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+3
-0
3 additions, 0 deletions
.gitlab-ci.yml
roles/kubernetes/master/tasks/post-upgrade.yml
+15
-3
15 additions, 3 deletions
roles/kubernetes/master/tasks/post-upgrade.yml
with
18 additions
and
3 deletions
.gitlab-ci.yml
+
3
−
0
View file @
d42e4f23
...
...
@@ -47,6 +47,7 @@ before_script:
PRIVATE_KEY
:
$GCE_PRIVATE_KEY
GS_ACCESS_KEY_ID
:
$GS_KEY
GS_SECRET_ACCESS_KEY
:
$GS_SECRET
CLOUD_MACHINE_TYPE
:
"
g1-small"
ANSIBLE_KEEP_REMOTE_FILES
:
"
1"
ANSIBLE_CONFIG
:
./tests/ansible.cfg
BOOTSTRAP_OS
:
none
...
...
@@ -97,6 +98,7 @@ before_script:
-e gce_credentials_file=${HOME}/.ssh/gce.json
-e gce_project_id=${GCE_PROJECT_ID}
-e gce_service_account_email=${GCE_ACCOUNT}
-e cloud_machine_type=${CLOUD_MACHINE_TYPE}
-e inventory_path=${PWD}/inventory/inventory.ini
-e kube_network_plugin=${KUBE_NETWORK_PLUGIN}
-e mode=${CLUSTER_MODE}
...
...
@@ -265,6 +267,7 @@ before_script:
KUBE_NETWORK_PLUGIN
:
canal
CLOUD_IMAGE
:
ubuntu-1604-xenial
CLOUD_REGION
:
europe-west1-b
CLOUD_MACHINE_TYPE
:
"
n1-standard-2"
UPGRADE_TEST
:
"
basic"
CLUSTER_MODE
:
ha
UPGRADE_TEST
:
"
graceful"
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes/master/tasks/post-upgrade.yml
+
15
−
3
View file @
d42e4f23
---
-
name
:
"
Post-upgrade
|
restart
kubelet
on
all
masters"
-
name
:
"
Post-upgrade
|
stop
kubelet
on
all
masters"
service
:
name
:
kubelet
state
:
restarted
state
:
stopped
delegate_to
:
"
{{item}}"
with_items
:
"
{{groups['kube-master']}}"
when
:
needs_etcd_migration|bool
-
name
:
"
Post-upgrade
|
Pause
for
kubelet
stop"
pause
:
seconds
:
10
when
:
needs_etcd_migration|bool
-
name
:
"
Post-upgrade
|
stop
kubelet
on
all
masters"
service
:
name
:
kubelet
state
:
started
delegate_to
:
"
{{item}}"
with_items
:
"
{{groups['kube-master']}}"
register
:
kube_apiserver_manifest_replaced
when
:
needs_etcd_migration|bool
-
name
:
"
Post-upgrade
|
etcd3
upgrade
|
purge
etcd2
k8s
data"
...
...
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