Created
December 23, 2017 05:39
-
-
Save xenonstack1/2572f788a946c48b2783192c6e415950 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: 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: 80 | |
volumeMounts: | |
- mountPath: /var/www | |
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