Add Pangolin Newt site connector for home-cluster
This commit is contained in:
parent
bf68b631d0
commit
aef669c115
1 changed files with 51 additions and 0 deletions
51
cluster/pangolin-newt.yaml
Normal file
51
cluster/pangolin-newt.yaml
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: pangolin
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: newt-credentials
|
||||||
|
namespace: pangolin
|
||||||
|
type: Opaque
|
||||||
|
stringData:
|
||||||
|
NEWT_ID: "mz1ixml2gg3vezk"
|
||||||
|
NEWT_SECRET: "0zwoklb1esw269r2pyf4x65dn0llgl8nnsdssmnzqbkwkv00"
|
||||||
|
PANGOLIN_ENDPOINT: "https://pangolin.w5isp.com"
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: newt
|
||||||
|
namespace: pangolin
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: newt
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: newt
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: newt
|
||||||
|
image: fosrl/newt:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: newt-credentials
|
||||||
|
securityContext:
|
||||||
|
capabilities:
|
||||||
|
add:
|
||||||
|
- NET_ADMIN
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "128Mi"
|
||||||
|
cpu: "100m"
|
||||||
|
limits:
|
||||||
|
memory: "256Mi"
|
||||||
|
cpu: "200m"
|
||||||
|
restartPolicy: Always
|
||||||
Loading…
Add table
Reference in a new issue