You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
524 B
22 lines
524 B
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .ObjectMeta.Name }}
|
|
namespace: {{ .ObjectMeta.Namespace }}
|
|
labels:
|
|
app: {{ .ObjectMeta.Name }}
|
|
spec:
|
|
replicas: {{ .Spec.Replicas }}
|
|
selector:
|
|
matchLabels:
|
|
app: {{ .ObjectMeta.Name }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ .ObjectMeta.Name }}
|
|
spec:
|
|
containers:
|
|
- name: {{ .ObjectMeta.Name }}
|
|
image: {{ .Spec.Image }}
|
|
ports:
|
|
- containerPort: {{ .Spec.Port }} |