first commit
This commit is contained in:
28
tests/kustomize/code-server-nodeport/deployment-patch.yaml
Normal file
28
tests/kustomize/code-server-nodeport/deployment-patch.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/resources/requests/cpu
|
||||
value: "1"
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/resources/requests/memory
|
||||
value: 2Gi
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/resources/limits/cpu
|
||||
value: "2"
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/resources/limits/memory
|
||||
value: 4Gi
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/args/4
|
||||
value: /home/coder/workspace
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/volumeMounts/0/mountPath
|
||||
value: /home/coder/workspace
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/env/-
|
||||
value:
|
||||
name: OCDP_USERNAME
|
||||
value: test-user
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/env/-
|
||||
value:
|
||||
name: OCDP_GIT_REPO
|
||||
value: https://example.com/ocdp/test-workspace.git
|
||||
11
tests/kustomize/code-server-nodeport/generated-secret.yaml
Normal file
11
tests/kustomize/code-server-nodeport/generated-secret.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: code-server-auth
|
||||
labels:
|
||||
app.kubernetes.io/name: code-server
|
||||
app.kubernetes.io/component: auth
|
||||
app.kubernetes.io/part-of: ocdp-workload
|
||||
type: Opaque
|
||||
stringData:
|
||||
password: test-password
|
||||
25
tests/kustomize/code-server-nodeport/kustomization.yaml
Normal file
25
tests/kustomize/code-server-nodeport/kustomization.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: ocdp-workload-test
|
||||
nameSuffix: -test
|
||||
resources:
|
||||
- ../../../apps/code-server/base
|
||||
- generated-secret.yaml
|
||||
components:
|
||||
- ../../../apps/code-server/components/nfs
|
||||
- ../../../apps/code-server/components/service-nodeport
|
||||
patches:
|
||||
- path: deployment-patch.yaml
|
||||
target:
|
||||
group: apps
|
||||
version: v1
|
||||
kind: Deployment
|
||||
name: code-server
|
||||
- path: pvc-patch.yaml
|
||||
target:
|
||||
kind: PersistentVolumeClaim
|
||||
name: code-server-data
|
||||
- path: service-nodeport-patch.yaml
|
||||
target:
|
||||
kind: Service
|
||||
name: code-server
|
||||
4
tests/kustomize/code-server-nodeport/pvc-patch.yaml
Normal file
4
tests/kustomize/code-server-nodeport/pvc-patch.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
- op: replace
|
||||
path: /spec/resources/requests/storage
|
||||
value: 10Gi
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
- op: add
|
||||
path: /spec/ports/0/nodePort
|
||||
value: 30080
|
||||
|
||||
13
tests/kustomize/litellm-ingress/configmap-patch.yaml
Normal file
13
tests/kustomize/litellm-ingress/configmap-patch.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
- op: replace
|
||||
path: /data/config.yaml
|
||||
value: |
|
||||
model_list:
|
||||
- model_name: qwen
|
||||
litellm_params:
|
||||
model: openai/qwen2-5-7b
|
||||
api_base: os.environ/LITELLM_UPSTREAM_API_BASE
|
||||
api_key: os.environ/LITELLM_UPSTREAM_API_KEY
|
||||
litellm_settings:
|
||||
drop_params: true
|
||||
request_timeout: 600
|
||||
|
||||
13
tests/kustomize/litellm-ingress/deployment-patch.yaml
Normal file
13
tests/kustomize/litellm-ingress/deployment-patch.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/resources/requests/cpu
|
||||
value: "500m"
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/resources/requests/memory
|
||||
value: 1Gi
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/resources/limits/cpu
|
||||
value: "2"
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/resources/limits/memory
|
||||
value: 2Gi
|
||||
|
||||
14
tests/kustomize/litellm-ingress/generated-secret.yaml
Normal file
14
tests/kustomize/litellm-ingress/generated-secret.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: litellm-secrets
|
||||
labels:
|
||||
app.kubernetes.io/name: litellm
|
||||
app.kubernetes.io/component: auth
|
||||
app.kubernetes.io/part-of: ocdp-workload
|
||||
type: Opaque
|
||||
stringData:
|
||||
masterKey: sk-test-master
|
||||
saltKey: sk-test-salt
|
||||
upstreamApiKey: sk-no-key-required
|
||||
upstreamApiBase: http://vllm-server-test:8000/v1
|
||||
3
tests/kustomize/litellm-ingress/ingress-patch.yaml
Normal file
3
tests/kustomize/litellm-ingress/ingress-patch.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
- op: replace
|
||||
path: /spec/rules/0/host
|
||||
value: litellm.test.local
|
||||
24
tests/kustomize/litellm-ingress/kustomization.yaml
Normal file
24
tests/kustomize/litellm-ingress/kustomization.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: ocdp-workload-test
|
||||
nameSuffix: -test
|
||||
resources:
|
||||
- ../../../apps/litellm/base
|
||||
- generated-secret.yaml
|
||||
components:
|
||||
- ../../../apps/litellm/components/ingress
|
||||
patches:
|
||||
- path: configmap-patch.yaml
|
||||
target:
|
||||
kind: ConfigMap
|
||||
name: litellm-config
|
||||
- path: deployment-patch.yaml
|
||||
target:
|
||||
group: apps
|
||||
version: v1
|
||||
kind: Deployment
|
||||
name: litellm
|
||||
- path: ingress-patch.yaml
|
||||
target:
|
||||
kind: Ingress
|
||||
name: litellm
|
||||
@ -0,0 +1,19 @@
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/args/5
|
||||
value: Qwen/Qwen2.5-7B-Instruct
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/args/7
|
||||
value: qwen2-5-7b
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/resources/requests/cpu
|
||||
value: "4"
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/resources/requests/memory
|
||||
value: 24Gi
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/resources/limits/cpu
|
||||
value: "8"
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/resources/limits/memory
|
||||
value: 48Gi
|
||||
|
||||
@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: vllm-secrets
|
||||
labels:
|
||||
app.kubernetes.io/name: vllm-server
|
||||
app.kubernetes.io/component: auth
|
||||
app.kubernetes.io/part-of: ocdp-workload
|
||||
type: Opaque
|
||||
stringData:
|
||||
hfToken: ""
|
||||
|
||||
22
tests/kustomize/vllm-server-loadbalancer/kustomization.yaml
Normal file
22
tests/kustomize/vllm-server-loadbalancer/kustomization.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: ocdp-workload-test
|
||||
nameSuffix: -test
|
||||
resources:
|
||||
- ../../../apps/vllm-server/base
|
||||
- generated-secret.yaml
|
||||
components:
|
||||
- ../../../apps/vllm-server/components/gpu-nvidia
|
||||
- ../../../apps/vllm-server/components/pvc-cache
|
||||
- ../../../apps/vllm-server/components/service-loadbalancer
|
||||
patches:
|
||||
- path: deployment-patch.yaml
|
||||
target:
|
||||
group: apps
|
||||
version: v1
|
||||
kind: Deployment
|
||||
name: vllm-server
|
||||
- path: pvc-patch.yaml
|
||||
target:
|
||||
kind: PersistentVolumeClaim
|
||||
name: vllm-cache
|
||||
4
tests/kustomize/vllm-server-loadbalancer/pvc-patch.yaml
Normal file
4
tests/kustomize/vllm-server-loadbalancer/pvc-patch.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
- op: replace
|
||||
path: /spec/resources/requests/storage
|
||||
value: 200Gi
|
||||
|
||||
Reference in New Issue
Block a user