Created
October 21, 2020 18:46
-
-
Save jbayer/3de98c1a0b5f60d9539d455b8abcc475 to your computer and use it in GitHub Desktop.
Waypoint Kubernetes installation yaml example
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
$ waypoint install -platform=kubernetes -show-yaml -accept-tos | |
❌ Inspecting Kubernetes cluster... | |
--- | |
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