Created
April 19, 2023 01:12
-
-
Save ethinx/59a0a7b8d9f2dc33edcc9fd24c9e3724 to your computer and use it in GitHub Desktop.
Revisions
-
ethinx created this gist
Apr 19, 2023 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal 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