Skip to Content
Flask Framework Cookbook - Second Edition
book

Flask Framework Cookbook - Second Edition

by Shalabh Aggarwal
July 2019
Beginner to intermediate
302 pages
9h 38m
English
Packt Publishing
Content preview from Flask Framework Cookbook - Second Edition

There's more...

You can look at the YAML configurations that Kubernetes automatically creates for the deployment and service:

$ kubectl get service cookbook-recipe -o yamlapiVersion: v1kind: Servicemetadata: creationTimestamp: "2019-05-24T17:20:10Z" labels: run: cookbook-recipe name: cookbook-recipe namespace: default resourceVersion: "7829" selfLink: /api/v1/namespaces/default/services/cookbook-recipe uid: 2f3c26c4-7e48-11e9-b1ea-080027d87cc5spec: clusterIP: 10.96.207.154 externalTrafficPolicy: Cluster ports: - nodePort: 32402 port: 5000 protocol: TCP targetPort: 5000 selector: run: cookbook-recipe sessionAffinity: None type: LoadBalancerstatus: loadBalancer: {}

The preceding code is the config for service. In a similar fashion, the config ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Writing a Web Application with Flask

Writing a Web Application with Flask

Doug Farrell
Mastering Flask

Mastering Flask

Jack Stouffer

Publisher Resources

ISBN: 9781789951295Supplemental Content