mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-04 07:49:35 +00:00 
			
		
		
		
	This is the 2nd attempt. The previous was reverted while we figured out the regional mirrors (oops). New plan: k8s.gcr.io is a read-only facade that auto-detects your source region (us, eu, or asia for now) and pulls from the closest. To publish an image, push k8s-staging.gcr.io and it will be synced to the regionals automatically (similar to today). For now the staging is an alias to gcr.io/google_containers (the legacy URL). When we move off of google-owned projects (working on it), then we just do a one-time sync, and change the google-internal config, and nobody outside should notice. We can, in parallel, change the auto-sync into a manual sync - send a PR to "promote" something from staging, and a bot activates it. Nice and visible, easy to keep track of.
		
			
				
	
	
		
			44 lines
		
	
	
		
			1014 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1014 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
apiVersion: apps/v1
 | 
						|
kind: Deployment
 | 
						|
metadata:
 | 
						|
  name: l7-default-backend
 | 
						|
  namespace: kube-system
 | 
						|
  labels:
 | 
						|
    k8s-app: glbc
 | 
						|
    kubernetes.io/name: "GLBC"
 | 
						|
    kubernetes.io/cluster-service: "true"
 | 
						|
    addonmanager.kubernetes.io/mode: Reconcile
 | 
						|
spec:
 | 
						|
  replicas: 1
 | 
						|
  selector:
 | 
						|
    matchLabels:
 | 
						|
      k8s-app: glbc
 | 
						|
  template:
 | 
						|
    metadata:
 | 
						|
      labels:
 | 
						|
        k8s-app: glbc
 | 
						|
        name: glbc
 | 
						|
    spec:
 | 
						|
      containers:
 | 
						|
      - name: default-http-backend
 | 
						|
        # Any image is permissible as long as:
 | 
						|
        # 1. It serves a 404 page at /
 | 
						|
        # 2. It serves 200 on a /healthz endpoint
 | 
						|
        image: k8s.gcr.io/defaultbackend:1.4
 | 
						|
        livenessProbe:
 | 
						|
          httpGet:
 | 
						|
            path: /healthz
 | 
						|
            port: 8080
 | 
						|
            scheme: HTTP
 | 
						|
          initialDelaySeconds: 30
 | 
						|
          timeoutSeconds: 5
 | 
						|
        ports:
 | 
						|
        - containerPort: 8080
 | 
						|
        resources:
 | 
						|
          limits:
 | 
						|
            cpu: 10m
 | 
						|
            memory: 20Mi
 | 
						|
          requests:
 | 
						|
            cpu: 10m
 | 
						|
            memory: 20Mi
 |