All Projects → renoki-co → Php K8s

renoki-co / Php K8s

Licence: apache-2.0
PHP K8s is a PHP handler for the Kubernetes Cluster API, helping you handling the individual Kubernetes resources directly from PHP, like viewing, creating, updating or deleting resources.

Projects that are alternatives of or similar to Php K8s

Kubernetes Pfsense Controller
Integrate Kubernetes and pfSense
Stars: ✭ 100 (-9.91%)
Mutual labels:  api, k8s, cluster
Impress
Enterprise application server for Node.js and Metarhia private cloud ⚡
Stars: ✭ 634 (+471.17%)
Mutual labels:  api, cluster
Scalecube Services
ScaleCube Services is a high throughput, low latency reactive microservices library built to scale. it features: API-Gateways, service-discovery, service-load-balancing, the architecture supports plug-and-play service communication modules and features. built to provide performance and low-latency real-time stream-processing. its open and designed to accommodate changes. (no sidecar in a form of broker or any kind)
Stars: ✭ 482 (+334.23%)
Mutual labels:  k8s, cluster
Cv4pve Api Java
Proxmox VE Client API JAVA
Stars: ✭ 17 (-84.68%)
Mutual labels:  api, cluster
Nodejsstarterkit
Starter Kit for Node.js v14.x, minimum dependencies 🚀
Stars: ✭ 348 (+213.51%)
Mutual labels:  api, cluster
Diplomat
A HTTP Ruby API for Consul
Stars: ✭ 358 (+222.52%)
Mutual labels:  api, cluster
Zato
ESB, SOA, REST, APIs and Cloud Integrations in Python
Stars: ✭ 889 (+700.9%)
Mutual labels:  api, cluster
k8s-istio-demo
Demo showing the capabilities of Istio
Stars: ✭ 22 (-80.18%)
Mutual labels:  cluster, k8s
Hub Sync
Sync your github forks without git.
Stars: ✭ 21 (-81.08%)
Mutual labels:  api, sync
K8s Digitalocean Terraform
Deploy latest Kubernetes cluster on DigitalOcean using Terraform
Stars: ✭ 33 (-70.27%)
Mutual labels:  k8s, cluster
Kube Aliases
Kubernetes Aliases and Bash Functions
Stars: ✭ 40 (-63.96%)
Mutual labels:  k8s, cluster
Kube No Trouble
Easily check your cluster for use of deprecated APIs
Stars: ✭ 280 (+152.25%)
Mutual labels:  k8s, cluster
K8s Tew
Kubernetes - The Easier Way
Stars: ✭ 269 (+142.34%)
Mutual labels:  k8s, cluster
Victoriametrics
VictoriaMetrics: fast, cost-effective monitoring solution and time series database
Stars: ✭ 5,558 (+4907.21%)
Mutual labels:  cluster, k8s
kubernetes-marketplace
Marketplace of Kubernetes applications available for quick and easy installation in to Civo Kubernetes clusters
Stars: ✭ 136 (+22.52%)
Mutual labels:  cluster, k8s
Tyk
Tyk Open Source API Gateway written in Go, supporting REST, GraphQL, TCP and gRPC protocols
Stars: ✭ 6,968 (+6177.48%)
Mutual labels:  api, k8s
laravel-php-k8s
Just a simple port of renoki-co/php-k8s for easier access in Laravel
Stars: ✭ 71 (-36.04%)
Mutual labels:  cluster, k8s
kube-alive
Some tools to experiment with Kubernetes to observe it's real-life behavior
Stars: ✭ 32 (-71.17%)
Mutual labels:  cluster, k8s
Openebs
Leading Open Source Container Attached Storage, built using Cloud Native Architecture, simplifies running Stateful Applications on Kubernetes.
Stars: ✭ 7,277 (+6455.86%)
Mutual labels:  pod, k8s
Flowa
🔥Service level control flow for Node.js
Stars: ✭ 66 (-40.54%)
Mutual labels:  api, sync

PHP K8s

CI codecov StyleCI Latest Stable Version Total Downloads Monthly Downloads License

Min. K8s Version Max. K8s Version Client Capabilities Client Support Level

PHP K8s is a PHP handler for the Kubernetes Cluster API, helping you handling the individual Kubernetes resources directly from PHP, like viewing, creating, updating or deleting resources.

For Laravel projects, you might want to use renoki-co/laravel-php-k8s which eases the access.

🤝 Supporting

Renoki Co. on GitHub aims on bringing a lot of open source projects and helpful projects to the world. Developing and maintaining projects everyday is a harsh work and tho, we love it.

If you are using your application in your day-to-day job, on presentation demos, hobby projects or even school projects, spread some kind words about our work or sponsor our work. Kind words will touch our chakras and vibe, while the sponsorships will keep the open source projects alive.

ko-fi

🚀 Installation

You can install the package via composer:

composer require renoki-co/php-k8s

🙌 Usage

Having the following YAML configuratin for your Service kind:

apiVersion: v1
kind: Service
metadata:
  name: nginx
  namespace: frontend
spec:
  selector:
    app: frontend
  ports:
    - protocol: TCP
      port: 80
      targetPort: 80

Can be written like this:

use RenokiCo\PhpK8s\KubernetesCluster;

// Create a new instance of KubernetesCluster
$cluster = new KubernetesCluster('http://127.0.0.1:8080');

// Create a new NGINX service.
$svc = $cluster->service()
    ->setName('nginx')
    ->setNamespace('frontend')
    ->setSelectors(['app' => 'frontend'])
    ->setPorts([
        ['protocol' => 'TCP', 'port' => 80, 'targetPort' => 80],
    ])
    ->create();

📄 Getting Started

Please refer to the Resources docs extensive documentation and the PR List to know what's up for development. Below you will find the list of supported resources for a quick and easy access.

Resource Default Version
ClusterRole rbac.authorization.k8s.io/v1
ClusterRoleBinding rbac.authorization.k8s.io/v1
ConfigMap v1
CronJob batch/v1beta1
DaemonSet apps/v1
Deployment apps/v1
HorizontalPodAutoscaler autoscaling/v2beta2
Ingress networking.k8s.io/v1beta1
Job batch/v1
Namespace v1
Node v1
PersistenVolume v1
PersistenVolumeClaim v1
Pod v1
Role rbac.authorization.k8s.io/v1
RoleBinding rbac.authorization.k8s.io/v1
Secret v1
Service v1
ServiceAccount v1
StatefulSet apps/v1
StorageClass storage.k8s.io/v1

🐛 Testing

vendor/bin/phpunit

🤝 Contributing

Please see CONTRIBUTING for details.

🔒 Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

🎉 Credits

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].