Skip to content

Instantly share code, notes, and snippets.

@TheBinitGhimire
Created March 9, 2022 04:02
Show Gist options
  • Select an option

  • Save TheBinitGhimire/641e09d448e75ed5ffc488bb6be6ae89 to your computer and use it in GitHub Desktop.

Select an option

Save TheBinitGhimire/641e09d448e75ed5ffc488bb6be6ae89 to your computer and use it in GitHub Desktop.

Revisions

  1. TheBinitGhimire created this gist Mar 9, 2022.
    15 changes: 15 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    # MobSF on Kubernetes

    ## Implementation

    ```bash
    kubectl apply -f mobsf.yaml
    ```

    ## Usage

    ```bash
    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.
    32 changes: 32 additions & 0 deletions mobsf.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    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