37 lines
557 B
YAML
37 lines
557 B
YAML
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: apod-log
|
||
|
labels:
|
||
|
kiamol: ch16
|
||
|
spec:
|
||
|
ports:
|
||
|
- port: 80
|
||
|
targetPort: api
|
||
|
selector:
|
||
|
app: apod-log
|
||
|
type: ClusterIP
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: apod-log
|
||
|
labels:
|
||
|
kiamol: ch16
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: apod-log
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: apod-log
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: api
|
||
|
image: kiamol/ch14-access-log
|
||
|
ports:
|
||
|
- containerPort: 80
|
||
|
name: api
|
||
|
|