Skip to content

Commit c570fda

Browse files
committed
Print the NodePort of the phpmyadmin example app when running helm example.
1 parent 352d702 commit c570fda

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

kubernetes/examples/helm.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,15 @@
6868
environment:
6969
HELM_HOST: '{{ helm_host }}:{{ helm_port }}'
7070
when: "'phpmyadmin' not in helm_list_results.stdout"
71+
72+
- name: Get the details of the a4d-nginx Service.
73+
k8s:
74+
api_version: v1
75+
kind: Service
76+
name: phpmyadmin
77+
namespace: default
78+
register: phpmyadmin_service
79+
80+
- name: Print the NodePort of the phpmyadmin Service.
81+
debug:
82+
var: phpmyadmin_service.result.spec.ports[0].nodePort

0 commit comments

Comments
 (0)