48 lines
825 B
YAML
48 lines
825 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: adminer
|
|
namespace: bookstack
|
|
labels:
|
|
app: adminer
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: adminer
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: adminer
|
|
spec:
|
|
containers:
|
|
- name: adminer
|
|
image: adminer
|
|
imagePullPolicy: IfNotPresent
|
|
env:
|
|
- name: ADMINER_DEFAULT_SERVER
|
|
value: db
|
|
ports:
|
|
- containerPort: 8080
|
|
protocol: TCP
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: adminer
|
|
namespace: bookstack
|
|
spec:
|
|
internalTrafficPolicy: Cluster
|
|
ipFamilies:
|
|
- IPv6
|
|
ipFamilyPolicy: SingleStack
|
|
ports:
|
|
- name: http
|
|
port: 8080
|
|
protocol: TCP
|
|
targetPort: 8080
|
|
selector:
|
|
app: adminer
|
|
sessionAffinity: None
|
|
type: ClusterIP
|