From 6a36794d7662736830829376ce86895a66a0207a Mon Sep 17 00:00:00 2001 From: Brett Fowle Date: Tue, 29 Jan 2019 22:23:49 -0500 Subject: [PATCH] add argus-eye configs --- configs/tools/argus-eye-k8s.yaml | 55 +++++++++++++++++ configs/tools/argus-eye-openshift.yaml | 83 ++++++++++++++++++++++++++ 2 files changed, 138 insertions(+) create mode 100644 configs/tools/argus-eye-k8s.yaml create mode 100644 configs/tools/argus-eye-openshift.yaml diff --git a/configs/tools/argus-eye-k8s.yaml b/configs/tools/argus-eye-k8s.yaml new file mode 100644 index 0000000..606f15e --- /dev/null +++ b/configs/tools/argus-eye-k8s.yaml @@ -0,0 +1,55 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: argus-eye + namespace: argus + labels: + app: argus-eye +spec: + replicas: 1 + selector: + matchLabels: + app: argus-eye + template: + metadata: + labels: + app: argus-eye + spec: + containers: + - name: argus-eye + image: clustergarage/argus-eye:v0.1.0 + ports: + - name: node + containerPort: 3000 + volumeMounts: + - name: dockersock + mountPath: /var/run/docker.sock + securityContext: + capabilities: + add: + - SYS_ADMIN + - SYS_PTRACE + hostPID: true + serviceAccountName: argus-admin + volumes: + - name: dockersock + hostPath: + path: /var/run/docker.sock +--- +apiVersion: v1 +kind: Service +metadata: + name: argus-eye + namespace: argus + labels: + app: argus-eye +spec: + selector: + app: argus-eye + clusterIP: None + ports: + - name: node + protocol: TCP + port: 3000 + targetPort: node diff --git a/configs/tools/argus-eye-openshift.yaml b/configs/tools/argus-eye-openshift.yaml new file mode 100644 index 0000000..63a6e57 --- /dev/null +++ b/configs/tools/argus-eye-openshift.yaml @@ -0,0 +1,83 @@ +--- +apiVersion: v1 +kind: ImageStream +metadata: + labels: + app: argus-eye + name: argus-eye + namespace: argus +spec: + tags: + - name: v0.1.0 + from: + kind: DockerImage + name: clustergarage/argus-eye:v0.1.0 + - name: latest + from: + kind: DockerImage + name: clustergarage/argus-eye:latest +--- +apiVersion: v1 +kind: DeploymentConfig +metadata: + name: argus-eye + namespace: argus + labels: + app: argus-eye +spec: + replicas: 1 + selector: + app: argus-eye + template: + metadata: + labels: + app: argus-eye + spec: + containers: + - name: argus-eye + image: clustergarage/argus-eye:v0.1.0 + ports: + - name: node + containerPort: 3000 + volumeMounts: + - name: dockersock + mountPath: /var/run/docker.sock + securityContext: + capabilities: + add: + - SYS_ADMIN + - SYS_PTRACE + hostPID: true + qosClass: Guaranteed + serviceAccountName: argus-admin + volumes: + - name: dockersock + hostPath: + path: /var/run/docker.sock + triggers: + - type: ConfigChange + - type: ImageChange + imageChangeParams: + automatic: true + containerNames: + - argus-eye + from: + kind: ImageStreamTag + name: argus-eye:v0.1.0 +--- +apiVersion: v1 +kind: Service +metadata: + name: argus-eye + namespace: argus + labels: + app: argus-eye +spec: + selector: + app: argus-eye + clusterIP: None + ports: + - name: node + protocol: TCP + port: 3000 + targetPort: node