You've already forked docker-erlang-example
mirror of
https://github.com/erlang/docker-erlang-example.git
synced 2025-07-29 11:41:10 +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
43 lines
969 B
YAML
43 lines
969 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
## Name and labels of the Deployment
|
|
labels:
|
|
app: dockerwatch
|
|
name: dockerwatch
|
|
spec:
|
|
replicas: 10
|
|
selector:
|
|
matchLabels:
|
|
app: dockerwatch
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: dockerwatch
|
|
spec:
|
|
containers:
|
|
## The container to launch
|
|
- image: dockerwatch
|
|
name: dockerwatch
|
|
imagePullPolicy: Never ## Set to Never as we built the image in the cluster
|
|
stdin: true
|
|
tty: true
|
|
ports:
|
|
- containerPort: 8080
|
|
protocol: TCP
|
|
- containerPort: 8443
|
|
protocol: TCP
|
|
volumeMounts:
|
|
- name: kube-keypair
|
|
readOnly: true
|
|
mountPath: /etc/ssl/certs
|
|
env:
|
|
- name: IP
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: status.podIP
|
|
volumes:
|
|
- name: kube-keypair
|
|
secret:
|
|
secretName: dockerwatch
|