Skip to content

Commit

Permalink
Use deployment instead of statefulset
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
fosterseth committed Oct 5, 2023
1 parent c643749 commit 44ed8f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion roles/mesh_ingress/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
- service_account
- receptor_conf.configmap
- service
- statefulset
- deployment

- name: Get the current resource task pod information.
k8s_info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: apps/v1
kind: StatefulSet
kind: Deployment
metadata:
name: {{ ansible_operator_meta.name }}
namespace: {{ ansible_operator_meta.namespace }}
Expand Down
2 changes: 1 addition & 1 deletion roles/mesh_ingress/templates/service.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 44ed8f7

Please sign in to comment.