Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #5

Merged
merged 13 commits into from
Nov 8, 2020
Merged

Update README.md #5

merged 13 commits into from
Nov 8, 2020

Conversation

hanahmily
Copy link
Contributor

Basic guides how to deploy swck

@hanahmily hanahmily added the documentation Improvements or additions to documentation label Nov 7, 2020
@hanahmily hanahmily added this to the v1alpha1 milestone Nov 7, 2020
README.md Show resolved Hide resolved
@wu-sheng
Copy link
Member

wu-sheng commented Nov 7, 2020

@kezhenxu94 Consider adding reviewer and CI required?

kezhenxu94
kezhenxu94 previously approved these changes Nov 7, 2020
Copy link
Member

@kezhenxu94 kezhenxu94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one nit, otherwise LGTM.
BTW, I think the namespace is kinda of long, and verbose, because swck contains “skywalking” already :)

README.md Outdated Show resolved Hide resolved
Basic guides how to deploy swck
Signed-off-by: Gao Hongtao <hanahmily@gmail.com>
Signed-off-by: Gao Hongtao <hanahmily@gmail.com>
@hanahmily
Copy link
Contributor Author

@wu-sheng @kezhenxu94 I intend to pick up this PR as the final collection of release 0.1.0. Pls, check what to be fixed before the release.

@wu-sheng wu-sheng requested a review from arugal November 7, 2020 10:32
@wu-sheng
Copy link
Member

wu-sheng commented Nov 7, 2020

@arugal As you have tested and tried locally, could do take a look of current status?

@arugal
Copy link
Member

arugal commented Nov 7, 2020

@hanahmily I found two problems.

  1. The manager-role cannot read the services
E1107 12:14:26.309147 1 reflector.go:153] pkg/mod/k8s.io/client-go@v0.17.2/tools/cache/reflector.go:105: Failed to list *v1.Service: services is forbidden: User "system:serviceaccount:skywalking-swck-system:default" cannot list resource "services" in API group "" at the cluster scope
  1. kustomize cannot modify the name of namesapce
    image
    image

README.md Show resolved Hide resolved
@kezhenxu94
Copy link
Member

@wu-sheng @kezhenxu94 I intend to pick up this PR as the final collection of release 0.1.0. Pls, check what to be fixed before the release.

If this is the last piece before 0.1.0, I noticed there are some files missing license headers, please make sure there're not distributed or add license headers for them.

@hanahmily
Copy link
Contributor Author

@wu-sheng @kezhenxu94 I intend to pick up this PR as the final collection of release 0.1.0. Pls, check what to be fixed before the release.

If this is the last piece before 0.1.0, I noticed there are some files missing license headers, please make sure there're not distributed or add license headers for them.

Could you list what files are you talking about?

@kezhenxu94
Copy link
Member

@wu-sheng @kezhenxu94 I intend to pick up this PR as the final collection of release 0.1.0. Pls, check what to be fixed before the release.

If this is the last piece before 0.1.0, I noticed there are some files missing license headers, please make sure there're not distributed or add license headers for them.

Could you list what files are you talking about?

https://github.com/apache/skywalking-swck/blob/master/golangci.yml
https://github.com/apache/skywalking-swck/blob/master/Dockerfile
https://github.com/apache/skywalking-swck/blob/master/PROJECT

@hanahmily
Copy link
Contributor Author

  1. kustomize cannot modify the name of namesapce
    image
    image

We can set namespace by cd config/default && kustomize edit set namespace <new ns> or just edit config/default/kustomization.yaml. And I mentioned how to customize it in https://github.com/apache/skywalking-swck/pull/5/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R34.

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>
Signed-off-by: Gao Hongtao <hanahmily@gmail.com>
@hanahmily
Copy link
Contributor Author

@wu-sheng @kezhenxu94 I intend to pick up this PR as the final collection of release 0.1.0. Pls, check what to be fixed before the release.

If this is the last piece before 0.1.0, I noticed there are some files missing license headers, please make sure there're not distributed or add license headers for them.

Could you list what files are you talking about?

https://github.com/apache/skywalking-swck/blob/master/golangci.yml
https://github.com/apache/skywalking-swck/blob/master/Dockerfile
https://github.com/apache/skywalking-swck/blob/master/PROJECT

Thanks, done

@wu-sheng
Copy link
Member

wu-sheng commented Nov 7, 2020

@hanahmily Why these files were not detected by your script? This seems more important.

@arugal
Copy link
Member

arugal commented Nov 7, 2020

We can set namespace by cd config/default && kustomize edit set namespace <new ns> or just edit config/default/kustomization.yaml. And I mentioned how to customize it in https://github.com/apache/skywalking-swck/pull/5/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R34.

The namespace parameter is not valid for namespace resource.

I think that's the way it should be.

apiVersion: v1
kind: Namespace
metadata:
  labels:
    control-plane: controller-manager
  name: skywalking-swck-system

to users who can't touch gcr.io

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>
@hanahmily
Copy link
Contributor Author

@hanahmily Why these files were not detected by your script? This seems more important.

Licenses tool only checks files in the config directory, that are updated from time to time. These files are imported, but they won't be changed once fixed.

@hanahmily
Copy link
Contributor Author

We can set namespace by cd config/default && kustomize edit set namespace <new ns> or just edit config/default/kustomization.yaml. And I mentioned how to customize it in https://github.com/apache/skywalking-swck/pull/5/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R34.

The namespace parameter is not valid for namespace resource.

I think that's the way it should be.

apiVersion: v1
kind: Namespace
metadata:
  labels:
    control-plane: controller-manager
  name: skywalking-swck-system

My local kustomize could generate correct namespace:

 $ kustomize version
{Version:3.5.4 GitCommit:3af514fa9f85430f0c1557c4a0291e62112ab026 BuildDate:2020-01-17T14:23:25+00:00 GoOs:darwin GoArch:amd64}
 $ kustomize build config/default
apiVersion: v1
kind: Namespace
metadata:
  labels:
    control-plane: controller-manager
  name: skywalking-swck-system

I'm curious about which version your kusomize is?

and my kubectl also could get the same result:

$ kubectl version --client
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.1", GitCommit:"7879fc12a63337efff607952a323df90cdc7a335", GitTreeState:"clean", BuildDate:"2020-04-10T21:53:51Z", GoVersion:"go1.14.2", Compiler:"gc", Platform:"darwin/amd64"}
 $ kubectl kustomize config/default 
apiVersion: v1
kind: Namespace
metadata:
  labels:
    control-plane: controller-manager
  name: skywalking-swck-system
---

@arugal
Copy link
Member

arugal commented Nov 8, 2020

We can set namespace by cd config/default && kustomize edit set namespace <new ns> or just edit config/default/kustomization.yaml. And I mentioned how to customize it in https://github.com/apache/skywalking-swck/pull/5/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R34.

The namespace parameter is not valid for namespace resource.
I think that's the way it should be.

apiVersion: v1
kind: Namespace
metadata:
  labels:
    control-plane: controller-manager
  name: skywalking-swck-system

My local kustomize could generate correct namespace:

 $ kustomize version
{Version:3.5.4 GitCommit:3af514fa9f85430f0c1557c4a0291e62112ab026 BuildDate:2020-01-17T14:23:25+00:00 GoOs:darwin GoArch:amd64}
 $ kustomize build config/default
apiVersion: v1
kind: Namespace
metadata:
  labels:
    control-plane: controller-manager
  name: skywalking-swck-system

I'm curious about which version your kusomize is?

and my kubectl also could get the same result:

$ kubectl version --client
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.1", GitCommit:"7879fc12a63337efff607952a323df90cdc7a335", GitTreeState:"clean", BuildDate:"2020-04-10T21:53:51Z", GoVersion:"go1.14.2", Compiler:"gc", Platform:"darwin/amd64"}
 $ kubectl kustomize config/default 
apiVersion: v1
kind: Namespace
metadata:
  labels:
    control-plane: controller-manager
  name: skywalking-swck-system
---

@hanahmily Sorry, I have tested kustomize 3.8.1-3.8.4 locally and this seems to be the case only at 3.8.2.

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>
Signed-off-by: Gao Hongtao <hanahmily@gmail.com>
README.md Outdated Show resolved Hide resolved
@arugal
Copy link
Member

arugal commented Nov 8, 2020

Basically LGTM.

$ kubectl get all -n skywalking-swck-system

NAME                                                      READY   STATUS    RESTARTS   AGE
pod/skywalking-swck-controller-manager-6989f8cf96-gdjjp   2/2     Running   0          3h17m

NAME                                                         TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)    AGE
service/skywalking-swck-controller-manager-metrics-service   ClusterIP   10.111.142.191   <none>        8443/TCP   3h20m

NAME                                                 READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/skywalking-swck-controller-manager   1/1     1            1           3h20m

NAME                                                            DESIRED   CURRENT   READY   AGE
replicaset.apps/skywalking-swck-controller-manager-557bdff78f   0         0         0       3h20m
replicaset.apps/skywalking-swck-controller-manager-6989f8cf96   1         1         1       3h17m

$ kubectl get oapserver demo -o yaml

apiVersion: operator.skywalking.apache.org/v1alpha1
kind: OAPServer
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"operator.skywalking.apache.org/v1alpha1","kind":"OAPServer","metadata":{"annotations":{},"name":"demo","namespace":"default"},"spec":{"config":[{"name":"SW_STORAGE","value":"h2"}],"instances":1,"version":"8.1.0"}}
  creationTimestamp: "2020-11-08T02:01:36Z"
  generation: 2
  name: demo
  namespace: default
  resourceVersion: "33314335"
  selfLink: /apis/operator.skywalking.apache.org/v1alpha1/namespaces/default/oapservers/demo
  uid: 490b4496-0a9c-4a33-80e8-1f3e5ba864af
spec:
  config:
  - name: SW_STORAGE
    value: h2
  image: apache/skywalking-oap-server:8.1.0-es6
  instances: 1
  version: 8.1.0
status:
  address: demo.default
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2020-11-08T02:02:51Z"
    lastUpdateTime: "2020-11-08T02:02:51Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2020-11-08T02:01:36Z"
    lastUpdateTime: "2020-11-08T02:02:51Z"
    message: ReplicaSet "demo-5d6bbbbf94" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing

$ kubectl get all

NAME                        READY   STATUS    RESTARTS   AGE
pod/demo-5d6bbbbf94-hq879   1/1     Running   0          3h19m

NAME                 TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)               AGE
service/demo         ClusterIP   10.104.216.11   <none>        11800/TCP,12800/TCP   3h19m
service/kubernetes   ClusterIP   10.96.0.1       <none>        443/TCP               126d

NAME                   READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/demo   1/1     1            1           3h19m

NAME                              DESIRED   CURRENT   READY   AGE
replicaset.apps/demo-5d6bbbbf94   1         1         1       3h19m

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>
@hanahmily hanahmily requested a review from arugal November 8, 2020 06:00
Copy link
Member

@arugal arugal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wu-sheng wu-sheng merged commit 96fe630 into apache:master Nov 8, 2020
@wu-sheng
Copy link
Member

wu-sheng commented Nov 8, 2020

Let's release our operator😀

@hanahmily hanahmily deleted the doc-quickstart branch January 19, 2021 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
4 participants