This file contains hidden or 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
# dex config: | |
# ... | |
# staticClients: | |
# - id: netbird-backend | |
# name: netbird-backend | |
# redirectURIs: | |
# - https://netbird.example.com | |
# - https://netbird.example.com/#callback | |
# secret: <DEX_NETBIRD_BACKEND_SECRET> | |
# - id: netbird-client |
This file contains hidden or 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
# An OIDC provider is required (e.g., Dex). | |
# OIDC must be configured for the kube-apiserver. For example: | |
# - --oidc-client-id=kubernetes-oidc | |
# - --oidc-groups-claim=groups | |
# - --oidc-issuer-url=https://dex.example.com | |
# - --oidc-username-claim=email | |
# For cloud setups, you can use kube-oidc-proxy (https://github.com/TremoloSecurity/kube-oidc-proxy) | |
# | |
# <secret_cookie_auth_key> - 32 bytes string (regex: a-z0-9, example: rpb7aos4rd0m32x9omcrcqacnia0xty2) | |
# <secret_cookie_enc_key> - 32 bytes string (regex: a-z0-9, example: gg1ejofgupoc19wyuywr2yflm75aeiwg) |
This file contains hidden or 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
{ | |
"arr": [ | |
{ | |
"containerPort": 53, | |
"name": "dns", | |
"protocol": "TCP" | |
}, | |
{ | |
"containerPort": 8443, | |
"name": "https", |
This file contains hidden or 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
local h = import './helpers.jsonnet'; | |
local object = { | |
arr: [ | |
{ | |
containerPort: 53, | |
name: 'dns', | |
protocol: 'TCP', | |
}, | |
{ |
This file contains hidden or 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
{ | |
mapArrayByField(f, mixinField):: { | |
local m = super[mixinField], | |
[mixinField]: std.prune(std.map(f, m)) | |
}, | |
mapArrayWithField(fieldValues, fieldName, mixinField, f):: ( | |
local fieldValuesSet = std.set(fieldValues); | |
local inFieldValuesSet(value) = std.length(std.setInter(fieldValuesSet, std.set([value]))) > 0; |
This file contains hidden or 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
apiVersion: kyverno.io/v1 | |
kind: ClusterPolicy | |
metadata: | |
name: disallow-host-namespaces | |
spec: | |
background: true | |
failurePolicy: Fail | |
rules: | |
- match: | |
any: |
This file contains hidden or 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
apiVersion: templates.gatekeeper.sh/v1beta1 | |
kind: ConstraintTemplate | |
metadata: | |
name: k8spsphostnamespace | |
annotations: | |
description: Controls usage of host namespaces. | |
spec: | |
crd: | |
spec: | |
names: |
This file contains hidden or 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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: pre-stop | |
labels: | |
app: pre-stop | |
spec: | |
replicas: 1 | |
revisionHistoryLimit: 2 | |
selector: |
This file contains hidden or 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
variable "data" { | |
default = [ | |
{ | |
name = "vapp1" | |
metadata = { | |
a = 1 | |
b = 2 | |
} | |
virtuals = [ | |
{ name = "v1" }, |
This file contains hidden or 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
vapp1/v1: | |
name: vapp1-v1 | |
metadata: | |
a: 1 | |
b: 2 | |
vapp1/v2: | |
name: vapp1-v2 | |
metadata: | |
a: 1 | |
b: 2 |
NewerOlder