|
|
|
|
|
by falcolas
2817 days ago
|
|
Let's talk about complexity for a moment, for one aspect of a simple service: ingress. Kubernetes: apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: test-ingress
spec:
rules:
- http:
paths:
- path: /testpath
backend:
serviceName: test
servicePort: 80
Nginx: location /testpath {
proxy_path http://127.0.0.1:8080
}
Which is less complex? Which is beta, and thus could be changed over time (it happens a lot). Which one requires major (and breaking) infrastructure updates every 3 months?> I'd argue you have less YAMLs with k8s than with Ansible for a small project. Since you typically need one yaml document per K8s resource, and can describe multiple independent and idempotant actions in one Ansible document, I think this is easily demonstrable as false for small projects (and likely big projects as well). |
|
The second is a configuration fragment that is useless by itself that would send all traffic to a single instance running on localhost.