“Argocd基础”与“Array”:页面之间的差异

来自linuxsa wiki
(页面间差异)
跳转到导航 跳转到搜索
Evan留言 | 贡献
无编辑摘要
 
Evan留言 | 贡献
导入1个版本
 
第1行: 第1行:
=install=
<pre>
<pre>
安装
#include <stdio.h>
/*  统计各个数字,空白符 以及和其它字符出现的次数  count digits, white space, others */
main()
{
  int c, i, nwhite, nother;
  int ndigit[10];
  nwhite = nother = 0;
  for (i = 0; i <  10; ++i)
    ndigit[i] = 0;


下载我改好的安装文件   
  while (( c =  getchar() ) != EOF)
 
    if ( c >= '0' && c <= '9')
https://github.com/evan886/k8s-install/blob/main/argocd-install.yaml
      ++ndigit[c-'0'];
 
    else if ( c == ' ' || c == '\n' || c == '\t')
安装的yaml要换一些images 如果你懂的原因
      ++ nwhite;
国内下载  dex:v2.38.0
    else
ln  20827
      ++nother;
docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/dexidp/dex:v2.38.0
 
 
22022        image: m.daocloud.io/docker.io/library/redis:7.0.15-alpine
 
Failed to pull image "redis:7.0.15-alpine": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/library/redis:7.0.15-alpine": failed to copy: httpReadSeeker: failed open: failed to do request: Get "https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/b4/b496c54101d90ece526c5f630d796e802de795b1575cea3d70164deb83a70588/data?verify=1724836693-C2l0u43foCY6DOvBpkJUX6WiICM%3D": dial tcp 199.16.156.7:443: i/o timeout
 
配置
kubectl  edit svc  argocd-server -n argocd 
type  ClusterIP 改为 NodePort
 
kubectl  get svc -n argocd
argocd-server                            NodePort    10.233.144.102  <none>        80:31803/TCP,443:31768/TCP  7m38s
 
admin
/tmp/ch13# kubectl  get secret argocd-initial-admin-secret -n argocd -o jsonpath="{.data.password}" | base64 -d ; echo
u7x0xkwDPdI1mc7Z
 
#maserip
https://192.168.10.41:31803/


  printf("digits =");
  for ( i =0;  i < 10; ++i)
    printf("%d", ndigit[i]);
  printf(", while space = %d, other = %d\n",
    nwhite, nother);
}
</pre>
</pre>


 
[[category:c]]
[[category:devops]]

2019年10月14日 (一) 13:48的最新版本

#include <stdio.h>
/*  统计各个数字,空白符 以及和其它字符出现的次数  count digits, white space, others */
main()
{
  int c, i, nwhite, nother;
  int ndigit[10];
 
  nwhite = nother = 0;
  for (i = 0; i <  10; ++i)
    ndigit[i] = 0;

  while (( c =  getchar() ) != EOF)
    if ( c >= '0' && c <= '9')
      ++ndigit[c-'0'];
    else if ( c == ' ' || c == '\n' || c == '\t')
      ++ nwhite;
    else
      ++nother;

  printf("digits =");
  for ( i =0;  i < 10; ++i)
    printf("%d", ndigit[i]);
  printf(", while space = %d, other = %d\n",
     nwhite, nother);
}