github.com/inspektor-gadget/inspektor-gadget@v0.28.1/docs/examples/seccomp/basic.yaml (about)

     1  ---
     2  apiVersion: v1
     3  kind: Namespace
     4  metadata:
     5    name: seccomp-demo
     6  ---
     7  apiVersion: v1
     8  kind: ConfigMap
     9  metadata:
    10    name: app-script
    11    namespace: seccomp-demo
    12  data:
    13    main.py: |
    14      from flask import Flask
    15      app = Flask(__name__)
    16      @app.route("/")
    17      def hello():
    18        return "Hello World!\n"
    19      if __name__ == "__main__":
    20          app.run(host="0.0.0.0", debug=True, port=80)
    21    uwsgi.ini: |
    22      [uwsgi]
    23      module=main
    24      callable=app
    25  ---
    26  apiVersion: v1
    27  kind: Service
    28  metadata:
    29    name: hello-python-service
    30    namespace: seccomp-demo
    31  spec:
    32    selector:
    33      app: hello-python
    34    ports:
    35    - protocol: "TCP"
    36      port: 6000
    37      targetPort: 80
    38    type: LoadBalancer