43 lines
773 B
YAML
43 lines
773 B
YAML
|
---
|
||
|
# tasks file for create cluster k8s via terraform
|
||
|
|
||
|
- name: Apply deployment
|
||
|
kubernetes.core.k8s:
|
||
|
src: "{{ project_backend }}/backend-deployment.yaml"
|
||
|
state: absent
|
||
|
|
||
|
- name: Apply services
|
||
|
kubernetes.core.k8s:
|
||
|
src: "{{ project_backend }}/backend-service.yaml"
|
||
|
state: absent
|
||
|
|
||
|
- name: Apply configmap
|
||
|
kubernetes.core.k8s:
|
||
|
src: "{{ project_backend }}/env-configmap.yaml"
|
||
|
state: absent
|
||
|
|
||
|
|
||
|
- name: Apply secret
|
||
|
kubernetes.core.k8s:
|
||
|
src: "{{ project_backend }}/secret.yaml"
|
||
|
state: absent
|
||
|
|
||
|
|
||
|
- name: Create a k8s namespace
|
||
|
kubernetes.core.k8s:
|
||
|
name: testing
|
||
|
api_version: v1
|
||
|
kind: Namespace
|
||
|
state: absent
|
||
|
|
||
|
|
||
|
- name: Create directory {{ project_terraform }}
|
||
|
file:
|
||
|
path: "{{ project_backend }}"
|
||
|
state: absent
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|