-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
committed
May 26, 2020
1 parent
36ad75e
commit 3920e30
Showing
7 changed files
with
45 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
--- | ||
# defaults file for iperfcon | ||
# defaults file for iperfcon | ||
state: present | ||
namspace_deployment: iperfcon |
This file was deleted.
Oops, something went wrong.
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,26 +1,55 @@ | ||
--- | ||
- name: deploying the iperf-server pod | ||
k8s: | ||
state: "{{ state }}" | ||
definition: "{{ lookup('template', 'iperf-server-deployment.yml.j2') | from_yaml }}" | ||
state: "{{ state }}" | ||
definition: "{{ lookup('template', 'iperf-server-deployment.yml.j2') | from_yaml }}" | ||
namespace: '{{ namspace_deployment }}' | ||
|
||
- name: deploying the iperf-server service | ||
k8s: | ||
state: "{{ state }}" | ||
definition: "{{ lookup('template', 'iperf-server-service.yml.j2') | from_yaml }}" | ||
namespace: '{{ namspace_deployment }}' | ||
|
||
- name: deploying the iperf-client pod | ||
k8s: | ||
state: "{{ state }}" | ||
definition: "{{ lookup('template', 'iperf-client-deployment.yml.j2') | from_yaml }}" | ||
namespace: '{{ namspace_deployment }}' | ||
|
||
- name: deploying the iperf-client service | ||
k8s: | ||
state: "{{ state }}" | ||
definition: "{{ lookup('template', 'iperf-client-service.yml.j2') | from_yaml }}" | ||
namespace: '{{ namspace_deployment }}' | ||
|
||
- name: deploying the iperf-client route | ||
k8s: | ||
state: "{{ state }}" | ||
definition: "{{ lookup('template', 'iperf-client-route.yml.j2') | from_yaml }}" | ||
namespace: '{{ namspace_deployment }}' | ||
|
||
- name: get the route for iperf client | ||
k8s_info: | ||
api_version: v1 | ||
kind: Route | ||
name: iperf-client | ||
namespace: '{{ namspace_deployment }}' | ||
register: iperf_client_route | ||
|
||
- debug: | ||
msg: "{{ iperf_client_route.resources[0].spec.host }}" | ||
|
||
- name: get the service of the iperf server | ||
k8s_info: | ||
api_version: v1 | ||
kind: Service | ||
name: iperf-server | ||
namespace: '{{ namspace_deployment }}' | ||
register: iperf_server_svc | ||
|
||
- name: deploying the iperf-client pod | ||
k8s: | ||
state: "{{ state }}" | ||
definition: "{{ lookup('template', 'iperf-check-deployment.yml.j2') | from_yaml }}" | ||
namespace: '{{ namspace_deployment }}' |
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