# traefik-api **Repository Path**: billyzh/traefik-api ## Basic Information - **Project Name**: traefik-api - **Description**: Traefik Api - **Primary Language**: Java - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-10-11 - **Last Updated**: 2024-11-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Traefik API 通过K8s ApiServer操作Traefik的CRD资源对象。 ### 支持的CRD资源和操作: IngressRoute(create, list, read, patch, replace, delete) TraefikService(create, list, read, patch, replace, delete) Middleware(create, list, read, patch, replace, delete) ### 使用方式: // loading the out-of-cluster config, a kubeconfig from file-system ApiClient client = ClientBuilder.kubeconfig(KubeConfig.loadKubeConfig(...)).build(); // set the global default api-client to the in-cluster one from above Configuration.setDefaultApiClient(client); TraefikV1alpha1Api traefikApi = new TraefikV1alpha1Api(); // create resource. traefikApi.createXXX(...);