mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
Use deployment instead of statefulset
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>
This commit is contained in:
committed by
Christian Adams
parent
6ef4aed024
commit
062c7153c6
@@ -64,7 +64,7 @@
|
||||
- service_account
|
||||
- receptor_conf.configmap
|
||||
- service
|
||||
- statefulset
|
||||
- deployment
|
||||
|
||||
- name: Get the current resource task pod information.
|
||||
k8s_info:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ ansible_operator_meta.name }}
|
||||
namespace: {{ ansible_operator_meta.namespace }}
|
||||
@@ -11,4 +11,4 @@ spec:
|
||||
port: 27199
|
||||
targetPort: 27199
|
||||
selector:
|
||||
statefulset.kubernetes.io/pod-name: {{ ansible_operator_meta.name }}-0
|
||||
app.kubernetes.io/name: {{ ansible_operator_meta.name }}
|
||||
|
||||
Reference in New Issue
Block a user