diff --git a/snippets/configmap.yaml b/snippets/configmap.yaml new file mode 100644 index 000000000..249ef7e31 --- /dev/null +++ b/snippets/configmap.yaml @@ -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} diff --git a/snippets/pod.yaml b/snippets/pod.yaml index a3880552a..0bca2eb94 100644 --- a/snippets/pod.yaml +++ b/snippets/pod.yaml @@ -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: @@ -13,4 +13,4 @@ body: |2 - name: ${1:myapp} image: ${2:} ports: - - containerPort: ${3:} \ No newline at end of file + - containerPort: ${3:} diff --git a/snippets/replicationcontroller.yaml b/snippets/replicationcontroller.yaml new file mode 100644 index 000000000..19c2f5ee4 --- /dev/null +++ b/snippets/replicationcontroller.yaml @@ -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:} + selector: + app: ${1:myapp} + template: + metadata: + name: ${1:myapp} + labels: + app: ${1:myapp} + spec: + containers: + - name: ${1:myapp} + image: ${3:} + port: + - containerPort: ${4:} diff --git a/snippets/service.yaml b/snippets/service.yaml index 6cf42261b..f3316fcd8 100644 --- a/snippets/service.yaml +++ b/snippets/service.yaml @@ -2,8 +2,8 @@ name: service label: Kubernetes Service description: Kubernetes Service body: |2 - kind: Service apiVersion: v1 + kind: Service metadata: name: ${1:myapp} spec: @@ -11,4 +11,4 @@ body: |2 app: ${2:myapp} ports: - port: ${3:} - targetPort: ${4:} \ No newline at end of file + targetPort: ${4:}