You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2021/07/30 13:55:22 UTC

[cloudstack-kubernetes-provider] branch main updated: Updating for release (#34)

This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-kubernetes-provider.git


The following commit(s) were added to refs/heads/main by this push:
     new b274c37  Updating for release (#34)
b274c37 is described below

commit b274c37e5fc80f17d74a6ec1abfce25a08a547bf
Author: davidjumani <dj...@gmail.com>
AuthorDate: Fri Jul 30 19:25:15 2021 +0530

    Updating for release (#34)
---
 README.md                      | 10 +++++++++-
 traefik-ingress-controller.yml | 20 ++++++++++++++------
 2 files changed, 23 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index 6c28900..4183843 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@
 
 A Cloud Controller Manager to facilitate Kubernetes deployments on Cloudstack.
 
-Based on the old Cloudstack provider in Kubernetes that will be removed soon.
+Based on the old Cloudstack provider in Kubernetes was removed.
 
 Refer:
 * https://github.com/kubernetes/kubernetes/tree/release-1.15/pkg/cloudprovider/providers/cloudstack
@@ -16,6 +16,14 @@ Refer:
 
 ## Deployment
 
+The CloudStack Kubernetes Provider is automatically deployed when a Kuberentes Cluster is created on CloudStack 4.16+
+
+In order to communicate with CloudStack, a separate service user **kubeadmin** is created in the same account as the cluster owner.
+The provider uses this user's API keys to get the details of the cluster as well as update the networking rules. It is imperative that this user
+is not altered or have its keys regenerated.
+
+The provider can also be manually deployed as follows :
+
 ### Kubernetes
 
 Prebuilt containers are posted on [Docker Hub](https://hub.docker.com/r/apache/cloudstack-kubernetes-provider).
diff --git a/traefik-ingress-controller.yml b/traefik-ingress-controller.yml
index ead19c1..f61ad07 100644
--- a/traefik-ingress-controller.yml
+++ b/traefik-ingress-controller.yml
@@ -15,19 +15,21 @@
 # specific language governing permissions and limitations
 # under the License.
 ---
+apiVersion: v1
 kind: Service
 metadata:
+  name: traefik
   annotations:
     service.beta.kubernetes.io/cloudstack-load-balancer-proxy-protocol: enabled
 spec:
   type: LoadBalancer
   ports:
   - name: http
-      port: 80
-      targetPort: http
+    port: 80
+    targetPort: http
   - name: https
-      port: 443
-      targetPort: https
+    port: 443
+    targetPort: https
 ---
 apiVersion: v1
 kind: ConfigMap
@@ -46,12 +48,18 @@ data:
         [entryPoints.https.proxyProtocol]
         trustedIPs = ["127.0.0.1/32", "10.0.0.1/32"]
 ---
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
 kind: DaemonSet
 metadata:
   name: traefik-ingress-controller
 spec:
+  selector:
+    matchLabels:
+      name: traefik-ingress-controller
   template:
+    metadata:
+      labels:
+        name: traefik-ingress-controller
     spec:
       hostNetwork: true
       containers:
@@ -67,7 +75,7 @@ spec:
           protocol: TCP
         - containerPort: 443
           hostPort: 443
-          name: http
+          name: https
           protocol: TCP
         volumeMounts:
         - mountPath: /config