发布一个k8s部署视频:https://edu.youkuaiyun.com/course/detail/26967
课程内容:各种k8s部署方式。包括minikube部署,kubeadm部署,kubeasz部署,rancher部署,k3s部署。包括开发测试环境部署k8s,和生产环境部署k8s。
腾讯课堂连接地址https://ke.qq.com/course/478827?taid=4373109931462251&tuin=ba64518
第二个视频发布 https://edu.youkuaiyun.com/course/detail/27109
腾讯课堂连接地址https://ke.qq.com/course/484107?tuin=ba64518
介绍主要的k8s资源的使用配置和命令。包括configmap,pod,service,replicaset,namespace,deployment,daemonset,ingress,pv,pvc,sc,role,rolebinding,clusterrole,clusterrolebinding,secret,serviceaccount,statefulset,job,cronjob,podDisruptionbudget,podSecurityPolicy,networkPolicy,resourceQuota,limitrange,endpoint,event,conponentstatus,node,apiservice,controllerRevision等。
第三个视频发布:https://edu.youkuaiyun.com/course/detail/27574
详细介绍helm命令,学习helm chart语法,编写helm chart。深入分析各项目源码,学习编写helm插件
————————————————------------------------------------------------------------------------------------------------------------------
public class LngAndLatUtil
{
public static Map<String, String> getCityNameByPhone(String phone)throws Exception
{
Map<String, String> map = new HashMap<String, String>();
String url = ApplicationConst.PHONE_TO_CITY_PAIPAI + phone;
String json = loadJSON(url);
json=json.replace("(", "").replace(")", "").replace(";", "").substring(0, json.indexOf("<")-3);
JSONObject obj = JSONObject.parseObject(json);
{
String cityName = obj.getString("cityname");
String province = obj.getString("province");
map.put("cityName", cityName);
map.put("province", province);
}
return map;
}
public static Map<String,String> getLngLatByPhone(String phone)throws Exception{
String city=getCityNameByPhone(phone).get("cityName");
String url = ApplicationConst.CITY_TO_LAT_LON_BAIDU + "&ak="+ApplicationConst.BAIDU_AK+"&city="+city+"&address="+city;
String json = loadJSON(url);
JSONObject obj = JSONObject.parseObject(json);
JSONObject location=obj.getJSONObject("result").getJSONObject("location");
Map<String,String> latLng=Maps.newHashMap();
latLng.put("lat", location.getString("lat"));
latLng.put("lng", location.getString("lng"));
return latLng;
}
private static String loadJSON(String url)throws Exception
{
StringBuilder json = new StringBuilder();
try
{
URL oracle = new URL(url);
URLConnection urlConn = oracle.openConnection();
BufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream(),"GBK"));
String inputLine = null;
while ((inputLine = in.readLine()) != null)
{
json.append(new String(inputLine));
}
in.close();
}
catch (IOException e)
{
throw e;
}
return json.toString();
}
public static void main(String[] args)throws Exception
{
System.out.println(getLngLatByPhone("18868716531").get("lat"));
}
}
public static final String PHONE_TO_CITY_TAOBAO="http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=";
public static final String PHONE_TO_CITY_HAO_SERVICE="http://apis.haoservice.com/mobile";
public static final String PHONE_TO_CITY_PAIPAI="http://virtual.paipai.com/extinfo/GetMobileProductInfo?amount=10000&mobile=";
public static final String CITY_TO_LAT_LON_BAIDU="http://api.map.baidu.com/geocoder/v2/?output=json";
根据手机号码查归属的再查经纬度