Restrict worker egress and publish manifest
Build and publish rule engine / release (push) Successful in 2m48s
Build and publish rule engine / release (push) Successful in 2m48s
This commit is contained in:
@@ -100,9 +100,12 @@ jobs:
|
||||
install "$RUNNER_TEMP/oras/oras" "$RUNNER_TEMP/oras-bin"
|
||||
printf '%s' "$HARBOR_PASSWORD" | "$RUNNER_TEMP/oras-bin" login harbor.k3s.k0.nu --username "$HARBOR_USERNAME" --password-stdin
|
||||
unset HARBOR_PASSWORD
|
||||
"$RUNNER_TEMP/oras-bin" push --artifact-type application/vnd.ai-spel.kubernetes-manifest.v1 \
|
||||
"harbor.k3s.k0.nu/ai-spel/rule-engine-manifest:$version" \
|
||||
"$package_dir/manifest.yaml:application/yaml"
|
||||
(
|
||||
cd "$package_dir"
|
||||
"$RUNNER_TEMP/oras-bin" push --artifact-type application/vnd.ai-spel.kubernetes-manifest.v1 \
|
||||
"harbor.k3s.k0.nu/ai-spel/rule-engine-manifest:$version" \
|
||||
"manifest.yaml:application/yaml"
|
||||
)
|
||||
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Deploy rule engine through Argo CD
|
||||
|
||||
@@ -14,7 +14,9 @@ Responses echo the correlation ID and have status `evaluated` or `rejected`.
|
||||
|
||||
The NATS user may subscribe only to the evaluation subject and publish only to
|
||||
reply inboxes. The service receives no credentials other than its own NATS
|
||||
identity and has no configured database or AI-provider secrets.
|
||||
identity and has no configured database or AI-provider secrets. Its chart
|
||||
limits pod egress to NATS and cluster DNS; Luau evaluation has no external
|
||||
network path.
|
||||
|
||||
## Local commands
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ spec:
|
||||
- to:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: ai-spel-nats
|
||||
app.kubernetes.io/instance: ai-spel-nats
|
||||
ports:
|
||||
- protocol: TCP
|
||||
@@ -20,9 +21,6 @@ spec:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: kube-system
|
||||
podSelector:
|
||||
matchLabels:
|
||||
k8s-app: kube-dns
|
||||
ports:
|
||||
- protocol: UDP
|
||||
port: 53
|
||||
|
||||
Reference in New Issue
Block a user