############################################################# ## NOT FOR PRODUCTION USE. ## ## THE CONTENT OF THIS FILE IS FOR LEARNING PURPOSES ONLY ## ## created by David Surey, Amazon Web Services, 2020 ## ############################################################# - name: create eksdemo namespace delegate_to: "{{ EKSBastionInstancePublicIP }}" kubernetes.core.k8s: state: present definition: apiVersion: v1 kind: Namespace metadata: name: eksdemo - name: create eksdemo deployment delegate_to: "{{ EKSBastionInstancePublicIP }}" kubernetes.core.k8s: state: present apply: yes definition: "{{ lookup('template', './k8s/microservice-example/microservice-example-{{ item }}.manifest.yaml') | from_yaml }}" loop: - nodejs-deployment - crystal-deployment - frontend-deployment - nodejs-service - crystal-service - frontend-service - frontend-ingress - name: create eksdemo horizontal scaling delegate_to: "{{ EKSBastionInstancePublicIP }}" kubernetes.core.k8s: state: present apply: yes definition: "{{ lookup('template', './k8s/microservice-example/microservice-example-hpa.manifest.yaml') | from_yaml }}" loop: - eksdemo-nodejs - eksdemo-crystal - eksdemo-frontend