deploy api
This commit is contained in:
parent
369aed9ea1
commit
3a16d3e723
@ -1,7 +1,7 @@
|
|||||||
vps-host ansible_connection=ssh ansible_host=51.222.107.37 ansible_port=2424 ansible_user=valentin
|
vps-host ansible_connection=ssh ansible_host=51.222.107.37 ansible_port=2424 ansible_user=valentin
|
||||||
valentin-nas ansible_connection=ssh ansible_host=151.80.37.38 ansible_port=2424 ansible_user=valentin
|
valentin-nas ansible_connection=ssh ansible_host=151.80.37.38 ansible_port=2424 ansible_user=valentin
|
||||||
drone-host ansible_connection=ssh ansible_host=151.80.37.38 ansible_port=2424 ansible_user=valentin
|
drone-host ansible_connection=ssh ansible_host=151.80.37.38 ansible_port=2424 ansible_user=valentin
|
||||||
localhost ansible_host=127.0.0.1
|
localhost ansible_host=127.0.0.1 ansible_python_interpreter=/usr/bin/python3.10
|
||||||
|
|
||||||
[vps]
|
[vps]
|
||||||
vps-host
|
vps-host
|
||||||
|
@ -12,4 +12,37 @@
|
|||||||
dest: "{{ project_backend }}/{{ item }}.yaml"
|
dest: "{{ project_backend }}/{{ item }}.yaml"
|
||||||
with_items: "{{ backend_yaml }}"
|
with_items: "{{ backend_yaml }}"
|
||||||
|
|
||||||
|
- name: Create a k8s namespace
|
||||||
|
kubernetes.core.k8s:
|
||||||
|
name: testing
|
||||||
|
api_version: v1
|
||||||
|
kind: Namespace
|
||||||
|
state: present
|
||||||
|
|
||||||
|
|
||||||
|
- name: Apply deployment
|
||||||
|
kubernetes.core.k8s:
|
||||||
|
src: "{{ project_backend }}/backend-deployment.yaml"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Apply services
|
||||||
|
kubernetes.core.k8s:
|
||||||
|
src: "{{ project_backend }}/backend-service.yaml"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Apply configmap
|
||||||
|
kubernetes.core.k8s:
|
||||||
|
src: "{{ project_backend }}/env-configmap.yaml"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
|
||||||
|
- name: Apply secret
|
||||||
|
kubernetes.core.k8s:
|
||||||
|
src: "{{ project_backend }}/secret.yaml"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
io.kompose.service: backend
|
io.kompose.service: backend
|
||||||
name: backend
|
name: backend
|
||||||
|
namespace: testing
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
|
@ -8,6 +8,7 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
io.kompose.service: backend
|
io.kompose.service: backend
|
||||||
name: backend
|
name: backend
|
||||||
|
namespace: testing
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: "{{ port }}"
|
- name: "{{ port }}"
|
||||||
|
@ -18,3 +18,5 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
io.kompose.service: backend-env
|
io.kompose.service: backend-env
|
||||||
name: env
|
name: env
|
||||||
|
namespace: testing
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@ kind: Secret
|
|||||||
metadata:
|
metadata:
|
||||||
creationTimestamp: "2022-11-26T19:19:41Z"
|
creationTimestamp: "2022-11-26T19:19:41Z"
|
||||||
name: regcred
|
name: regcred
|
||||||
namespace: default
|
namespace: testing
|
||||||
resourceVersion: "17345802593"
|
|
||||||
uid: {{ uid_secret }}
|
uid: {{ uid_secret }}
|
||||||
type: kubernetes.io/dockerconfigjson
|
type: kubernetes.io/dockerconfigjson
|
||||||
|
Loading…
x
Reference in New Issue
Block a user