This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Storage } = require('@google-cloud/storage'); | |
const sharp = require('sharp'); | |
const variations = [ | |
{ prefix: 'thumb', width: 120 }, | |
{ prefix: 'mini', width: 480 }, | |
{ prefix: 'med', width: 1024 } | |
]; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: my-deployment-name # The name of your Deployment | |
spec: | |
replicas: 3 # The amount of replicated pods | |
selector: | |
matchLabels: # specifies which pods the Deployment will target ("defines how the Deployment finds which Pods to manage") | |
app: my-app | |
environment: production |