Skip to content

Commit

Permalink
Merge pull request #2 from xtreme1-io/dev
Browse files Browse the repository at this point in the history
Update ci
  • Loading branch information
jaggerwang authored Feb 5, 2024
2 parents 7a9a443 + 8b976c7 commit 4165d92
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .ops/test/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: $APP_NAME
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app.kubernetes.io/name: xtreme1
app.kubernetes.io/instance: xtreme1
app.kubernetes.io/component: $APP_NAME
template:
metadata:
labels:
app.kubernetes.io/name: xtreme1
app.kubernetes.io/instance: xtreme1
app.kubernetes.io/component: $APP_NAME
spec:
nodeSelector:
dedicated: model
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: "app.kubernetes.io/name"
operator: In
values:
- xtreme1
- key: "app.kubernetes.io/instance"
operator: In
values:
- xtreme1
- key: "app.kubernetes.io/component"
operator: In
values:
- $APP_NAME
topologyKey: "kubernetes.io/hostname"
imagePullSecrets:
- name: basicai-registry
containers:
- name: $APP_NAME
image: $IMAGE
resources:
requests:
memory: 1Gi
cpu: 100m
limits:
aliyun.com/gpu-mem: 8
aliyun.com/gpu-core.percentage: 50
ports:
- name: http
containerPort: 5000
---
apiVersion: v1
kind: Service
metadata:
name: $APP_NAME
spec:
selector:
app.kubernetes.io/name: xtreme1
app.kubernetes.io/instance: xtreme1
app.kubernetes.io/component: $APP_NAME
ports:
- name: http
port: 80
targetPort: 5000

0 comments on commit 4165d92

Please sign in to comment.