diff --git a/.github/workflows/deploy-network-policy-dev.yml b/.github/workflows/deploy-network-policy-dev.yml deleted file mode 100644 index d97ce4587..000000000 --- a/.github/workflows/deploy-network-policy-dev.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Deploy dev-gcp NetworkPolicy -on: - workflow_dispatch: - push: - branches: - - master - paths: - - .nais/network-policy/network-policy-dev.yaml - -jobs: - deploy_network_policy: - name: Deploy dev-gcp NetworkPolicy - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v3 - - name: Deploy to nais - uses: nais/deploy/actions/deploy@v1 - env: - CLUSTER: dev-gcp - APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }} - RESOURCE: .nais/network-policy/network-policy-dev.yaml \ No newline at end of file diff --git a/.github/workflows/deploy-network-policy-prod.yml b/.github/workflows/deploy-network-policy-prod.yml deleted file mode 100644 index c7fa50dca..000000000 --- a/.github/workflows/deploy-network-policy-prod.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Deploy prod-gcp NetworkPolicy -on: - workflow_dispatch: - push: - branches: - - master - paths: - - .nais/network-policy/network-policy-prod.yaml - -jobs: - deploy_network_policy: - name: Deploy prod-gcp NetworkPolicy - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v3 - - name: Deploy to nais - uses: nais/deploy/actions/deploy@v1 - env: - CLUSTER: prod-gcp - APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }} - RESOURCE: .nais/network-policy/network-policy-prod.yaml \ No newline at end of file diff --git a/.nais/config.yaml b/.nais/config.yaml index c3fa5666b..56a126a6b 100644 --- a/.nais/config.yaml +++ b/.nais/config.yaml @@ -29,6 +29,10 @@ spec: {{#each outboundHosts as |host|}} - host: {{host}} {{/each}} + inbound: + rules: + - application: "*" + namespace: "*" env: - name: BUILD_ID value: {{BUILD_ID}} diff --git a/.nais/network-policy/network-policy-dev.yaml b/.nais/network-policy/network-policy-dev.yaml deleted file mode 100644 index 69e667ae9..000000000 --- a/.nais/network-policy/network-policy-dev.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - labels: - team: personbruker - name: nav-dekoratoren-everyones-invited - namespace: personbruker -spec: - podSelector: - matchExpressions: - - { key: app, operator: In, values: [nav-dekoratoren, nav-dekoratoren-beta, nav-dekoratoren-beta-tms] } - ingress: - - from: - - namespaceSelector: {} - policyTypes: - - Ingress diff --git a/.nais/network-policy/network-policy-prod.yaml b/.nais/network-policy/network-policy-prod.yaml deleted file mode 100644 index f28bc51cc..000000000 --- a/.nais/network-policy/network-policy-prod.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - labels: - team: personbruker - name: nav-dekoratoren-everyones-invited - namespace: personbruker -spec: - podSelector: - matchLabels: - app: nav-dekoratoren - ingress: - - from: - - namespaceSelector: {} - policyTypes: - - Ingress