-
-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for Kismet on Docker / Kubernetes
* Copy in code: Change build process so code is copied in from the currently checked out directory, letting users build arbitrary branches or uncommitted code * Staged build: This reduces the number of depencencies installed in the final image, as well as eliminates any extraneous files that were generated during the build. * Change default configuration: Accept remote API connections from anywhere * Basic Kubernetes manifest for deploying with loadbalancer
- Loading branch information
1 parent
1bcd534
commit 656a84c
Showing
5 changed files
with
166 additions
and
40 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
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.
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,110 @@ | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
kubernetes.io/ingress.class: traefik | ||
labels: | ||
app: kismet | ||
name: kismet-ingress | ||
spec: | ||
rules: | ||
- host: kismet.localhost | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: kismet-service | ||
servicePort: http | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: kismet-service | ||
namespace: default | ||
spec: | ||
selector: | ||
app: kismet | ||
ports: | ||
- protocol: TCP | ||
port: 2501 | ||
name: http | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: kismet-data-pvc | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
storageClassName: local-path | ||
resources: | ||
requests: | ||
storage: 20Gi | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: kismet-config-pvc | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
storageClassName: local-path | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: kismet-api | ||
namespace: default | ||
spec: | ||
type: NodePort | ||
selector: | ||
app: kismet | ||
ports: | ||
- protocol: TCP | ||
port: 3501 | ||
nodePort: 30501 | ||
name: api | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: kismet | ||
namespace: default | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: kismet | ||
spec: | ||
volumes: | ||
- name: kismet-config | ||
persistentVolumeClaim: | ||
claimName: kismet-config-pvc | ||
- name: kismet-data | ||
persistentVolumeClaim: | ||
claimName: kismet-data-pvc | ||
containers: | ||
- image: quay.io/sketchybinary/kismet:master | ||
imagePullPolicy: Always | ||
name: kismet | ||
volumeMounts: | ||
- mountPath: /data/ | ||
name: kismet-data | ||
- mountPath: /root/.kismet | ||
name: kismet-config | ||
ports: | ||
- containerPort: 3501 | ||
name: api | ||
- containerPort: 2501 | ||
name: http | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
initialDelaySeconds: 5 | ||
periodSeconds: 3 | ||
--- |
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 +1,2 @@ | ||
# Overrides go here | ||
remote_capture_listen=0.0.0.0 |