diff --git a/kubernetes/deployments/deployment.yaml b/kubernetes/deployments/deployment.yaml index 08968f2..b7d7a55 100644 --- a/kubernetes/deployments/deployment.yaml +++ b/kubernetes/deployments/deployment.yaml @@ -1,57 +1,57 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: example-deploy - labels: - app: example-app - test: test - annotations: - fluxcd.io/tag.example-app: glob:1.*.* - fluxcd.io/automated: 'true' -spec: - selector: - matchLabels: - app: example-app - replicas: 2 - strategy: - type: RollingUpdate - rollingUpdate: - maxSurge: 1 - maxUnavailable: 0 - template: - metadata: - labels: - app: example-app - spec: - containers: - - name: example-app - image: aimvector/python:1.0.0 - imagePullPolicy: Always - ports: - - containerPort: 5000 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: example-deploy + labels: + app: example-app + test: test + annotations: + fluxcd.io/tag.example-app: semver:~1.0 + fluxcd.io/automated: 'true' +spec: + selector: + matchLabels: + app: example-app + replicas: 2 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 0 + template: + metadata: + labels: + app: example-app + spec: + containers: + - name: example-app + image: aimvector/python:1.0.0 + imagePullPolicy: Always + ports: + - containerPort: 5000 # livenessProbe: # httpGet: # path: /status # port: 5000 # initialDelaySeconds: 3 # periodSeconds: 3 - resources: - requests: - memory: "64Mi" - cpu: "50m" - limits: - memory: "256Mi" - cpu: "500m" - volumeMounts: - - name: secret-volume - mountPath: /secrets/ - - name: config-volume - mountPath: /configs/ - volumes: - - name: secret-volume - secret: - secretName: mysecret - - name: config-volume - configMap: - name: example-config #name of our configmap object + resources: + requests: + memory: "64Mi" + cpu: "50m" + limits: + memory: "256Mi" + cpu: "500m" + volumeMounts: + - name: secret-volume + mountPath: /secrets/ + - name: config-volume + mountPath: /configs/ + volumes: + - name: secret-volume + secret: + secretName: mysecret + - name: config-volume + configMap: + name: example-config #name of our configmap object