From 75ee6d934474bfd02bf09d8b9009e3baefe44bcf Mon Sep 17 00:00:00 2001 From: Arnaud Fornerot Date: Fri, 7 Oct 2022 15:22:52 +0200 Subject: [PATCH] add adminer --- .../flux-system/adminer/deployment.yaml | 21 +++++++++++++++++++ .../flux-system/adminer/ingress.yaml | 18 ++++++++++++++++ .../flux-system/adminer/kustomization.yaml | 8 +++++++ .../flux-system/adminer/namespace.yaml | 4 ++++ .../flux-system/adminer/service.yaml | 12 +++++++++++ .../my-cluster/flux-system/kustomization.yaml | 1 + 6 files changed, 64 insertions(+) create mode 100644 clusters/my-cluster/flux-system/adminer/deployment.yaml create mode 100644 clusters/my-cluster/flux-system/adminer/ingress.yaml create mode 100644 clusters/my-cluster/flux-system/adminer/kustomization.yaml create mode 100644 clusters/my-cluster/flux-system/adminer/namespace.yaml create mode 100644 clusters/my-cluster/flux-system/adminer/service.yaml diff --git a/clusters/my-cluster/flux-system/adminer/deployment.yaml b/clusters/my-cluster/flux-system/adminer/deployment.yaml new file mode 100644 index 0000000..90724b8 --- /dev/null +++ b/clusters/my-cluster/flux-system/adminer/deployment.yaml @@ -0,0 +1,21 @@ + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: adminer +spec: + replicas: 1 + selector: + matchLabels: + app: adminer + template: + metadata: + labels: + app: adminer + spec: + containers: + - name: adminer + image: adminer + imagePullPolicy: Always + ports: + - containerPort: 8080 diff --git a/clusters/my-cluster/flux-system/adminer/ingress.yaml b/clusters/my-cluster/flux-system/adminer/ingress.yaml new file mode 100644 index 0000000..9d4cae3 --- /dev/null +++ b/clusters/my-cluster/flux-system/adminer/ingress.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: adminer + annotations: + ingress.kubernetes.io/ssl-redirect: "false" +spec: + rules: + - host: adminer.kube.fr + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: adminer + port: + number: 80 \ No newline at end of file diff --git a/clusters/my-cluster/flux-system/adminer/kustomization.yaml b/clusters/my-cluster/flux-system/adminer/kustomization.yaml new file mode 100644 index 0000000..0bba88c --- /dev/null +++ b/clusters/my-cluster/flux-system/adminer/kustomization.yaml @@ -0,0 +1,8 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: adminer +resources: +- namespace.yaml +- deployment.yaml +- ingress.yaml +- service.yaml diff --git a/clusters/my-cluster/flux-system/adminer/namespace.yaml b/clusters/my-cluster/flux-system/adminer/namespace.yaml new file mode 100644 index 0000000..b2739dd --- /dev/null +++ b/clusters/my-cluster/flux-system/adminer/namespace.yaml @@ -0,0 +1,4 @@ +kind: Namespace +apiVersion: v1 +metadata: + name: adminer \ No newline at end of file diff --git a/clusters/my-cluster/flux-system/adminer/service.yaml b/clusters/my-cluster/flux-system/adminer/service.yaml new file mode 100644 index 0000000..5c3eb50 --- /dev/null +++ b/clusters/my-cluster/flux-system/adminer/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: adminer +spec: + type: ClusterIP + selector: + app: adminer + ports: + - protocol: TCP + port: 80 + targetPort: 1080 \ No newline at end of file diff --git a/clusters/my-cluster/flux-system/kustomization.yaml b/clusters/my-cluster/flux-system/kustomization.yaml index 3842229..acedcda 100644 --- a/clusters/my-cluster/flux-system/kustomization.yaml +++ b/clusters/my-cluster/flux-system/kustomization.yaml @@ -3,3 +3,4 @@ kind: Kustomization resources: - gotk-components.yaml - gotk-sync.yaml +- adminer