diff --git a/kubernetes/bonus/README.md b/kubernetes/bonus/README.md new file mode 100644 index 0000000..99f4a49 --- /dev/null +++ b/kubernetes/bonus/README.md @@ -0,0 +1,3 @@ +# Bonus + +TODO \ No newline at end of file diff --git a/kubernetes/bonus/deployment.yaml b/kubernetes/bonus/deployment.yaml new file mode 100644 index 0000000..55106c4 --- /dev/null +++ b/kubernetes/bonus/deployment.yaml @@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: pgadmin +spec: + selector: + matchLabels: + app: pgadmin + template: + metadata: + labels: + app: pgadmin + spec: + containers: + - name: pgadmin + image: dpage/pgadmin4 + env: + - name: PGADMIN_DEFAULT_EMAIL + value: "admin@intech.info" + - name: PGADMIN_DEFAULT_PASSWORD + value: "admin" diff --git a/kubernetes/bonus/ingress.yaml b/kubernetes/bonus/ingress.yaml new file mode 100644 index 0000000..c46d6cd --- /dev/null +++ b/kubernetes/bonus/ingress.yaml @@ -0,0 +1,19 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: pgadmin + labels: + name: pgadmin +spec: + ingressClassName: nginx + rules: + - host: pgadmin.intech.insee.io + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: pgadmin + port: + number: 80 diff --git a/kubernetes/bonus/service.yaml b/kubernetes/bonus/service.yaml new file mode 100644 index 0000000..3da406c --- /dev/null +++ b/kubernetes/bonus/service.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Service +metadata: + name: pgadmin +spec: + selector: + app: pgadmin + ports: + - port: 80 + targetPort: 80