Skip to content

Instantly share code, notes, and snippets.

@ethinx
Created April 19, 2023 01:12
Show Gist options
  • Select an option

  • Save ethinx/59a0a7b8d9f2dc33edcc9fd24c9e3724 to your computer and use it in GitHub Desktop.

Select an option

Save ethinx/59a0a7b8d9f2dc33edcc9fd24c9e3724 to your computer and use it in GitHub Desktop.

Revisions

  1. ethinx created this gist Apr 19, 2023.
    55 changes: 55 additions & 0 deletions pipy-ok.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,55 @@
    apiVersion: apps/v1
    kind: Deployment
    metadata:
    name: pipy-ok
    labels:
    app: pipy-ok
    spec:
    replicas: 1
    selector:
    matchLabels:
    app: pipy-ok
    template:
    metadata:
    labels:
    app: pipy-ok
    spec:
    containers:
    - name: pipy
    image: flomesh/pipy:0.90.0-54
    ports:
    - name: pipy
    containerPort: 8080
    command:
    - pipy
    - -e
    - |
    pipy()
    .listen(8080)
    .serveHTTP(new Message(`Hi, I am ${os.env.HOSTNAME}!\n`))
    ---
    apiVersion: v1
    kind: Service
    metadata:
    name: pipy-ok
    spec:
    ports:
    - name: pipy
    port: 8080
    targetPort: 8080
    protocol: TCP
    selector:
    app: pipy-ok
    ---
    apiVersion: v1
    kind: Service
    metadata:
    name: pipy-ok
    spec:
    ports:
    - name: pipy
    port: 8080
    targetPort: 8080
    protocol: TCP
    selector:
    app: pipy-ok