Snippet how opa is started (it is a container spec for a kubernetes pod):
- name: opa
image: reg-dhc.app.corpintra.net/caas/opa:0.10.1
imagePullPolicy: Always
args:
- run
obj-m := asus_fan.o | |
KDIR := /lib/modules/$(shell uname -r)/build | |
PWD := $(shell pwd) | |
all: | |
$(MAKE) -C $(KDIR) M=$(PWD) modules | |
install: | |
# just copy the .ko file anywhere below: | |
# /lib/modules/$(uname -r)/ |
variable "hcloud_token" { | |
} | |
provider "hcloud" { | |
token = "${var.hcloud_token}" | |
} | |
resource "hcloud_server" "kube-master" { | |
name = "kube-master" | |
image = "ubuntu-18.04" |
variable "hcloud_token" { | |
} | |
provider "hcloud" { | |
token = "${var.hcloud_token}" | |
} | |
resource "hcloud_server" "kube-master" { | |
name = "kube-master" | |
image = "ubuntu-18.04" |
Here is how I start the policy-controller (args from container-spec snippet of a k8s pod):
args:
- --addr=https://127.0.0.1:7925
- --tls-cert-file=/etc/kubernetes/ssl/policy-controller/policy-controller-cert.pem
- --tls-private-key-file=/etc/kubernetes/ssl/policy-controller/policy-controller-key.key
- --opa-url=https://localhost:8181/v1
- --opa-ca-file=/etc/kubernetes/ssl/policy-controller/opa-ca.ca
- --opa-auth-token-file=/etc/kubernetes/ssl/policy-controller/policy-controller.authorization.token
- --log-level=info
I hereby claim:
To claim this, I am signing this object:
diff --git a/pkg/util/mount/nsenter_mount.go b/pkg/util/mount/nsenter_mount.go | |
index 5f013bb7ce..0b0eca412d 100644 | |
--- a/pkg/util/mount/nsenter_mount.go | |
+++ b/pkg/util/mount/nsenter_mount.go | |
@@ -167,6 +167,12 @@ func (n *NsenterMounter) IsLikelyNotMountPoint(file string) (bool, error) { | |
return true, err | |
} | |
+ // Check the directory is a corrupted mountpoint | |
+ if _, err = os.Stat(file); IsCorruptedMnt(err) { |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: foo | |
labels: | |
app: foo | |
spec: | |
ports: | |
- port: 8080 | |
name: web |