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:
Seth Foster
2023-10-05 14:20:10 -04:00
committed by Christian Adams
parent 6ef4aed024
commit 062c7153c6
3 changed files with 3 additions and 3 deletions

View File

@@ -64,7 +64,7 @@
- service_account
- receptor_conf.configmap
- service
- statefulset
- deployment
- name: Get the current resource task pod information.
k8s_info:

View File

@@ -1,5 +1,5 @@
apiVersion: apps/v1
kind: StatefulSet
kind: Deployment
metadata:
name: {{ ansible_operator_meta.name }}
namespace: {{ ansible_operator_meta.namespace }}

View File

@@ -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 }}