add adminer

This commit is contained in:
Arnaud Fornerot 2022-10-07 15:22:52 +02:00
parent 450560d28d
commit 75ee6d9344
6 changed files with 64 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: adminer
resources:
- namespace.yaml
- deployment.yaml
- ingress.yaml
- service.yaml

View File

@ -0,0 +1,4 @@
kind: Namespace
apiVersion: v1
metadata:
name: adminer

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: adminer
spec:
type: ClusterIP
selector:
app: adminer
ports:
- protocol: TCP
port: 80
targetPort: 1080

View File

@ -3,3 +3,4 @@ kind: Kustomization
resources:
- gotk-components.yaml
- gotk-sync.yaml
- adminer