5cb0d7a9fe
Change-Id: I883f2a583fd3ff497df91c216d4fae6a7b6a6d6e
30 lines
496 B
Django/Jinja
30 lines
496 B
Django/Jinja
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: test-deployment
|
|
spec:
|
|
replicas: 2
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: test
|
|
spec:
|
|
containers:
|
|
- name: test
|
|
image: {{ namespace }}/test:{{ tag }}
|
|
ports:
|
|
- containerPort: 12345
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: test-service
|
|
labels:
|
|
app: test
|
|
spec:
|
|
ports:
|
|
- name: keystona-api
|
|
port: 12345
|
|
targetPort: 12345
|
|
selector:
|
|
app: test |