Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 28 additions & 2 deletions manifests/ate-install/atenet-dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ metadata:
labels:
app: dns
spec:
replicas: 1
replicas: 2
strategy:
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
selector:
matchLabels:
app: dns
Expand All @@ -89,6 +93,13 @@ spec:
app: dns
spec:
serviceAccountName: atenet-dns
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: dns
shareProcessNamespace: true
initContainers:
- name: init-dns
Expand All @@ -112,6 +123,10 @@ spec:
containers:
- name: coredns
image: coredns/coredns:1.11.1
lifecycle:
preStop:
sleep:
seconds: 5
imagePullPolicy: IfNotPresent
args: [ "-conf", "/etc/coredns/Corefile" ]
volumeMounts:
Expand Down Expand Up @@ -173,4 +188,15 @@ spec:
protocol: UDP
- name: dns-tcp
port: 53
protocol: TCP
protocol: TCP
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: dns
namespace: ate-system
spec:
maxUnavailable: 1
selector:
matchLabels:
app: dns
38 changes: 37 additions & 1 deletion manifests/ate-install/atenet-router.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ metadata:
labels:
app: atenet-router
spec:
replicas: 1
replicas: 2
strategy:
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
selector:
matchLabels:
app: atenet-router
Expand All @@ -120,6 +124,13 @@ spec:
prometheus.io/port: "9090"
spec:
serviceAccountName: atenet-router
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: atenet-router
containers:
- name: atenet-router
image: ko://github.com/agent-substrate/substrate/cmd/atenet
Expand Down Expand Up @@ -172,6 +183,11 @@ spec:
# Trust bundle used to verify ateapi's servicedns serving cert.
- name: "servicedns-ca"
mountPath: "/run/servicedns-ca"
# Keep ext_proc alive while the draining envoy still receives traffic.
lifecycle:
preStop:
sleep:
seconds: 5
- name: envoy
image: envoyproxy/envoy:v1.30-latest
command:
Expand All @@ -187,6 +203,15 @@ spec:
containerPort: 8443
- name: admin
containerPort: 9901
readinessProbe:
httpGet:
path: /ready
port: 9901
periodSeconds: 5
lifecycle:
preStop:
sleep:
seconds: 5
volumeMounts:
- name: envoy-config
mountPath: /etc/envoy
Expand Down Expand Up @@ -257,3 +282,14 @@ spec:
port: 4040
targetPort: status
protocol: TCP
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: atenet-router
namespace: ate-system
spec:
maxUnavailable: 1
selector:
matchLabels:
app: atenet-router
Loading