Skip to content

Commit

Permalink
Unify snippet structure and add new snippets (vscode-kubernetes-tools…
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBay0r authored and itowlson committed Oct 3, 2018
1 parent 0f732cf commit e06ec72
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 4 deletions.
10 changes: 10 additions & 0 deletions snippets/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: service
label: Kubernetes ConfigMap
description: Kubernetes ConfigMap
body: |2
apiVersion: v1
kind: ConfigMap
metadata:
name: ${1:myapp}
data:
${2:key}: ${3:value}
4 changes: 2 additions & 2 deletions snippets/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: pod
label: Kubernetes Pod
description: Kubernetes Pod
body: |2
kind: Pod
apiVersion: v1
kind: Pod
metadata:
name: ${1:myapp}
labels:
Expand All @@ -13,4 +13,4 @@ body: |2
- name: ${1:myapp}
image: ${2:<Image>}
ports:
- containerPort: ${3:<Port>}
- containerPort: ${3:<Port>}
23 changes: 23 additions & 0 deletions snippets/replicationcontroller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: replicationcontroller
label: Kubernetes ReplicationController
description: Kubernetes ReplicationController
body: |2
apiVersion: v1
kind: ReplicationController
metadata:
name: ${1:myapp}
spec:
replicas: ${2:<Replicas>}
selector:
app: ${1:myapp}
template:
metadata:
name: ${1:myapp}
labels:
app: ${1:myapp}
spec:
containers:
- name: ${1:myapp}
image: ${3:<Image>}
port:
- containerPort: ${4:<Port>}
4 changes: 2 additions & 2 deletions snippets/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: service
label: Kubernetes Service
description: Kubernetes Service
body: |2
kind: Service
apiVersion: v1
kind: Service
metadata:
name: ${1:myapp}
spec:
selector:
app: ${2:myapp}
ports:
- port: ${3:<Port>}
targetPort: ${4:<Target Port>}
targetPort: ${4:<Target Port>}

0 comments on commit e06ec72

Please sign in to comment.