k8s/dev/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
name: high-res
name: high-res
namespace: gfw
spec:
progressDeadlineSeconds: 2147483647
replicas: 1
revisionHistoryLimit: 0
selector:
matchLabels:
name: high-res
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
name: high-res
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: type
operator: In
values:
- gfw
containers:
- args:
- start
env:
- name: PORT
value: "3050"
- name: NODE_ENV
value: staging
- name: NODE_PATH
value: app/src
- name: LOCAL_URL
value: http://high-res.gfw.svc.cluster.local:3050
- name: GATEWAY_URL
valueFrom:
secretKeyRef:
key: GATEWAY_URL
name: mssecrets
- name: MICROSERVICE_TOKEN
valueFrom:
secretKeyRef:
key: MICROSERVICE_TOKEN
name: mssecrets
- name: SENTINEL_KEY
valueFrom:
secretKeyRef:
key: SENTINEL_KEY
name: mssecrets
- name: LANDSAT_KEY
valueFrom:
secretKeyRef:
key: LANDSAT_KEY
name: mssecrets
- name: FASTLY_ENABLED
valueFrom:
secretKeyRef:
key: FASTLY_ENABLED
name: mssecrets
- name: FASTLY_APIKEY
valueFrom:
secretKeyRef:
key: FASTLY_APIKEY
name: mssecrets
optional: true
- name: FASTLY_SERVICEID
valueFrom:
secretKeyRef:
key: FASTLY_SERVICEID
name: mssecrets
optional: true
- name: AWS_REGION
valueFrom:
secretKeyRef:
key: AWS_REGION
name: mssecrets
- name: REQUIRE_API_KEY
valueFrom:
secretKeyRef:
key: REQUIRE_API_KEY
name: mssecrets
image: gfwdockerhub/high-res
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthcheck
port: 3050
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 15
successThreshold: 1
timeoutSeconds: 5
name: high-res
ports:
- containerPort: 3050
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /healthcheck
port: 3050
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 15
successThreshold: 1
timeoutSeconds: 5
resources:
limits:
cpu: "1"
memory: 512M
requests:
cpu: 250m
memory: 256M
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: regcred
restartPolicy: Always
schedulerName: default-scheduler
securityContext: { }
terminationGracePeriodSeconds: 30