1 简介配置是程序绕不开的话题,在Kubernetes中使用ConfigMap来配置,它本质其实主是一个键值对。本文讲解如何通过5种方式创建ConfigMap,通过4种方式使用ConfigMap。2 创建ConfigMap按大类可分为两种方式,细分共有五种方式:(一)kubectl create c
1前言了解Docker容器的运行环境非常重要,我们把应用放在容器里执行,环境变量会直接影响程序的执行效果。所以我们要知道容器内部的环境变量,也要知道如何改变这些环境变量。2查看环境变量2.1方式一:dockerinspect通过dockerinspect命令不仅能查看环境变量,还能查看容器其它相关信
1前言从网上获取资源是一种很常见的场景,比较从某个网站获取资料。2三种方式2.1JavaNIO代码如下:URLwebsite=newURL("https://www.pkslow.com");ReadableByteChannelrbc=Channels.newChannel(w
用Java检测HTTPS网站所支持的TLS版本信息 简介 服务器升级、JDK升级、API升级等都可能会造成原有HTTPS的API调
Java Test HTTPS TLS Supported Versions and Cipher Suites Introduction It would fail to call HTTPS API if we migrated infrastructure/JDK, there would b
Python Template Engine Jinja2 and Integrate with Flask Jinja Example Jinja is quite easy to use. Let me give an example to render markdown file. Templ
Add a Google Search Box to Your Website Open Google Programmable Search Engin Select the website Get the html code
Docker拉取镜像失败,download failed after attempts 6 IO Timeout 报错如下: $ docker pull halohub/halo:2.6.1 2.6.1: Pulling from halohub/halo d1669123f281: Retryin
技术的学习永无止境,内容也繁杂多样。这里分享一个开源的学习路线( roadmap.sh ),希望能帮助大家。 它提供了33个技术方面的学习路
Java All Versions And Features - which version should be used Java 7 Sure, here are some of the new features and improvements in Java 7: Try-with-reso