Skip to content

Instantly share code, notes, and snippets.

@jbayer
Created October 23, 2020 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbayer/2088b681f45e7c73c912e22cbfa0f3d8 to your computer and use it in GitHub Desktop.
Save jbayer/2088b681f45e7c73c912e22cbfa0f3d8 to your computer and use it in GitHub Desktop.
Waypoint Server as Deployment without persistent state after pod restarts
---
apiVersion: v1
kind: Service
metadata:
name: waypoint
namespace: default
spec:
ports:
- port: 9701
name: grpc
- port: 9702
name: http
selector:
app: waypoint-server
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: waypoint-server
namespace: default
labels:
app: waypoint-server
spec:
selector:
matchLabels:
app: waypoint-server
template:
metadata:
labels:
app: waypoint-server
spec:
imagePullSecrets:
- name: github
containers:
- name: server
image: hashicorp/waypoint:latest
imagePullPolicy: Always
command:
- "waypoint"
args:
- server
- run
- -accept-tos
- -vvv
- -db=/data/data.db
- -listen-grpc=0.0.0.0:9701
- -listen-http=0.0.0.0:9702
ports:
- containerPort: 9701
name: grpc
- containerPort: 9702
name: http
livenessProbe:
tcpSocket:
port: grpc
livenessProbe:
httpGet:
path: /
port: http
scheme: HTTPS
resources:
requests:
cpu: 100m
memory: 256Mi
securityContext:
fsGroup: 1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment