alidns-ingress-updater

command module
v0.0.0-...-983860c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2022 License: MIT Imports: 12 Imported by: 0

README

alidns-ingress-updater

A k8s app to auto update alidns from ingress

Install

Install via Kubectl
kubectl apply -f https://github.com/xzzpig/alidns-ingress-updater/raw/main/deploy/bundle.yaml

Uninstall

Uninstall via kubectl
kubectl delete --all alidnsaccount && kubectl delete -f https://github.com/xzzpig/alidns-ingress-updater/raw/main/deploy/bundle.yaml  

Cookbook

  1. Create AliDnsAccount
apiVersion: network.xzzpig.com/v1
kind: AliDnsAccount
metadata:
  name: alidnsaccount-sample
spec:
  accessKeyId: YourKeyIdHere
  accessKeySecret: YourKeySecretHere
  domainName: yourdomain.com
  1. Create/Modify Ingress
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: example
  annotations:
    xzzpig.com/alidns-ignore: "false" # (optional)whether ignore this ingress to update
spec:
  rules:
  - host: example.yourdomain.com
    http:
      paths:
      - backend:
          service:
            name: example-service
            port:
              number: 5000
        path: /
        pathType: Prefix
  1. Enjoy!

This app will auto match AliDnsAccount.spec.domainName to Ingress.spec.rules.host and modify alidns record(example) to clusters public ip

Reference

Ingress Annotations
name describe type
xzzpig.com/alidns-ignore whether ignore this ingress to update "true"/"false"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
apis
network/v1
Package v1 contains API Schema definitions for the network v1 API group +kubebuilder:object:generate=true +groupName=network.xzzpig.com
Package v1 contains API Schema definitions for the network v1 API group +kubebuilder:object:generate=true +groupName=network.xzzpig.com
controllers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL