-
Notifications
You must be signed in to change notification settings - Fork 2
/
aks-manifest.yml
41 lines (41 loc) · 1021 Bytes
/
aks-manifest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
apiVersion: apps/v1
kind: Deployment
metadata:
name: octopus-deployment
labels:
app: web
spec:
selector:
matchLabels:
octopusexport: OctopusExport
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: web
octopusexport: OctopusExport
spec:
containers:
- name: code-snake
image: ghcr.io/es-na-battlesnake/code-snake
ports:
- name: go-8081
containerPort: 8081
protocol: TCP
- name: ruby-4567
containerPort: 4567
protocol: TCP
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- web
topologyKey: kubernetes.io/hostname