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

Openstack provider #21737

Merged
merged 34 commits into from
May 11, 2016
Merged

Openstack provider #21737

merged 34 commits into from
May 11, 2016

Commits on Apr 28, 2016

  1. Add Heat template to create a Kubernetes stack on OpenStack

    ohtake authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    c7b447b View commit details
    Browse the repository at this point in the history
  2. OpenStack provider

    - Create Kubernetes cluster on the top of OpenStack
    Lukasz Zajaczkowski authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    840aa9c View commit details
    Browse the repository at this point in the history
  3. Execute salt-call twice

    ohtake authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    188b303 View commit details
    Browse the repository at this point in the history
  4. Use host-gw flannel for better performance

    ohtake authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    249a5c9 View commit details
    Browse the repository at this point in the history
  5. certificate should be created for the virtual kubernetes ip

    urcan authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    730b7ef View commit details
    Browse the repository at this point in the history
  6. Make shell script compatible with older bash

    ohtake authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    b5913ab View commit details
    Browse the repository at this point in the history
  7. Adding support for provisioning behind a Proxy.

    This assumes you have your environement variables set correctly.
    
    When ENABLE_PROXY is set to true, it takes the current proxy
    settings and applies them to the heat configuration.
    
    Also modified the defaults system in config-default.sh
    elsonrodriguez authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    b4333ad View commit details
    Browse the repository at this point in the history
  8. Fixed proxy settings for minion, added comments.

    elsonrodriguez authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    126b6c0 View commit details
    Browse the repository at this point in the history
  9. Made it so that existing Openstack environment variables are used.

    If someone has an openrc as part of their profile, this will make kube-up work automatically.
    
    The only things that have to be modified are in config-default.sh, either by editing the file or setting environment variables.
    elsonrodriguez authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    21627f5 View commit details
    Browse the repository at this point in the history
  10. Adding cloudprovider support for Openstack kube-up provider.

    Making the assumption that the person running kube-up has their
    Openstack environment setup, those same variables are being passed
    into heat, and then into openstack.conf.
    
    The salt codebase was modified to add openstack as well.
    elsonrodriguez authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    5ae161e View commit details
    Browse the repository at this point in the history
  11. Adding automatic OS image download for Openstack provider.

    This makes it so that we download the OS image automatically.
    
    Also contains other usability improvements:
    - kubectl context created with heat stack name
    - Bumped default minions to 3
    elsonrodriguez authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    2ffc86b View commit details
    Browse the repository at this point in the history
  12. Adding missing variable defaults for OpenStack provider.

    elsonrodriguez authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    707ef2c View commit details
    Browse the repository at this point in the history
  13. Adding openstack example to get-kube.sh

    elsonrodriguez authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    8315734 View commit details
    Browse the repository at this point in the history
  14. Improved user experience for users of OpenStack provider behind a proxy.

    elsonrodriguez authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    4773808 View commit details
    Browse the repository at this point in the history
  15. Enabled Addons for Openstack kube-up provider.

    Hard-coded the enabling of the common addons:
    
    - logging
    - kube-dashboard
    - monitoring
    
    Will make it configureable in a subsequent PR.
    Also need to enable configuration of basic_auth.csv
    elsonrodriguez authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    d28fd39 View commit details
    Browse the repository at this point in the history
  16. Increasing default node size for kube-up Openstack provider.

    The default pod sizes are too small for some Java apps. Also the logging/monitoring pods were taking up too many resources.
    elsonrodriguez authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    35bbc18 View commit details
    Browse the repository at this point in the history
  17. Add configuration for e2e tests

    Lukasz Zajaczkowski authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    a4e6e7f View commit details
    Browse the repository at this point in the history
  18. Remove unused code

    ohtake authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    7f37ab5 View commit details
    Browse the repository at this point in the history
  19. Add braces around environment variable names

    Parameter names of Heat str_replace remain unchanged
    ohtake authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    23bcbbf View commit details
    Browse the repository at this point in the history
  20. Rename the provider to openstack-heat

    There might be several methods to deploy a Kubernetes cluster on OpenStack.
    It is better to name the provider more specific.
    ohtake authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    5ea2940 View commit details
    Browse the repository at this point in the history
  21. Removing an invalid reference to cadvisor from salt.

    It looks like this was left over from #23316
    elsonrodriguez authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    0016789 View commit details
    Browse the repository at this point in the history
  22. Adding socat package for Redhat systems in Salt

    elsonrodriguez authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    545b230 View commit details
    Browse the repository at this point in the history
  23. Undoing regression of #23311

    elsonrodriguez authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    9226cf7 View commit details
    Browse the repository at this point in the history
  24. Triages #7 for OpenStack provider, still needs work.

    Fixed the order of fields for basic_auth.
    
    This provider still needs to leverage common.sh for generating proper credentials though.
    
    Also documented a pattern for how to get the SWIFT_SERVER_URL automatically
    elsonrodriguez authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    7b3b24c View commit details
    Browse the repository at this point in the history
  25. Changing openstack to openstack-heat in get-kube.sh

    elsonrodriguez authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    c5ca66b View commit details
    Browse the repository at this point in the history
  26. Replace heat client to openstack to avoid warnings

    Lukasz Zajaczkowski authored and Lukasz Zajaczkowski committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    5f929d2 View commit details
    Browse the repository at this point in the history
  27. Expose /etc/pki from host to kube-apiserver and controller-manager

    CentOS 7 Core nodes running on OpenStack with an SSL-enabled API
    endpoint results in the following error without this patch:
    
    F0425 19:00:58.124520       5 server.go:100] Cloud provider could not be initialized: could not init cloud provider "openstack": Post https://my.openstack.cloud:5000/v2.0/tokens: x509: failed to load system roots and no roots provided
    
    The root cause is that the ca-bundle.crt file is actually a symlink
    which points to a directory which wasn't previously exposed.
    
    [root@kubernetesstack-master ~]# ls -l /etc/ssl/certs/ca-bundle.crt
    lrwxrwxrwx. 1 root root 49 18 nov 11:02 /etc/ssl/certs/ca-bundle.crt -> /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
    [root@kubernetesstack-master ~]#
    ctrlaltdel committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    dd78679 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2016

  1. Adding workaround for hostname swapping issue in OpenStack kube-up pr…

    …ovider.
    
    On reboot, minions hostname would change, causing issue querying Openstack API and registering with kube-apiserver.
    
    This is due to a bug in cloud-init which has been patched but apparently not widely distributed.
    
    Should be harmless on unaffected systems.
    https://bugs.launchpad.net/cloud-init/+bug/1246485
    http://blog.oddbit.com/2014/12/10/cloudinit-and-the-case-of-the-changing-hostname/
    elsonrodriguez committed Apr 29, 2016
    Configuration menu
    Copy the full SHA
    9004dc3 View commit details
    Browse the repository at this point in the history
  2. Add missing single speech mark after rebase

    Lukasz Zajaczkowski authored and Lukasz Zajaczkowski committed Apr 29, 2016
    Configuration menu
    Copy the full SHA
    895c543 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #10 from ctrlaltdel/openstack-provider-ssl-fix

    Expose /etc/pki from host to kube-apiserver and controller-manager
    zreigz committed Apr 29, 2016
    Configuration menu
    Copy the full SHA
    5b84667 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #11 from elsonrodriguez/openstack-provider-hostname

    Adding workaround for hostname swapping issue in OpenStack kube-up provider
    zreigz committed Apr 29, 2016
    Configuration menu
    Copy the full SHA
    53eef9e View commit details
    Browse the repository at this point in the history

Commits on May 5, 2016

  1. Configuration menu
    Copy the full SHA
    1769760 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2016

  1. Merge pull request #12 from ctrlaltdel/openstack-provider-swift-url

    Automatically detect swift URL
    zreigz committed May 6, 2016
    Configuration menu
    Copy the full SHA
    1acd762 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2016

  1. Name adjustment to OpenStack-Heat in cluster/get-kube.sh

    Lukasz Zajaczkowski authored and Lukasz Zajaczkowski committed May 10, 2016
    Configuration menu
    Copy the full SHA
    892c2ab View commit details
    Browse the repository at this point in the history