Skip to content

Instantly share code, notes, and snippets.

@tmaiaroto
Created Apr 7, 2021
Embed
What would you like to do?
simple hydra k8 deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: hydra
namespace: default
labels:
version: "0.18.5.1"
app: hydra
spec:
selector:
matchLabels:
app: hydra
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
app: hydra
spec:
containers:
- name: hydra
image: tmaiaroto/hydra:latest
ports:
- containerPort: 3338
livenessProbe:
tcpSocket:
port: 3338
initialDelaySeconds: 5
periodSeconds: 30
timeoutSeconds: 15
env:
- name: MAINNET_PORT
value: "3338"
- name: TESTNET_PORT
value: "1334"
- name: TZ
value: "America/Los_Angeles"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment