Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save goindwalia/2ea663bbc37dced40a2b4f838d92f728 to your computer and use it in GitHub Desktop.
Save goindwalia/2ea663bbc37dced40a2b4f838d92f728 to your computer and use it in GitHub Desktop.
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