Top 5 Kubernetes Best Practices From Sandeep Dinesh (Google) - DZone Cloud - 0 views
-
Best Practices for Kubernetes
-
#1: Building Containers
-
Don’t Trust Arbitrary Base Images!
- ...29 more annotations...
-
-
Ephemeral Containers | Kubernetes - 0 views
-
a special type of container that runs temporarily in an existing Pod to accomplish user-initiated actions such as troubleshooting.
-
you cannot add a container to a Pod once it has been created. Instead, you usually delete and replace Pods in a controlled fashion using deployments.
-
you can run an ephemeral container in an existing Pod to inspect its state and run arbitrary commands.
- ...4 more annotations...
Moving away from Alpine - DEV Community - 0 views
-
it’s a lot of work to get packages that are not readily available in Alpine repository.
-
things compiled in Alpine won’t be usable on Ubuntu, for example, and vice versa.
-
the difficulty in pinning package versions in Alpine.
- ...2 more annotations...
Optimizing Gitlab pipelines - Basics (1) | PrinsFrank.nl - 0 views
-
When you use specific docker image, make sure you have the Dependency Proxy enabled so the image doesn’t have to be downloaded again for every job.
-
stages are used to group items that can run at the same time.
-
Instead of waiting for all jobs to finish, you can mark jobs as interruptible which signals a job to cancel when a new pipeline starts for the same branch
- ...8 more annotations...
Active Record Associations - Ruby on Rails Guides - 0 views
-
With Active Record associations, we can streamline these - and other - operations by declaratively telling Rails that there is a connection between the two models.
-
belongs_to has_one has_many has_many :through has_one :through has_and_belongs_to_many
-
an association is a connection between two Active Record models
- ...195 more annotations...
Smartcropper for Ruby - 0 views
A Practical Guide to SVGs on the web - 0 views
How to Use Docker on OS X: The Missing Guide | Viget - 0 views
-
Docker is a client-server application.
-
The Docker server is a daemon that does all the heavy lifting: building and downloading images, starting and stopping containers, and the like. It exposes a REST API for remote management.
-
The Docker client is a command line program that communicates with the Docker server using the REST API.
- ...9 more annotations...
Docker, Rails, & Docker Compose together in your development workflow - 0 views
-
Use slim images when possible on production
Why it took a long time to build that tiny link preview on Wikipedia - Wikimedia Blog - 0 views
-
taken a few years for us to get this out to everyone
User Variables - Templates - Packer by HashiCorp - 0 views
-
User variables allow your templates to be further configured with variables from the command-line, environment variables, Vault, or files.
-
define it either within the variables section within your template, or using the command-line -var or -var-file flags.
-
If the default value is null, then the user variable will be required.
- ...7 more annotations...
Template Engine - Templates - Packer by HashiCorp - 0 views
-
All strings within templates are processed by a common Packer templating engine, where variables and functions can be used to modify the value of a configuration parameter at runtime.
-
Anything template related happens within double-braces: {{ }}.
-
Functions are specified directly within the braces, such as {{timestamp}}
- ...8 more annotations...
VMware ISO - Builders - Packer by HashiCorp - 0 views
-
Packer can use a remote VMware Hypervisor to build the virtual machine.
-
enable GuestIPHack
-
When using a remote VMware Hypervisor, the builder still downloads the ISO and various files locally, and uploads these to the remote machine.
- ...3 more annotations...
Configuration - docker-sync 0.5.10 documentation - 0 views
-
Be sure to use a sync-name which is unique, since it will be a container name.
-
-
split your docker-compose configuration for production and development (as usual)
- ...9 more annotations...
Ruby on Rails 實戰聖經 | 網站效能 - 0 views
-
依照慣例是_count結尾,型別是integer,有預設值0。
-
lol_dba提供了Rake任務可以幫忙找忘記加的索引。
-
Bullet是一個外掛可以在開發時偵測N+1 queries問題。
- ...19 more annotations...
Intro to deployment strategies: blue-green, canary, and more - DEV Community - 0 views
-
using a service-oriented architecture and microservices approach, developers can design a code base to be modular.
-
Modern applications are often distributed and cloud-based
-
different release cycles for different components
- ...20 more annotations...
jwilder/nginx-proxy: Automated nginx proxy for Docker containers using docker-gen - 0 views
-
docker-gen generates reverse proxy configs for nginx and reloads nginx when containers are started and stopped.
-
/var/run/docker.sock:/tmp/docker.sock:ro
-
Use this image to fully support HTTP/2 (including ALPN required by recent Chrome versions).
- ...10 more annotations...
Ask HN: What are the best practises for using SSH keys? | Hacker News - 0 views
-
Make sure you use full disk encryption and never stand up from your machine without locking it, and make sure you keep your local machine patched.
-
I'm more focused on just stealing your keys from you regardless of length
-
attacks that aren't after your keys specifically, e.g. your home directory gets stolen.
- ...19 more annotations...
Volumes - Kubernetes - 0 views
-
On-disk files in a Container are ephemeral,
-
when a Container crashes, kubelet will restart it, but the files will be lost - the Container starts with a clean state
-
In Docker, a volume is simply a directory on disk or in another Container.
- ...105 more annotations...
« First
‹ Previous
61 - 80 of 93
Next ›
Showing 20▼ items per page