mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
Merge pull request #565 from ewhal/kubernetes-config
Add kubernetes config file for test net
This commit is contained in:
commit
dd23b04209
1 changed files with 76 additions and 0 deletions
76
contrib/kubernetes/kubernetes.yaml
Normal file
76
contrib/kubernetes/kubernetes.yaml
Normal file
|
@ -0,0 +1,76 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: loki-network
|
||||||
|
labels:
|
||||||
|
app: loki-network
|
||||||
|
spec:
|
||||||
|
type: NodePort
|
||||||
|
ports:
|
||||||
|
- protocol: UDP
|
||||||
|
port: 1090
|
||||||
|
name: udp-1
|
||||||
|
targetPort: 1090
|
||||||
|
- protocol: UDP
|
||||||
|
port: 1190
|
||||||
|
name: udp-2
|
||||||
|
targetPort: 1190
|
||||||
|
selector:
|
||||||
|
app: loki-network
|
||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
description: loki-network lokinet
|
||||||
|
keel.sh/pollSchedule: "@every 1m"
|
||||||
|
keel.sh/notify: deployments # chat channels to sent notification to
|
||||||
|
generation: 1
|
||||||
|
labels:
|
||||||
|
app: loki-network
|
||||||
|
keel.sh/policy: force # update policy (available: patch, minor, major, all, force)
|
||||||
|
keel.sh/trigger: poll # enable active repository checking (webhooks and GCR would still work)
|
||||||
|
keel.sh/approvals: "0" # required approvals to update
|
||||||
|
keel.sh/match-tag: "true" # only makes a difference when used with 'force' policy, will only update if tag matches :dev->:dev, :prod->:prod
|
||||||
|
name: loki-network
|
||||||
|
spec:
|
||||||
|
progressDeadlineSeconds: 600
|
||||||
|
replicas: 3
|
||||||
|
revisionHistoryLimit: 20
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: loki-network
|
||||||
|
strategy:
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 25%
|
||||||
|
maxUnavailable: 25%
|
||||||
|
type: RollingUpdate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
description: loki-network lokinet
|
||||||
|
creationTimestamp: null
|
||||||
|
labels:
|
||||||
|
app: loki-network
|
||||||
|
name: loki-network
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: 092763672147.dkr.ecr.us-east-1.amazonaws.com/loki/loki-network:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
name: loki-network
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
terminationMessagePath: /dev/termination-log
|
||||||
|
terminationMessagePolicy: File
|
||||||
|
ports:
|
||||||
|
- protocol: UDP
|
||||||
|
containerPort: 1090
|
||||||
|
name: udp-1
|
||||||
|
- protocol: UDP
|
||||||
|
containerPort: 1190
|
||||||
|
name: udp-2
|
||||||
|
dnsPolicy: ClusterFirst
|
||||||
|
restartPolicy: Always
|
||||||
|
schedulerName: default-scheduler
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
|
status: {}
|
Loading…
Reference in a new issue