RETIRED, Function as a Service for OpenStack
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.
 
 
 
 
 
 

44 lines
1.1 KiB

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{ name }}
labels:
{% for key, value in labels.items() %}
{{ key }}: {{ value }}
{% endfor %}
spec:
replicas: {{ replicas }}
selector:
matchLabels:
{% for key, value in labels.items() %}
{{ key }}: {{ value }}
{% endfor %}
template:
metadata:
labels:
{% for key, value in labels.items() %}
{{ key }}: {{ value }}
{% endfor %}
spec:
terminationGracePeriodSeconds: 5
automountServiceAccountToken: false
volumes:
- name: package-folder
emptyDir: {}
containers:
- name: {{ container_name }}
image: {{ image }}
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9090
volumeMounts:
- name: package-folder
mountPath: /var/qinling/packages
- name: sidecar
image: {{ sidecar_image }}
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9091
volumeMounts:
- name: package-folder
mountPath: /var/qinling/packages