-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
28 lines (28 loc) · 799 Bytes
/
deployment.yaml
File metadata and controls
28 lines (28 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
piVersion: apps/v1
kind: Deployment
metadata:
name: adminer
labels:
app: adminer
group: db
spec:
replicas: 1
selector:
matchLabels:
app: adminer # indicates which Pods (with which labeles) need be handled by this Deployment
template:
metadata: # indicates the metadata that will be added to each Pod
labels:
app: adminer
group: db
spec:
containers: # defines a running container inside the Pod
- name: adminer
image: adminer:4.7.6-standalone
ports:
- containerPort: 8080 # which port of the container is exposed to the Pod
env:
- name: ADMINER_DESIGN
value: pepa-linha
- name: ADMINER_DEFAULT_SERVER
value: postgres