mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-22 19:29:13 +08:00
feat(ql3): establish 3.0 incubation baseline
This commit is contained in:
+51
@@ -0,0 +1,51 @@
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/env
|
||||
value:
|
||||
- name: QL3_PROFILE
|
||||
value: cluster-admin
|
||||
- name: QL3_MODEL_PROVIDER_CREDENTIAL_TEST_EXECUTOR_ENABLED
|
||||
value: 'true'
|
||||
- name: QL3_MODEL_PROVIDER_CREDENTIAL_TEST_WRITE_TERMINATION_MESSAGE
|
||||
value: 'true'
|
||||
- name: QL3_MODEL_PROVIDER_CREDENTIAL_TEST_COMMAND_FILE
|
||||
value: /var/run/qinglong3/provider-credential-test/command.json
|
||||
- name: QL3_MODEL_PROVIDER_CREDENTIAL_TEST_ALLOWLIST_FILE
|
||||
value: /var/run/qinglong3/provider-credential-test/allowlist.json
|
||||
- name: QL3_MODEL_PROVIDER_CREDENTIAL_TEST_SECRET_ROOT
|
||||
value: /var/run/secrets/qinglong3/provider-credential-test
|
||||
- name: QL3_MODEL_PROVIDER_CREDENTIAL_TEST_DENY_CANARY_HOST
|
||||
value: kubernetes.default.svc
|
||||
- name: QL3_MODEL_PROVIDER_CREDENTIAL_TEST_DENY_CANARY_PORT
|
||||
value: '443'
|
||||
- name: QL3_POSTGRES_AI_CREDENTIAL_TESTER_TLS_MODE
|
||||
value: verify-full
|
||||
- name: QL3_POSTGRES_AI_CREDENTIAL_TESTER_TLS_CA_FILE
|
||||
value: /var/run/secrets/qinglong3/postgres-ai-credential-tester/ca.crt
|
||||
- name: QL3_POSTGRES_AI_CREDENTIAL_TESTER_APPLICATION_NAME
|
||||
value: qinglong3-ai-credential-tester
|
||||
- name: QL3_POSTGRES_AI_CREDENTIAL_TESTER_POOL_MAX
|
||||
value: '1'
|
||||
- name: QL3_POSTGRES_AI_CREDENTIAL_TESTER_HOST
|
||||
value: ql3-postgres-rw.qinglong3-system.svc
|
||||
- name: QL3_POSTGRES_AI_CREDENTIAL_TESTER_PORT
|
||||
value: '5432'
|
||||
- name: QL3_POSTGRES_AI_CREDENTIAL_TESTER_DATABASE
|
||||
value: qinglong
|
||||
- name: QL3_POSTGRES_AI_CREDENTIAL_TESTER_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: ql3-postgres-ai-credential-tester-auth
|
||||
key: username
|
||||
- name: QL3_POSTGRES_AI_CREDENTIAL_TESTER_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: ql3-postgres-ai-credential-tester-auth
|
||||
key: password
|
||||
- name: QL3_POSTGRES_AI_CREDENTIAL_TESTER_TLS_SERVERNAME
|
||||
value: ql3-postgres-rw.qinglong3-system.svc
|
||||
- op: replace
|
||||
path: /spec/template/spec/volumes/3/secret/secretName
|
||||
value: ql3-postgres-ca
|
||||
- op: replace
|
||||
path: /spec/template/spec/volumes/3/secret/items/0/key
|
||||
value: ca.crt
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- ../base
|
||||
|
||||
patches:
|
||||
- path: job-patch.yaml
|
||||
target:
|
||||
group: batch
|
||||
version: v1
|
||||
kind: Job
|
||||
name: ql3-provider-credential-test-executor
|
||||
- path: network-policy-patch.yaml
|
||||
target:
|
||||
group: networking.k8s.io
|
||||
version: v1
|
||||
kind: NetworkPolicy
|
||||
name: ql3-provider-credential-test-executor
|
||||
|
||||
images:
|
||||
- name: qinglong3-cluster-admin
|
||||
newName: registry.example.com/qinglong/qinglong3-cluster-admin
|
||||
digest: sha256:0000000000000000000000000000000000000000000000000000000000000000
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: ql3-provider-credential-test-executor
|
||||
namespace: qinglong3-system
|
||||
spec:
|
||||
egress:
|
||||
- to:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: kube-system
|
||||
podSelector:
|
||||
matchLabels:
|
||||
k8s-app: kube-dns
|
||||
ports:
|
||||
- protocol: UDP
|
||||
port: 53
|
||||
- protocol: TCP
|
||||
port: 53
|
||||
- to:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
cnpg.io/cluster: ql3-postgres
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 5432
|
||||
Reference in New Issue
Block a user