Created
May 19, 2017 03:44
-
-
Save goindwalia/2ea663bbc37dced40a2b4f838d92f728 to your computer and use it in GitHub Desktop.
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 characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: <name of application> | |
namespace: <namespace of Kubernetes> | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
k8s-app: <name of application> | |
spec: | |
containers: | |
- name: <name of application> | |
image: <image name >:<version tag> | |
imagePullPolicy: "IfNotPresent" | |
ports: | |
- containerPort: 8082 | |
volumeMounts: | |
- mountPath: /kotlin-data | |
name: <name of application> | |
volumes: | |
- name: <name of application> | |
emptyDir: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment