Switch from StatefulSet to Deployment

We can do this now that we dropped RabbitMQ.
This commit is contained in:
Shane McDonald
2020-03-31 12:59:32 -04:00
parent 344a4bb238
commit 3060505110
2 changed files with 7 additions and 8 deletions

View File

@@ -16,8 +16,8 @@ imagePullSecrets:
{% endif %}
---
apiVersion: {{ kubernetes_statefulset_api_version }}
kind: StatefulSet
apiVersion: {{ kubernetes_deployment_api_version }}
kind: Deployment
metadata:
name: {{ kubernetes_deployment_name }}
namespace: {{ kubernetes_namespace }}
@@ -26,9 +26,8 @@ metadata:
app: {{ kubernetes_deployment_name }}
{% endif %}
spec:
serviceName: {{ kubernetes_deployment_name }}
replicas: 1
{% if kubernetes_statefulset_api_version == "apps/v1" %}
{% if kubernetes_deployment_api_version == "apps/v1" %}
selector:
matchLabels:
app: {{ kubernetes_deployment_name }}