-
Notifications
You must be signed in to change notification settings - Fork 7
/
Kubernetes Pod.sublime-snippet
57 lines (57 loc) · 1.34 KB
/
Kubernetes Pod.sublime-snippet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<snippet>
<content><![CDATA[
apiVersion: v1
kind: Pod
metadata:
name: ${1:Enter pod name}
namespace: ${2:default}
labels:
name: $1
annotations:
name: $1
spec:
containers:
- name: ${3:Enter container name}
image: ${4:Enter container image}
imagePullPolicy: ${5:Always} # Always|Nerver|IfNotPresent
# command: string
# workingDir: string
# volumeMounts:
# - name: string
# mountPath: string
# readOnly: boolean
# ports:
# - name: string
# containerPort: Int
# hostPort: Int
# protocol: string # TCP|UDP
# livenessProbe:
# httpGet:
# path: /healthz
# port: 8080
# initialDelaySeconds: 3
# periodSeconds: 3
# env:
# - name: string
# value: string
# resources:
# requests:
# limits:
# cpu: string
# memory: string
# volumes:
# - name: string
# emptyDir: {}
# hostPath:
# path: string
dnsPolicy: Default # Default|ClusterFirst
restartPolicy: Always # Always|OnFailure
# nodeSeletor:
# name: string
# imagePullSecrets:
# name: string
]]></content>
<tabTrigger>k8s:po</tabTrigger>
<scope>source.yaml</scope>
<description>Kubernetes Pod</description>
</snippet>