Created
November 1, 2020 19:06
-
-
Save jbayer/eb7374511b4a9d37efade7a7ae9093a9 to your computer and use it in GitHub Desktop.
Waypoint 0.1.4 k8s yaml for Digital Ocean
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
--- | |
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 | |
initContainers: | |
- name: data-permission-fix | |
image: busybox | |
command: ["/bin/chmod","-R","777", "/data"] | |
volumeMounts: | |
- name: data | |
mountPath: /data | |
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