-
Notifications
You must be signed in to change notification settings - Fork 1
Harden deployment pipeline and manifests #3
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| image: "vllm/vllm:latest" | ||
| image: "vllm/vllm:0.2.2" | ||
| modelURI: "s3://my-bucket/models/tiny-gpt2.tensors" | ||
| host: "vllm.example.com" | ||
| s3: | ||
| secretName: "" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| apiVersion: networking.k8s.io/v1 | ||
| kind: NetworkPolicy | ||
| metadata: | ||
| name: tensorizer-allow | ||
| spec: | ||
| podSelector: | ||
| matchLabels: | ||
| app: tensorizer | ||
| policyTypes: | ||
| - Ingress | ||
| - Egress | ||
| ingress: | ||
| - from: | ||
| - namespaceSelector: {} | ||
| ports: | ||
| - protocol: TCP | ||
| port: 8000 | ||
|
Comment on lines
+12
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚨 suggestion (security): NamespaceSelector with empty match allows traffic from all namespaces. If broad access is intended, please document the reasoning. Otherwise, restrict the namespaceSelector to limit access and enhance security. Suggested implementation: |
||
| egress: | ||
| - to: | ||
| - namespaceSelector: {} | ||
| ports: | ||
| - protocol: TCP | ||
|
Comment on lines
+18
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [P1] Egress policy isolates pod from S3 and other external endpoints The new NetworkPolicy only permits egress traffic to Kubernetes namespaces ( Useful? React with 👍 / 👎. |
||
| port: 443 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| apiVersion: v1 | ||
| kind: ServiceAccount | ||
| metadata: | ||
| name: tensorizer-sa | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: Role | ||
| metadata: | ||
| name: tensorizer-role | ||
| rules: | ||
| - apiGroups: [""] | ||
| resources: ["pods"] | ||
| verbs: ["get", "list"] | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: RoleBinding | ||
| metadata: | ||
| name: tensorizer-rolebinding | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: tensorizer-sa | ||
| roleRef: | ||
| apiGroup: rbac.authorization.k8s.io | ||
| kind: Role | ||
| name: tensorizer-role |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Default s3.secretName is empty; clarify expected behavior or provide a default.
An empty s3.secretName could cause deployment failures if not set. Please document this requirement or set a sensible default.