You've already forked docker-erlang-example
mirror of
https://github.com/erlang/docker-erlang-example.git
synced 2025-08-07 06:42:52 +03:00
This commit copies Lukas Larsson's (@garazdawi) and Siri Hansen's (@sirihansen) example from: https://github.com/erlang/docker-erlang-example/tree/minikube-dist
33 lines
531 B
YAML
33 lines
531 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
## Name and labels of the Deployment
|
|
labels:
|
|
app: backend
|
|
name: backend
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: backend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: backend
|
|
spec:
|
|
containers:
|
|
## The container to launch
|
|
- image: backend
|
|
name: backend
|
|
imagePullPolicy: Never
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: backend
|
|
spec:
|
|
ports:
|
|
- port: 12345
|
|
protocol: TCP
|
|
selector:
|
|
app: backend |