mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
When pod loses connection with k8s api server, a statefulset can take a while (5 minutes) before it is rescheduled. Deployments quicker turnaround in this situation, which should help mesh stability. Signed-off-by: Seth Foster <fosterbseth@gmail.com>
15 lines
294 B
Django/Jinja
15 lines
294 B
Django/Jinja
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ ansible_operator_meta.name }}
|
|
namespace: '{{ ansible_operator_meta.namespace }}'
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- name: ws
|
|
port: 27199
|
|
targetPort: 27199
|
|
selector:
|
|
app.kubernetes.io/name: {{ ansible_operator_meta.name }}
|