updates
This commit is contained in:
parent
1656978dd7
commit
c41c6247ff
3 changed files with 162 additions and 0 deletions
29
clusters/aprs/aprs-rbac.yaml
Normal file
29
clusters/aprs/aprs-rbac.yaml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: aprs-service-account
|
||||
namespace: aprs
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: aprs-endpoints-reader
|
||||
namespace: aprs
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["endpoints", "pods"]
|
||||
verbs: ["list", "get"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: aprs-endpoints-reader-binding
|
||||
namespace: aprs
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
name: aprs-endpoints-reader
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: aprs-service-account
|
||||
namespace: aprs
|
||||
125
clusters/aprs/aprs-statefulset.yaml
Normal file
125
clusters/aprs/aprs-statefulset.yaml
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: aprs-headless
|
||||
namespace: aprs
|
||||
spec:
|
||||
clusterIP: None
|
||||
selector:
|
||||
app: aprs
|
||||
ports:
|
||||
- name: epmd
|
||||
port: 4369
|
||||
targetPort: 4369
|
||||
- name: erlang
|
||||
port: 9100
|
||||
targetPort: 9100
|
||||
- name: gossip
|
||||
port: 45892
|
||||
targetPort: 45892
|
||||
protocol: UDP
|
||||
publishNotReadyAddresses: true
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: aprs
|
||||
namespace: aprs
|
||||
spec:
|
||||
serviceName: aprs-headless
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: aprs
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: aprs
|
||||
spec:
|
||||
serviceAccountName: aprs-service-account
|
||||
imagePullSecrets:
|
||||
- name: ghcr-pull-secret
|
||||
containers:
|
||||
- name: aprs
|
||||
image: ghcr.io/aprsme/aprs.me:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 4000
|
||||
- containerPort: 4369
|
||||
name: epmd
|
||||
- containerPort: 9100
|
||||
name: erlang
|
||||
- containerPort: 45892
|
||||
name: gossip
|
||||
protocol: UDP
|
||||
env:
|
||||
- name: PHX_HOST
|
||||
value: "aprs.me"
|
||||
- name: PORT
|
||||
value: "4000"
|
||||
- name: DATABASE_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: aprs-secret
|
||||
key: database-url
|
||||
- name: SECRET_KEY_BASE
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: aprs-secret
|
||||
key: secret-key-base
|
||||
- name: PHX_SERVER
|
||||
value: "true"
|
||||
- name: MIX_ENV
|
||||
value: "prod"
|
||||
- name: APRS_CALLSIGN
|
||||
value: "W5ISP-1"
|
||||
- name: APRS_FILTER
|
||||
value: "r/33/-96/1000000000000"
|
||||
- name: APRS_PASSCODE
|
||||
value: "15748"
|
||||
- name: APRS_PORT
|
||||
value: "10152"
|
||||
- name: APRS_SERVER
|
||||
value: "dallas.aprs2.net"
|
||||
- name: PACKET_RETENTION_DAYS
|
||||
value: "7"
|
||||
- name: POOL_SIZE
|
||||
value: "20"
|
||||
- name: CLUSTER_ENABLED
|
||||
value: "true"
|
||||
- name: RELEASE_COOKIE
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: aprs-secret
|
||||
key: erlang-cookie
|
||||
- name: POD_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.name
|
||||
- name: POD_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: POD_IP
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: status.podIP
|
||||
resources:
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "250m"
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 4000
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 4000
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
|
|
@ -54,6 +54,14 @@ resource "dnsimple_zone_record" "w5isp_skippy" {
|
|||
ttl = 3600
|
||||
}
|
||||
|
||||
resource "dnsimple_zone_record" "w5isp_jellyfin" {
|
||||
zone_name = "w5isp.com"
|
||||
name = "jellyfin"
|
||||
value = "204.110.191.8"
|
||||
type = "A"
|
||||
ttl = 3600
|
||||
}
|
||||
|
||||
resource "dnsimple_zone_record" "w5isp_ha" {
|
||||
zone_name = "w5isp.com"
|
||||
name = "ha"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue