Commit Graph

803 Commits (2e9358934d624bec1fba8e9205a3baca4aaa87e9)

Author SHA1 Message Date
Brad Davidson 4fb073e799 Log clearer error on startup if NPC cannot be started
4 years ago
galal-hussein ef999f0b4f change error to warn when removing self from etcd members
4 years ago
galal-hussein d6124981d5 remove etcd member if disable etcd is passed
4 years ago
Erik Wilson 4e5218b62c
Apply suggestions from code review
4 years ago
Erik Wilson 4aac6b6bd0
Update to Traefik 2.4.2 and combine manifests
4 years ago
Erik Wilson 54a35505f0
Remove Traefik v1 migration
4 years ago
Chin-Ya Huang cc96f8140a
Allow download traefik static file and rename
4 years ago
Chin-Ya Huang 10e0328977
Traefik v2 integration
4 years ago
Brad Davidson f970e49b7d Wait for apiserver to become healthy before starting agent controllers
4 years ago
Brad Davidson 9b39c1c117 Hide the airgap-extra-registry flag
4 years ago
Brad Davidson 88dd601941 Limit zstd decoder memory
4 years ago
Brad Davidson ae5b93a264 Use HasSuffixI utility function
4 years ago
Brad Davidson ec661c67d7 Add support for retagging images on load from tarball
4 years ago
Hussein Galal 5749f66aa3
Add disable flags for control components (#2900)
4 years ago
Brian Downs 21d1690d5d
update usage text (#2926)
4 years ago
Brad Davidson 6e768c301e Use appropriate response codes for authn/authz failures
4 years ago
Brad Davidson 374271e9a0
Collect IPs from all pods before deciding to use internal or external addresses (#2909)
4 years ago
Brad Davidson e06119729b
Improve handling of comounted cpu,cpuacct controllers (#2911)
4 years ago
Brad Davidson ad5e504cf0
Allow joining clusters when the server CA is trusted by the OS CA bundle (#2743)
4 years ago
Brad Davidson 6c472b5942 Use zstd instead of gzip for embedded tarball
4 years ago
Brad Davidson c5e2676d5c
Update local-path-provisioner and helper busybox (#2885)
4 years ago
Brad Davidson 65c78cc397 Replace options.KubeRouterConfig with config.Node and remove metrics/waitgroup stuff
4 years ago
Brad Davidson 07256cf7ab Add ServiceIPRange and ServiceNodePortRange to agent config
4 years ago
Brad Davidson 95a1a86847 Spell check upstream code
4 years ago
Brad Davidson 29483d0651 Initial update of netpol and utils from upstream
4 years ago
Akihiro Suda f3c41b7650 fix cgroup2 support
4 years ago
Akihiro Suda 728ebcc027 rootless: remove rootful /run/{netns,containerd} symlinks
4 years ago
Brad Davidson 071de833ae Fix typo in field tag
4 years ago
Brad Davidson 8011697175 Only container-runtime-endpoint wants RuntimeSocket path as URI
4 years ago
Yuriy 06fda7accf
Add functionality to bind custom IP address for Etcd metrics endpoint (#2750)
4 years ago
Brad Davidson f152f656a0
Replace k3s cloud provider wrangler controller with core node informer (#2843)
4 years ago
Brian Downs 13229019f8
Add ability to perform an etcd on-demand snapshot via cli (#2819)
4 years ago
Waqar Ahmed 3ea696815b Do not validate snapshotter argument if docker is enabled
4 years ago
Erik Wilson c71060f288
Merge pull request #2744 from erikwilson/rke2-node-password-bootstrap
4 years ago
MonzElmasry 86f68d5d62
change etcd dir permission if it exists
4 years ago
Erik Wilson 4245fd7b67 Return http.StatusOK instead of 0
4 years ago
Erik Wilson 2fb411fc83 Fix spelling mistake
4 years ago
Erik Wilson 09eb44ba53 Bootstrap node password with local file
4 years ago
JenTing Hsiao 57041f0239
Add codespell CI test and fix codespell error (#2740)
4 years ago
Brad Davidson 8936cf577f Bump coredns to 1.8.0
4 years ago
Chris Kim 332fd73d46
Add support for both config-file and data-dir at a global level in the self-extracting wrapper for K3s (#2594)
4 years ago
Erik Wilson 1230d7b7df Fix HA server initialization
4 years ago
Brad Davidson 8e4d3e645b Restore legacy master role for etcd nodes
4 years ago
Chris Kim 61ef2ce95e use version.Program
4 years ago
Chris Kim 48925fcb88
Simplify checkCgroups function call
4 years ago
Chris Kim a3f87a81bd Independently set kubelet-cgroups and runtime-cgroups, and detect if we are running under a systemd scope
4 years ago
Brad Davidson c5aad1b5ed Disable the ServiceAccountIssuerDiscovery feature-gate.
4 years ago
Brad Davidson 63f2211b31 deprecate the "node-role.kubernetes.io/master" label / taint
4 years ago
Brad Davidson c6950d2cb0 Update Kubernetes to v1.20.0-k3s1
4 years ago
Brad Davidson cd27c6fcbe Bump coredns to 1.7.1
4 years ago
Erik Wilson 0ae7f2d5ae
Merge pull request #2407 from erikwilson/node-passwd-cleanup
4 years ago
Chris Kim 3d1e40eaa3 Handle the case when systemd lives under `/init.scope`
4 years ago
Chris Kim e71e11fed0
Merge pull request #2642 from Oats87/issues/k3s/2548-cgroup
4 years ago
Chris Kim f3de60ff31 When there is a defined cgroup for PID 1, assume we are containerized and set a root
4 years ago
Hussein Galal fadc5a8057
Add tombstone file to etcd and catch errc etcd channel (#2592)
4 years ago
Chin-Ya Huang 3f0f2b342e Show go version when executes with --version.
4 years ago
transhapHigsn 87a43c69e1 Problem: CoreDNS getting preempted by other pods
4 years ago
Akihiro Suda eb72d509ce pkg/agent/config: validate containerd snapshotter value
4 years ago
Akihiro Suda 05f6255437 add fuse-overlayfs snapshotter (mainly for rootless mode)
4 years ago
Akihiro Suda 43f7eaedf8 rootless: fix "stat /run/user/1000: no such file or directory" on `kubectl run`
4 years ago
Akihiro Suda 67410d2757 rootless: validate sysctl before starting up
4 years ago
Jacob Blain Christen 3647654fe4
[migration k3s-io] update helm-controller dependency (#2569)
4 years ago
Akihiro Suda 0b45e32486 Support cgroup v2
4 years ago
Jacob Blain Christen 36230daa86
[migration k3s-io] update kine dependency (#2568)
4 years ago
Brad Davidson b873d3a03b Explicitly set agent paths within --data-dir
4 years ago
Brad Davidson 58b5b21f0d Don't pass cloud-provider flag to controller-manager
4 years ago
Brad Davidson 3e4fd7b41f Respect --data-dir path for crictl.yaml
4 years ago
Brad Davidson f50e3140f9 Disable configure-cloud-routes and external service/route programming support when using k3s stub cloud controller
4 years ago
Brad Davidson 31575e407a Add Cluster ID support to k3s stub cloud controller
4 years ago
Brad Davidson 5b318d093f Fix containerd sock path warning
4 years ago
Brad Davidson d1424626ac Disable containerd experimental snapshot labels
4 years ago
Erik Wilson 992ca52c31
Enable go test in ci
4 years ago
Erik Wilson 92d04355f4
Use secrets for node-passwd entries and cleanup
4 years ago
Brad Davidson 3b8ec74049 Update disables list when building with no_stage
4 years ago
Menna Elmasry 523ccaf3f2
Merge pull request #2448 from MonzElmasry/new_b
4 years ago
MonzElmasry e8436cc76b
Make etcd use node private ip
4 years ago
Chris Kim 7b8a147a1b
Merge pull request #2408 from Oats87/rpm-install-selinux
4 years ago
Hussein Galal fcd18d1b6e
skip node delete from removed member (#2413)
4 years ago
Chris Kim 96fc4c4b21 Add iptable_nat to modprobe list
4 years ago
Brad Davidson de18528412
Make etcd voting members responsible for managing learners (#2399)
4 years ago
Erik Wilson 6b11d86037
Merge pull request #2377 from erikwilson/no-proxy-fix
4 years ago
Erik Wilson 56e077eb29
Use no_proxy env, add .svc and cluster domains
4 years ago
Erik Wilson 114b5ccad1
Merge pull request #2363 from erikwilson/netpol-informers
4 years ago
Erik Wilson e26e333b7e
Add network policy controller CacheSyncOrTimeout
4 years ago
Erik Wilson 045cd49ab5
Add event handlers to network policy controller
4 years ago
Erik Wilson ce0da0a0f4
Add file verification for data directory
4 years ago
Erik Wilson 66d29148f7
Add Release function for flock
4 years ago
Erik Wilson 360d82d20e
Add flock from k8s.io/kubernetes/pkg/util/flock
4 years ago
Brad Davidson c3c983198f Add temporary fix for issue with interrupted etcd promote
4 years ago
Hussein Galal 373449ec0a
Allow for multiple etcd snapshot restoration (#2307)
4 years ago
Brad Davidson 8262e23169
Revert removal of EndpointName hooks (#2319)
4 years ago
Brad Davidson 360b0f1ee5 Add timeout to clientaccess http client
4 years ago
Brad Davidson cdfc6cfa1a Split clientaccess token/kubeconfig code
4 years ago
Brad Davidson 45dd4afe50 Simplify token parsing
4 years ago
Brad Davidson 9074da7405 Fix misc nits and missing/unused imports
4 years ago
Brad Davidson 703ba5cde7 Add a bunch of doc comments
4 years ago
Brad Davidson ae916c2dec Use const for kube-system namespace
4 years ago
Brad Davidson f59e8fc21b Fix etcd directory permissions
4 years ago
Brad Davidson ee99660a96 Rename etcd directory helpers to reduce confusion about which datadir we're talking about
4 years ago
Brad Davidson 8025da5a8d Remove dead EndpointName code
4 years ago
Brad Davidson 97eb28a01a Remove unnecessary listener arg from managed DB setup
4 years ago
Brad Davidson a3bbd58f37 Fix managed etcd cold startup deadlock issue #2249
4 years ago
Brad Davidson 42bba04651
Skip etcd snapshots if the local endpoint is still a learner (#2295)
4 years ago
Brian Downs ba70c41cce
Initial Logging Output Update (#2246)
4 years ago
Hussein Galal 46fe57d7e9
reset etcd name on cluster reset (#2284)
4 years ago
Brad Davidson 8c6d3567fe Rename k3s-controller based on the build-time program name
4 years ago
Brad Davidson ae5519c047
Use rancher-mirrored busybox for local-path-provisioner (#2257)
4 years ago
Erik Wilson a08e998bc5 Import containerd images with all platforms
4 years ago
Brad Davidson fcaeebaa18 Add support for disabling all staged content
4 years ago
Menna Elmasry edb3e5b7a7
Add error logger to http server (#2242)
4 years ago
Brian Downs 15d7b61939 Merge remote-tracking branch 'upstream/master' into issue-112
4 years ago
Brian Downs 4c3ec907ab
remove k8s daemon config from setup hook in favor of specific fields from the config (#2206)
4 years ago
Brian Downs bb8e5374ea conform to repo conventions
4 years ago
Brian Downs 898cbeb9b6 Merge remote-tracking branch 'upstream/master' into issue-112
4 years ago
Darren Shepherd 289ba8df6a All arguments should be of the form --k=v so that bool flags will work
4 years ago
Darren Shepherd 64ae6affc5 Missing registering debug/config flags on server subcommand
4 years ago
Brian Downs 00831f9bc8 use version.Program
4 years ago
Brian Downs 301fb73952 add node ip to the request header for cert gen
4 years ago
Craig Jellick 53b3d0fc56
Merge pull request #2180 from ibuildthecloud/configfile
4 years ago
Brad Davidson a3e9d31e6c
Merge pull request #2097 from iwilltry42/registry-insecure-skip-verify
4 years ago
Darren Shepherd 551a1842ad
Update pkg/cli/cmds/config.go
4 years ago
Darren Shepherd 7657ed2e13
Update pkg/cli/server/server.go
4 years ago
Darren Shepherd 21d21ddd4d Add config file support independent of CLI framework
4 years ago
Darren Shepherd ae5c585050 Revert "Add config file support"
4 years ago
Erik Wilson 447097a597
Merge pull request #2098 from erikwilson/k8s-1.19
4 years ago
Erik Wilson c5dc09159f
Move basic authentication to k3s
4 years ago
Erik Wilson 57fc0c9c87
Fix up authenticator
4 years ago
Erik Wilson acc42874d8
Add k8s.io/apiserver/plugins/pkg/authenticator from release-1.18
4 years ago
Erik Wilson 837a943234
Update for k8s 1.19
4 years ago
Erik Wilson daa4beb22c
Update go.mod for k8s 1.19
4 years ago
Erik Wilson 720197b9b1
Fix linting issues
4 years ago
Brian Downs 866dc94cea
Galal hussein etcd backup restore (#2154)
4 years ago
Frederick F. Kautz IV cdce2b7e9a
Add support for compressed images when pre-loading images (#2165)
4 years ago
Brad Davidson c4ac620b8b
Merge pull request #2159 from brandond/config_file_rename
4 years ago
Brad Davidson b4d81a9e33 Remove lingering references to dqlite
4 years ago
Brad Davidson 43fcc5ddcb Rename flags.conf => config.yaml
4 years ago
Brad Davidson c980fa68a0
Update helm-controller for HelmChartConfig CRD (#2114)
4 years ago
Brian Downs 324bb55986 add ctx to hook, handle hook errors
4 years ago
Brian Downs fa2c1422b3 change name of variable
4 years ago
Brian Downs a4b2953017 add setup hook capabilities for rke2
4 years ago
Brad Davidson 79c499f0e0 Fix handling of TLS configuration args
4 years ago
Brad Davidson b1d017f892 Update dynamiclistener
4 years ago
Jacob Blain Christen e2089bea18
cli: add --selinux flag to agent/server sub-cmds (#2111)
4 years ago
Jacob Blain Christen 97ff5affab
Merge pull request #2065 from dweomer/containerd/v1.3.6-selinux
4 years ago
Thorsten Klein cf8c101b70
registry template: add insecure_skip_verify field
4 years ago
Brad Davidson 3f2551ec05
Merge pull request #1848 from euank/insecure-on-lo
4 years ago
Euan Kemp 4808c4e7d5 Listen insecurely on localhost only
4 years ago
Akihiro Suda a70cdac356
update rootlesskit to v0.10.0
4 years ago
Brad Davidson 3e8141dc65 Update dynamiclistener
4 years ago
Hussein Galal 169ee63907
Add etcd members as learners (#2066)
4 years ago
Brad Davidson 1eec7348a5 Call setproctitle to conceal node args in ps output
4 years ago
Jacob Blain Christen 371bee82f9 containerd: bump to v1.3.6
4 years ago
Brad Davidson dfd0f9d1a6 Correctly report and propagate kubeconfig write failures
4 years ago
Brad Davidson 9da8dc4f61 Update coredns version to 1.6.9 for master
4 years ago
Brian Downs 5a81fdbdc5 update cis flag implementation to propogate the rest of the way through to kubelet
4 years ago
Jason e3f8789114
Add containerd snapshotter flag (#1991)
4 years ago
Brian Downs abb2d9aad1 add flag usage
4 years ago
Brian Downs 57a6319fac add protect-kernel-defaults to kubelet
4 years ago
Erik Wilson 66a8c2ad7f
Merge pull request #1899 from erikwilson/config-file
4 years ago
Brian Downs ebac755da1 add profiling flag with default value of false
4 years ago
Erik Wilson e1dc3451bc
Add config file support
4 years ago
Brian Downs 99a8bca522 remove hard coded value
4 years ago
Brandon Davidson 538842ffdc
Merge pull request #1768 from brandond/fix_1764
4 years ago
Erik Wilson 0d6a2bfb0b
Merge pull request #1974 from mschneider82/patch-1
4 years ago
Erik Wilson 42f0b95ac5
Merge pull request #1800 from niusmallnan/dev
4 years ago
niusmallnan d713683614 Add retry backoff for starting network-policy controller
4 years ago
Matthias Schneider 56a083c812 fixed panic in network_policy_controller
4 years ago
Jacob Blain Christen 3197d206ce
Merge pull request #1892 from dweomer/servicelb/node-role
4 years ago
Brian Downs 58aae57e12 set environment variable and create config for crictl
4 years ago
Brian Downs 63dbf806df create symlink from docker sock to where crictl in k3s is looking for the sock to use
4 years ago
Hussein Galal f5ee757b86
Add cluster dns configmap (#1785)
4 years ago
Brian Downs 7f4f237575
added profile = false args to api, controllerManager, and scheduler (#1891)
5 years ago
Jacob Blain Christen 1ed12cffa0 servicelb: fix ineffective toleration
5 years ago
galal-hussein c580a8b528 Add heartbeat interval and election timeout
5 years ago
Darren Shepherd 6b5b69378f Add embedded etcd support
5 years ago
Darren Shepherd 39571424dd Generate etcd certificates
5 years ago
Darren Shepherd a18d387390 Refactor clustered DB framework
5 years ago
Darren Shepherd 4317a91b96 Delete dqlite
5 years ago
Darren Shepherd 7e59c0801e Make program name a variable to be changed at compile time
5 years ago
Taeho Kim 3d59a85dae Upgrade local-path-storage to v0.0.14
5 years ago
Erik Wilson 43b9bf2e50
Merge pull request #1795 from StateFarmIns/support_for_setting_default_ssl_ciphers
5 years ago
Erik Wilson d10d6f7fb3
Merge pull request #1762 from consideRatio/coredns-readinessprobe
5 years ago
Chuck Schweizer 19c34bd12d Update to set default CipherSuites
5 years ago
Chuck Schweizer ca9c9c2e1e Adding support for TLS MinVersion and CipherSuites
5 years ago
Erik Sundell 27ae2fb9c8 coredns: go generate
5 years ago
Darren Shepherd cb4b34763e
Merge pull request #1759 from ibuildthecloud/background
5 years ago
Darren Shepherd e5fe184a44
Merge pull request #1757 from ibuildthecloud/separate-port
5 years ago
Darren Shepherd 072396f774 Start kube-apiserver in the background
5 years ago
Brad Davidson 71561ecda2 Use ClientCA for the signer controller
5 years ago
Darren Shepherd f38082673d
Merge pull request #1753 from ibuildthecloud/prepull
5 years ago
Darren Shepherd 74bcf4da0b
Merge pull request #1756 from ibuildthecloud/less-logging
5 years ago
Darren Shepherd 2f5ee914f9 Add supervisor port
5 years ago
Darren Shepherd afd6f6d7e7 Encapsulate execution logic
5 years ago
Darren Shepherd 61ba9171ce Only echo Waiting for kubelet every 30 seconds
5 years ago
Darren Shepherd 1d05e99769
Merge pull request #1752 from ibuildthecloud/disable-ccm
5 years ago
Darren Shepherd 6932d03bb4 Support prepulling images on start
5 years ago
Darren Shepherd 70ddc799bd
Merge pull request #1691 from ibuildthecloud/staticpod
5 years ago
Darren Shepherd 341895c322 Don't write ccm.yaml if --disable-cloud-controller is set
5 years ago
Darren Shepherd 8c7fbe3dde Suppport static pods at ${datadir}/agent/pod-manifests
5 years ago
Erik Wilson 39c3854648
Merge pull request #1720 from ilknarf/master
5 years ago
Erik Wilson c71561129e
Merge pull request #1716 from ibuildthecloud/debugpublic
5 years ago
Erik Wilson c941e1d0bb
Merge pull request #1695 from ibuildthecloud/kubeproxy
5 years ago
Erik Wilson df1725cb06
Merge pull request #1694 from ibuildthecloud/inittwice
5 years ago
Erik Wilson 2fb5bad3e8
Merge pull request #1704 from ibuildthecloud/x509-admin
5 years ago
Erik Wilson 21eabd902b
Merge pull request #1693 from ibuildthecloud/disableditem
5 years ago
Erik Wilson 21266bab7e
Merge pull request #1692 from ibuildthecloud/err
5 years ago
Erik Wilson ed8cd9250b
Merge pull request #1690 from ibuildthecloud/flannel
5 years ago
Erik Wilson 47bb0939e6
Merge pull request #1611 from Dirbaio/master
5 years ago
Frank a18d94e5f9 remove redundant Sprintf
5 years ago
Darren Shepherd 56770ff2cc Make debug variable public to be used by wrapper programs
5 years ago
Darren Shepherd 3c8e0b4157 No longer use basic auth for default admin account
5 years ago
Darren Shepherd 5715e1ba0d Add ability to disable kubeproxy
5 years ago
Darren Shepherd 7920fa48c9 Only need to resolve the path of host-local if Flannel is enabled
5 years ago
Darren Shepherd 8cc9efdf7c Allow InitLogging to be called twice
5 years ago
Darren Shepherd 8b8af94eb2 Move disabled items to a const to keep more consistency
5 years ago
Darren Shepherd c25f1ab1b6 Check for error on mkdir
5 years ago
Darren Shepherd 130e6e31a1
Merge pull request #1664 from KnicKnic/windows-18-build
5 years ago
Darren Shepherd e4f87f51e2
Merge pull request #1681 from KnicKnic/fix_file_paths
5 years ago
Darren Shepherd 7d06d2ccc1
Merge pull request #1653 from KnicKnic/enable_agent_windows
5 years ago
Knic Knic 44b8af097c fix usage of path instead of filepath
5 years ago
Erik Wilson 2c49341113
Merge pull request #1669 from erikwilson/manifest-mod-time
5 years ago
galal-hussein 1d6b83d8a4 go generate
5 years ago
Erik Wilson fec2c271c2 Check modification time before deploying manifests
5 years ago
Knic Knic d919a0b998 Mock out rootlessports on windows
5 years ago
Darren Shepherd dfcbd5a3c1 Update generated code
5 years ago
Darren Shepherd a8d96112d9 Updates for k8s v1.18 support
5 years ago
Knic Knic 7f77c9a3c8 enable agent to start on windows
5 years ago
Dario Nieuwenhuis cd0b58e920 Correctly quote auth strings in containerd config. Fixes #1610
5 years ago
louis f2a4e1d57d feat: add master taint toleration to klipper, coredns, metrics-server, traefik and local-storage
5 years ago
galal-hussein 2b6faa925f use mirrored images for traefik and coredns
5 years ago
galal-hussein 356fe006a2 Add asterisks for omitted values in nodeconfig
5 years ago
galal-hussein 3f927d8006 Revert "Replace traefik with nginx"
5 years ago
galal-hussein c4f18227fc default backend multiarch
5 years ago
galal-hussein 717b5a765e use multiarch image for nginx
5 years ago
Erik Wilson ceff3f58fb
Merge pull request #1466 from galal-hussein/traefik_to_nginx
5 years ago
galal-hussein 9a17033095 Replace traefik with nginx
5 years ago
Erik Wilson 8725798578
Merge pull request #1464 from erikwilson/selinux-update
5 years ago
Erik Wilson a3cb9ee1f6 Simplify SELinux detection and add --disable-selinux flag
5 years ago
Erik Wilson 0aeea78060
Merge pull request #1444 from KnicKnic/k3s_build_windows
5 years ago
Darren Shepherd 4d32fe9959 Support SELinux
5 years ago
Erik Wilson 4210800648
Merge pull request #1343 from ibuildthecloud/rootless
5 years ago
Knic Knic c2db115ec3 fix formatting
5 years ago
Knic Knic 2346ccc63f get build on windows and get api_server to work
5 years ago
Knic Knic 522e08872a do not rename inuse files
5 years ago
Erik Wilson fe45eb008a
Merge pull request #1416 from erikwilson/device-plugins-path
5 years ago
galal-hussein d49ef31767 Inject node config on startup
5 years ago
Erik Wilson b15c4473cd Use default kubelet device-plugins path
5 years ago
Darren Shepherd 782004bec9 Create pidns for rootless
5 years ago
Erik Wilson 0374c4f63d Add --disable flag
5 years ago
Erik Wilson 3592d0bdd9
Merge pull request #1344 from ibuildthecloud/dialer-fallback
5 years ago