Skip to content

Instantly share code, notes, and snippets.

@TheBinitGhimire
Created March 9, 2022 04:02
Show Gist options
  • Save TheBinitGhimire/641e09d448e75ed5ffc488bb6be6ae89 to your computer and use it in GitHub Desktop.
Save TheBinitGhimire/641e09d448e75ed5ffc488bb6be6ae89 to your computer and use it in GitHub Desktop.
MobSF on Kubernetes!

MobSF on Kubernetes

Implementation

kubectl apply -f mobsf.yaml

Usage

kubectl port-forward service/mobsf-entrypoint 80:1337

Now, you will be able to access MobSF on your local port 80, i.e. http://localhost:80.

apiVersion: apps/v1
kind: Deployment
metadata:
name: mobsf-deployment
namespace: default
spec:
replicas: 1
selector:
matchLabels:
mobsf: web
template:
metadata:
labels:
mobsf: web
spec:
containers:
- name: mobsf-container
image: opensecurity/mobile-security-framework-mobsf
---
apiVersion: v1
kind: Service
metadata:
name: mobsf-entrypoint
namespace: default
spec:
type: NodePort
selector:
mobsf: web
ports:
- port: 1337
targetPort: 8000
nodePort: 31337
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment