Skip to content

Commit 158c681

Browse files
committed
fix ingress
1 parent 3bde9bb commit 158c681

File tree

2 files changed

+50
-44
lines changed

2 files changed

+50
-44
lines changed

Kubernetes Ingress.sublime-snippet

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<snippet>
22
<content><![CDATA[
33
apiVersion: extensions/v1beta1
4-
Kind: Ingress
4+
kind: Ingress
55
metadata:
66
name: ${1}
77
annotations:

Kubernetes Pod.sublime-snippet

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

0 commit comments

Comments
 (0)