Skip to content

Instantly share code, notes, and snippets.

@shimont
Created May 13, 2022 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shimont/475bfb3fefcc9e5ac7093085766eff21 to your computer and use it in GitHub Desktop.
Save shimont/475bfb3fefcc9e5ac7093085766eff21 to your computer and use it in GitHub Desktop.
kubectl convert -f hn-ingress-2.yaml --output-version networking.k8s.io/v1
#Output
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
kubernetes.io/ingress.class: alb
creationTimestamp: null
labels:
app: hn-ingress
name: hn-ingress
namespace: hn-app
spec:
rules:
- host: hn.datree.io
- http:
paths:
- backend:
service:
name: service-hn
port:
number: 80
path: /
pathType: Prefix
status:
loadBalancer: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment