Skip to content

Instantly share code, notes, and snippets.

@eicnix
Last active July 24, 2018 17:10
Show Gist options
  • Save eicnix/ffb34b83caab2efbc118ac97c78e5492 to your computer and use it in GitHub Desktop.
Save eicnix/ffb34b83caab2efbc118ac97c78e5492 to your computer and use it in GitHub Desktop.
sidecarproxy example deployment
# Kubernetes deployment to deploy Sidecar proxy + application in a single pod
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: sidecar-proxy-example
spec:
replicas: 1
selector:
matchLabels:
app: sidecar-proxy-example
template:
metadata:
labels:
app: sidecar-proxy-example
spec:
containers:
- name: sidecar-proxy
image: eicnix/sidecar-proxy-example-sidecar-proxy
imagePullPolicy: Always
ports:
- containerPort: 80
- name: application
image: eicnix/sidecar-proxy-example
imagePullPolicy: Always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment