Skip to content

Commit

Permalink
SWIN 22 spp model
Browse files Browse the repository at this point in the history
  • Loading branch information
ChromaticPanic committed Dec 4, 2024
1 parent 4de75c3 commit d7e6532
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nachet-swin-classifier-22-spp
namespace: nachet
spec:
replicas: 2
revisionHistoryLimit: 3
selector:
matchLabels:
app: nachet-swin-classifier-22-spp
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
app: nachet-swin-classifier-22-spp
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- nachet-swin-classifier-22-spp
topologyKey: "kubernetes.io/hostname"
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/role
operator: In
values:
- agent
containers:
- name: nachet-swin-classifier-22-spp
image: ghcr.io/ai-cfia/nachet-backend:29-azureml-swin-classifier-22-spp
imagePullPolicy: Always
command: ["/bin/sh", "-c"]
args: ['./startup.sh']
envFrom:
- secretRef:
name: nachet-swin-classifier-secrets
ports:
- containerPort: 5001
volumeMounts:
- name: logs
mountPath: /app/logs
- name: tmp
mountPath: /tmp
livenessProbe:
httpGet:
path: /
port: 5001
initialDelaySeconds: 60
periodSeconds: 10
resources:
requests:
cpu: "250m"
memory: "1Gi"
limits:
cpu: "500m"
memory: "2Gi"
securityContext:
runAsNonRoot: false
runAsUser: 1000
runAsGroup: 1000
readOnlyRootFilesystem: false
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumes:
- name: tmp
emptyDir:
medium: Memory
sizeLimit: 500Mi
- name: logs
persistentVolumeClaim:
claimName: nachet-swin-22-spp-logs-pvc
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nachet-swin-22-spp-logs-pvc
spec:
storageClassName: azurefile
accessModes:
- ReadWriteMany
resources:
requests:
storage: 2Gi
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: nachet-swin-classifier-22-spp-pdb
namespace: nachet
spec:
minAvailable: 1
selector:
matchLabels:
app: nachet-swin-classifier-22-spp
---
apiVersion: v1
kind: Service
metadata:
name: nachet-swin-classifier-22-spp-svc
namespace: nachet
spec:
clusterIP: None
selector:
app: nachet-swin-classifier-22-spp
ports:
- protocol: TCP
port: 5001
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: nachet-swin-classifier
namespace: nachet
spec:
replicas: 1
replicas: 2
revisionHistoryLimit: 3
selector:
matchLabels:
Expand Down

0 comments on commit d7e6532

Please sign in to comment.