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
|
||||
|
||||
Reference in New Issue
Block a user