Skip to content

Instantly share code, notes, and snippets.

@alevz257
Last active September 17, 2019 06:24
Show Gist options
  • Save alevz257/dedb4fdf5e5ab38beb7ca0749a1f45e6 to your computer and use it in GitHub Desktop.
Save alevz257/dedb4fdf5e5ab38beb7ca0749a1f45e6 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: eksworkshop-php
labels:
app: eksworkshop-php
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: eksworkshop-php
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: eksworkshop-php
spec:
containers:
- image: [image location]
imagePullPolicy: Always
name: eksworkshop-php
ports:
- containerPort: 80
protocol: TCP
imagePullSecrets:
- name: ap-southeast-1-ecr-registry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment