• 360wayne简单安装配置


    1.安装mysql

    git clone https://github.com/Qihoo360/wayne.git
    cd wayne;git submodule update --init --recursive
    [root@master tmp]# cat /tmp/dev.conf
    DBName = wayne
    # MySQL address,如果MySQL是通过docker-compose启动的,
    # Mac OS 下无法直接通过127.0.0.1访问,请修改为实际IP 
    DBTns = tcp(10.39.47.63:3306)
    DBUser = root
    DBPasswd = root
    ————————————————

    2.启动Wayne

    启动wayne服务
    
    $ docker run -d  -e GOPATH=/go -v /tmp/dev.conf:/opt/wayne/conf/dev.conf -p 8080:8080 360cloud/wayne /opt/wayne/backend apiserver

    3.关联k8s:打开Wayne,在kubernetes列表加入

    [root@k8s .kube]# cat /root/.kube/config
    apiVersion: v1
    clusters:
    - cluster:
        certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN5RENDQWJDZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRFNU1USXdOREV5TXpZMU1Wb1hEVEk1TVRJd01URXlNelkxTVZvd0ZURVRNQkVHQTFVRQpBeE1LYTNWaVpYSnVaWFJsY3pDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBTlQxCjE0ZXRoamhpYm1ZdFJWOTBpNWNzbGJ1YnlETVRBODc3dzJncWNzUlhyL25HZXp2M2FBM2ZZdHFZTHhndk40ZEEKZGZnMFRRYTJaT3lFUlF1N29xbWN5MFhiSlp3S3VDR21wZzBhODI2c0doRXdzUzl3cEJzRFN1amxFak1kOU9DOAo1QTVmdmRKU0xwaFBlOXR2YUI1YUNoQUVBcG1RWjlrUktNZGF3M1ZRL2YxSEp5T3NkWEhmQlNNMUZYUVRkeDRrCmlFNkdLQTFycHpTWldhZDlVK2p4V1BvQld6aG84cmFkMS8xa3huSERJMTVTZExzRjRnUjZLcUVWZmNSc21ZVkoKMU9Fd2tJUUpCRDFWWnZWUUFrMXl1cDZUN25aQWV0T0kwdmdsVm1vOE9BU0phQWdDS0hjUExsVEVXQkJGVHF0SQo2RUwrRk5HY0YwQnR2emZGbElNQ0F3RUFBYU1qTUNFd0RnWURWUjBQQVFIL0JBUURBZ0trTUE4R0ExVWRFd0VCCi93UUZNQU1CQWY4d0RRWUpLb1pJaHZjTkFRRUxCUUFEZ2dFQkFFeElFQ3g3dTEvSVNsMkVxbzdKdnFBWWFheVYKNFI1clRkYldGTzRqMTB2Y3ord21FUkJwSklIUWk2UDlJWlU4cVd1ajJPdnduVUFlSVkvN2pKa1BBSHVzUENVKwp0R0cyOVVGS0JoaEJFZ1RPZlFVa3YrMjg1cHdIUFFsMlhmTlJXWVd2TDNvZEhwcE9QMkVqeDZaZk5LQ2RraUtkCm1YS2ZybWtJNXFiZnJYd3FsaGY1b2VhazBYaGZNWER0MzlFdXd6bWJQL2d5aGV6aW9JbUJna3hiTXVXa1EvQkMKRHU5OFZ5cHcwWldLSXB5cVhvL0UyNDhvLzNsYm45Wjg0aHVnSVNHOFVWUEphaHFaN25ocm9oMXoyMDgxQkFOagpkM1hmZEN4TWw4cWV3NjQvYk1nZWNjeUx3d3h5c2EzQmdXVmxlRjc2NzY3OTlYckd0WFBLLzRORk1qUT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
        server: https://192.168.1.46:6443
      name: cluster.local
    contexts:
    - context:
        cluster: cluster.local
        user: kubernetes-admin
      name: kubernetes-admin@cluster.local
    current-context: kubernetes-admin@cluster.local
    kind: Config
    preferences: {}
    users:
    - name: kubernetes-admin
      user:
        client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM4akNDQWRxZ0F3SUJBZ0lJVUdYRlp2N251ZVl3RFFZSktvWklodmNOQVFFTEJRQXdGVEVUTUJFR0ExVUUKQXhNS2EzVmlaWEp1WlhSbGN6QWVGdzB4T1RFeU1EUXhNak0yTlRGYUZ3MHlNREV5TURNeE1q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BWYmNmSElMbDBsN3ZoN2RtNzNwSG10a1hlN1RiMUNnb2NoUUlRCnNValVGRzBDZ1lCeG9wclRpaklteURHL0IwbnB3SDhpM0Q5N0JZS1ZpM0xsQnJXMFk3Ym9LUDcvbjdEeE83T3MKeHRGRmdadnRMMHhZR051T0dSS215eDNYa2JXQ2JSNEpabkZxTW41RG1uVjJJa3U2SnJlZXozc2d3bksxcGdjago2SkRlRlBDR0pCZldpMWdkRWx1UUd0U3AyUTBwRitoS1RxcEJPSTgza3c3UHpQNEovSjFCQlE9PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo=

    参考:https://blog.csdn.net/qq_21816375/article/details/84243693

  • 相关阅读:
    Spring和Mybatis整合
    Spring的基本操作
    mybatis在xml文件中处理特殊符号(如:大于号小于号等的方法)
    配置MyBatis 环境
    iframe元素內嵌页面如何去掉继承的html及body背景色/背景图片
    如何解决include包含页面的乱码问题
    Servlet重定向后,页面混乱的解决办法
    使用Ajax验证邮箱是否存在
    使用监听器监听用户访问页面的次数
    基于arduino的红外传感系统
  • 原文地址:https://www.cnblogs.com/hixiaowei/p/12109159.html
Copyright © 2020-2023  润新知