Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add(scheduler-shell.yaml): Add new k8s scheduler for shell #1034

Merged
merged 1 commit into from
Feb 21, 2025
Merged
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
90 changes: 90 additions & 0 deletions kube/aks/scheduler-shell.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
---
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Copyright (C) 2024 Collabora Limited
# Authors: Guillaume Tucker <[email protected]>
# Denys Fedoryshchenko <[email protected]>

apiVersion: apps/v1
kind: Deployment
metadata:
name: scheduler-shell
namespace: kernelci-pipeline
spec:
replicas: 1
selector:
matchLabels:
app: scheduler-shell
template:
metadata:
labels:
app: scheduler-shell
spec:
containers:
- name: scheduler
image: kernelci/kernelci:pipeline@sha256:34b13865be01a90b600604b7612f4cc048463d72626c2175ba2d2b40375eee12
imagePullPolicy: Always
command:
- ./src/scheduler.py
- --settings=/secrets/kernelci.toml
- --yaml-config=/config
- loop
- --name=scheduler_shell
- --runtimes
- shell
env:
- name: KCI_API_TOKEN
valueFrom:
secretKeyRef:
name: kernelci-api-token
key: token
- name: KCI_SSH_KEY
value: "/secrets/id_rsa"
resources:
requests:
memory: "256Mi"
cpu: "500m"
volumeMounts:
- name: secrets
mountPath: /secrets
- name: config-volume
mountPath: /config
- name: tmpsecrets
mountPath: /home/kernelci/secrets
- name: tmpsecrets
mountPath: /home/kernelci/.kube
subPath: k8s-credentials/.kube
- name: tmpsecrets
mountPath: /home/kernelci/.config/gcloud
subPath: k8s-credentials/.config/gcloud
- name: tmpsecrets
mountPath: /home/kernelci/.azure
subPath: k8s-credentials/.azure
initContainers:
- name: credentials
image: kernelci/kernelci:pipeline
imagePullPolicy: Always
volumeMounts:
- name: tmpsecrets
mountPath: /tmp/secrets
- name: k8scredentials
mountPath: /tmp/k8s
readOnly: true
command:
- tar
- xzf
- /tmp/k8s/k8s-credentials.tgz
- -C
- /tmp/secrets
volumes:
- name: secrets
secret:
secretName: pipeline-secrets
- name: config-volume
configMap:
name: pipeline-configmap
- name: k8scredentials
secret:
secretName: k8scredentials
- name: tmpsecrets
emptyDir: {}
Loading