Skip to content

Instantly share code, notes, and snippets.

@jbayer
Created October 23, 2020 18:20
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/9dfeb0e2121841fecb76275372980c79 to your computer and use it in GitHub Desktop.
Save jbayer/9dfeb0e2121841fecb76275372980c79 to your computer and use it in GitHub Desktop.
Waypoint Install on Kubernetes YAML
---
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: StatefulSet
metadata:
name: waypoint-server
namespace: default
labels:
app: waypoint-server
spec:
selector:
matchLabels:
app: waypoint-server
serviceName: 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
volumeMounts:
- name: data
mountPath: /data
securityContext:
fsGroup: 1000
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment