Added snippets for Emacs
This commit is contained in:
18
emacs/.emacs.d/snippets/yaml-mode/k8ingress
Normal file
18
emacs/.emacs.d/snippets/yaml-mode/k8ingress
Normal file
@@ -0,0 +1,18 @@
|
||||
#key : k8s/ingress
|
||||
# --
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: ${1:foo}-ingress
|
||||
spec:
|
||||
rules:
|
||||
- host: $1.`system-name`
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: /
|
||||
backend:
|
||||
service:
|
||||
port:
|
||||
number: 80
|
||||
name: colour-service
|
||||
Reference in New Issue
Block a user