diff --git a/statefulset.yaml b/statefulset.yaml deleted file mode 100644 index bf802e3..0000000 --- a/statefulset.yaml +++ /dev/null @@ -1,59 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: stateful-app - namespace: my-app -spec: - serviceName: "stateful-app" - replicas: 1 - selector: - matchLabels: - app: stateful-app - template: - metadata: - labels: - app: stateful-app - spec: - containers: - - name: stateful-app-container - image: antonin193/simple-web-app:latest - imagePullPolicy: Always - ports: - - containerPort: 5000 - env: - - name: DB_HOST - value: postgres - - name: DB_PORT - value: "5432" - - name: DB_NAME - value: postgres - - name: DB_USER - value: postgres - - name: DB_PASS - value: postgres - resources: - requests: - memory: "64Mi" - cpu: "100m" - limits: - memory: "128Mi" - cpu: "200m" - volumeMounts: - - name: app-storage - mountPath: /data - readinessProbe: - httpGet: - path: / - port: 5000 - initialDelaySeconds: 15 - periodSeconds: 20 - volumeClaimTemplates: - - metadata: - name: app-storage - spec: - accessModes: - - ReadWriteOnce - storageClassName: manual - resources: - requests: - storage: 1Gi \ No newline at end of file