Resource | Amount |
---|---|
CPU | 4 Cores |
Memory | 12 GB |
Disk | 50 GB |
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: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: ingress-ok-2 | |
namespace: opa-example | |
spec: | |
rules: | |
- host: test2.secondok.com | |
http: | |
paths: |
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: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: ingress-ok | |
namespace: opa-example | |
spec: | |
rules: | |
- host: signin.ng.com | |
http: | |
paths: |
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
admissionControllerKind: MutatingWebhookConfiguration | |
opa: null | |
mgmt: | |
configmapPolicies: | |
enabled: true | |
namespaces: [opa, opa-example] | |
requireLabel: true | |
replicate: | |
cluster: | |
- v1/namespaces |
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
kubectl create namespace opa | |
helm repo add stable https://kubernetes-charts.storage.googleapis.com | |
helm repo up | |
helm install opa stable/opa -f helm-values.yaml --namespace opa |
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
package system | |
main = { | |
"apiVersion": "admission.k8s.io/v1beta1", | |
"kind": "AdmissionReview", | |
"response": { | |
"allowed": true, | |
"patchType": "JSONPatch", | |
"patch": patch_bytes, | |
} |
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
main = { #Start of value | |
"apiVersion": "admission.k8s.io/v1beta1", | |
"kind": "AdmissionReview", | |
"response": { | |
"allowed": true, | |
"patchType": "JSONPatch", | |
"patch": patch_bytes, | |
} | |
} #End of value | |
{ #Start of condition |
OlderNewer