Compare commits
4 commits
main
...
high-perfo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
301fc9acd5 | ||
|
|
b709d31b67 | ||
|
|
8f777775c9 | ||
|
|
3aa95c9d92 |
3 changed files with 93 additions and 1 deletions
38
.github/workflows/sync-to-forgejo.yml
vendored
Normal file
38
.github/workflows/sync-to-forgejo.yml
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
name: sync-to-forgejo
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- high-performance
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: sync-to-forgejo-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Push to Forgejo
|
||||
env:
|
||||
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git remote add forgejo "https://admin:${FORGEJO_TOKEN}@ci.nxtgauge.com/ashwin/${{ github.event.repository.name }}.git" 2>/dev/null || \
|
||||
git remote set-url forgejo "https://admin:${FORGEJO_TOKEN}@ci.nxtgauge.com/ashwin/${{ github.event.repository.name }}.git"
|
||||
git push forgejo "HEAD:${GITHUB_REF#refs/heads/}" --force
|
||||
|
|
@ -5,3 +5,4 @@ resources:
|
|||
- pvc.yaml
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- networkpolicy.yaml
|
||||
53
apps/ollama/base/networkpolicy.yaml
Normal file
53
apps/ollama/base/networkpolicy.yaml
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: ollama-ingress-restriction
|
||||
namespace: nxtgauge-ai
|
||||
labels:
|
||||
app: ollama
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app: ollama
|
||||
policyTypes:
|
||||
- Ingress
|
||||
ingress:
|
||||
# Allow traffic from users service (port 11434)
|
||||
- from:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
name: default
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app: users
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 11434
|
||||
# Allow traffic from payments service
|
||||
- from:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
name: default
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app: payments
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 11434
|
||||
# Allow traffic from nxtgauge-ai-assistant service
|
||||
- from:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
name: nxtgauge-ai
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app: nxtgauge-ai-assistant
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 11434
|
||||
# Allow traffic from within the same namespace (for health checks, etc.)
|
||||
- from:
|
||||
- podSelector: {}
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 11434
|
||||
Loading…
Add table
Reference in a new issue