This commit is contained in:
2024-02-20 17:15:27 +08:00
committed by huty
parent 6706e1a633
commit 34158042ad
1529 changed files with 177765 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: adminer-config
data:
ADMINER_DESIGN: "price"

View File

@@ -0,0 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: adminer-secret
type: Opaque
stringData:
ADMINER_DEFAULT_SERVER: "ch04-lab-db"

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View File

@@ -0,0 +1,40 @@
apiVersion: v1
kind: Service
metadata:
name: adminer-web
spec:
ports:
- port: 8082
targetPort: 8080
selector:
app: adminer-web
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: adminer-web
spec:
selector:
matchLabels:
app: adminer-web
template:
metadata:
labels:
app: adminer-web
spec:
containers:
- name: web
image: adminer:4.7-standalone
args: ["php", "-S", "0.0.0.0:8080", "-t", "/var/www/html"]
env:
- name: ADMINER_DESIGN
valueFrom:
configMapKeyRef:
name: adminer-config
key: ADMINER_DESIGN
- name: ADMINER_DEFAULT_SERVER
valueFrom:
secretKeyRef:
name: adminer-secret
key: ADMINER_DEFAULT_SERVER