Skip to content

Commit 99b3398

Browse files
committed
update to cloud builder and update deployment with cpu request and limit increases
1 parent 5e900bb commit 99b3398

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/build-and-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
- name: Build and push the Docker image
3333
run: |
34-
docker build -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.IMAGE_TAG }} .
34+
docker buildx build --builder cloud-demonstrationorg-default -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.IMAGE_TAG }} .
3535
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.IMAGE_TAG }}
3636
3737

out/base/model-deployment.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ spec:
2323
com.docker.compose.service: model
2424
com.docker.compose.network.default: "true"
2525
spec:
26+
nodeSelector:
27+
model: "true"
28+
tolerations:
29+
- key: "model"
30+
operator: "Equal"
31+
value: "true"
32+
effect: "NoSchedule"
2633
containers:
2734
- name: ollama
2835
image: ollama/ollama:0.6.2
@@ -32,8 +39,11 @@ spec:
3239
containerPort: 11434
3340
resources:
3441
requests:
35-
cpu: "250m"
36-
memory: "1Gi"
42+
cpu: "1000m"
43+
memory: "4Gi"
44+
limits:
45+
cpu: "2000m"
46+
memory: "6Gi"
3747
lifecycle:
3848
postStart:
3949
exec:

0 commit comments

Comments
 (0)