Created
May 27, 2019 22:32
-
-
Save xximjasonxx/abc84fb5d95d9c0ae0d4de8dd27563a8 to your computer and use it in GitHub Desktop.
This file contains 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 characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: stockapi-deployment | |
namespace: kube-demo | |
labels: | |
app: stockapi | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: | |
app: stockapi | |
type: pod | |
template: | |
metadata: | |
labels: | |
app: stockapi | |
type: pod | |
namespace: kube-demo | |
spec: | |
containers: | |
- name: stockapi-container | |
image: xximjasonxx/kubedemo-stockapi:v2.2.1 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: stockapi-service | |
namespace: kube-demo | |
spec: | |
selector: | |
app: stockapi | |
type: pod | |
ports: | |
- protocol: TCP | |
port: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment