-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds prow job to install Nephio components on kubeadm cluster
Co-authored-by: Daniel Kostecki <[email protected]>
- Loading branch information
1 parent
7cd331e
commit 82843c1
Showing
9 changed files
with
179 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
--- | ||
- name: Deploy k8s using kubeadm on host | ||
hosts: all | ||
pre_tasks: | ||
- name: Install Docker Engine needed for kpt functions | ||
become: true | ||
block: | ||
- name: Install docker binaries | ||
ansible.builtin.include_role: | ||
name: andrewrothstein.docker_engine | ||
- name: Grant Docker permissions to user | ||
ansible.builtin.user: | ||
name: "{{ ansible_user_id }}" | ||
groups: docker | ||
append: true | ||
roles: | ||
- role: kubeadm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
e2e/provision/playbooks/roles/kubeadm/tasks/wait-deployments.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
# SPDX-license-identifier: Apache-2.0 | ||
############################################################################## | ||
# Copyright (c) 2023 The Nephio Authors. | ||
# All rights reserved. This program and the accompanying materials | ||
# are made available under the terms of the Apache License, Version 2.0 | ||
# which accompanies this distribution, and is available at | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
############################################################################## | ||
|
||
- name: "Get deployment resources in namespace {{ namespace }}" | ||
kubernetes.core.k8s_info: | ||
context: "{{ context }}" | ||
api_version: v1 | ||
kind: Deployment | ||
namespace: "{{ namespace }}" | ||
register: deployment_list | ||
|
||
- name: "Print deployment resources in namespace {{ namespace }}" | ||
ansible.builtin.debug: | ||
var: deployment_list.resources | ||
|
||
- name: "Wait for deployments in namespace {{ namespace }}" | ||
kubernetes.core.k8s: | ||
context: "{{ context }}" | ||
definition: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: "{{ resource.metadata.name }}" | ||
namespace: "{{ resource.metadata.namespace }}" | ||
wait: true | ||
wait_condition: | ||
type: Available | ||
reason: MinimumReplicasAvailable | ||
loop: "{{ deployment_list.resources }}" | ||
loop_control: | ||
loop_var: resource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters