Last active
June 15, 2019 22:58
-
-
Save viveksinghggits/904b5dc54611bc4b8aee5fd2ae674f92 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: restapi-deployment | |
labels: | |
app: restapi | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: | |
app: restapi | |
template: | |
metadata: | |
labels: | |
app: restapi | |
spec: | |
containers: | |
- name: restapi | |
image: restapi:1.0 | |
env: | |
- name: APIPATH | |
value: "/api/books" | |
imagePullPolicy: IfNotPresent | |
ports: | |
- containerPort: 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment