-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* doc(usage): simplify ssl passthrough instructions * feat: add loki, promtail and otlp * feat(vso): move files to dir * feat: configure ingress w/ yaml * feat: add network policies * feat: use github svc icon * feat: comment otlp config file
- Loading branch information
Showing
27 changed files
with
320 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Test network policies | ||
Kubernetes and/or Cilium network policies can be applied by enabling the Terraform variables: | ||
``` | ||
enable_kubernetes_network_policies = true | ||
enable_cilium_network_policies = true | ||
``` | ||
|
||
Ensure Minikube/kind has the network plugin enabled and Cilium CNI installed. | ||
|
||
## Positive test | ||
Push test metrics to `vault-audit` Loki tenant from `otlp` namespace: | ||
```bash | ||
kubectl run --rm -it debug --image=curlimages/curl -n otlp -- sh | ||
$ curl -X POST http://loki.loki.svc.cluster.local:3100/loki/api/v1/push -H "X-Scope-OrgID: vault-audit" -H "Content-Type: application/json" --data-raw "{\"streams\": [{ \"stream\": { \"foo\": \"bar2\" }, \"values\": [ [ \"$(date +%s)000000000\", \"fizzbuzz-$(date +%s)\" ] ] }]}" | ||
``` | ||
|
||
## Negative test | ||
Push test metrics to `vault-audit` Loki tenant from `default` namespace: | ||
```bash | ||
kubectl run --rm -it debug --image=curlimages/curl -n default -- sh | ||
$ curl -X POST http://loki.loki.svc.cluster.local:3100/loki/api/v1/push -H "X-Scope-OrgID: vault-audit" -H "Content-Type: application/json" --data-raw "{\"streams\": [{ \"stream\": { \"foo\": \"bar2\" }, \"values\": [ [ \"$(date +%s)000000000\", \"fizzbuzz-$(date +%s)\" ] ] }]}" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
resource "vault_audit" "file" { | ||
resource "vault_audit" "stdout" { | ||
type = "file" | ||
|
||
options = { | ||
file_path = "stdout" | ||
} | ||
} | ||
} | ||
|
||
resource "vault_audit" "otel" { | ||
type = "socket" | ||
path = "otel_socket" | ||
|
||
options = { | ||
address = "opentelemetry-collector.otlp.svc.cluster.local:54525" | ||
socket_type = "tcp" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
Vault-Deployment/manifests/network-policies/cilium-policies.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
apiVersion: "cilium.io/v2" | ||
kind: CiliumNetworkPolicy | ||
# TODO |
Oops, something went wrong.