54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: camarero
|
|
labels:
|
|
app.kubernetes.io/name: camarero
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: camarero
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: camarero
|
|
spec:
|
|
containers:
|
|
- name: yosoy
|
|
image: lukasz/yosoy:edge
|
|
env:
|
|
- name: YOSOY_SHOW_ENVS
|
|
value: "true"
|
|
- name: YOSOY_SHOW_FILES
|
|
value: "/etc/podinfo/labels,/etc/podinfo/annotations"
|
|
ports:
|
|
- containerPort: 80
|
|
volumeMounts:
|
|
- name: podinfo
|
|
mountPath: /etc/podinfo
|
|
volumes:
|
|
- name: podinfo
|
|
downwardAPI:
|
|
items:
|
|
- path: "labels"
|
|
fieldRef:
|
|
fieldPath: metadata.labels
|
|
- path: "annotations"
|
|
fieldRef:
|
|
fieldPath: metadata.annotations
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: camarero
|
|
labels:
|
|
app.kubernetes.io/name: camarero
|
|
spec:
|
|
type: NodePort
|
|
selector:
|
|
app.kubernetes.io/name: camarero
|
|
ports:
|
|
- protocol: TCP
|
|
port: 80
|