Created
November 13, 2020 12:37
-
-
Save KaulSe/8be64f4bc19a24c0260f2dad28050308 to your computer and use it in GitHub Desktop.
Manual Rancher deployment yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: rancher-server | |
| namespace: cattle-system | |
| spec: | |
| ports: | |
| - port: 80 | |
| targetPort: 80 | |
| protocol: TCP | |
| name: http | |
| - port: 443 | |
| targetPort: 443 | |
| protocol: TCP | |
| name: https-internal | |
| selector: | |
| app: rancher-server | |
| --- | |
| apiVersion: networking.k8s.io/v1beta1 | |
| kind: Ingress | |
| metadata: | |
| name: rancher-server | |
| namespace: cattle-system | |
| spec: | |
| rules: | |
| - host: rancher.example.com | |
| http: | |
| paths: | |
| - path: / | |
| pathType: Prefix | |
| backend: | |
| serviceName: rancher-server | |
| servicePort: 443 | |
| --- | |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: rancher-server | |
| namespace: cattle-system | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: rancher-server | |
| strategy: | |
| rollingUpdate: | |
| maxSurge: 1 | |
| maxUnavailable: 1 | |
| type: RollingUpdate | |
| template: | |
| metadata: | |
| labels: | |
| app: rancher-server | |
| spec: | |
| serviceAccountName: rancher-server | |
| containers: | |
| - name: rancher-server | |
| image: rancher/rancher:latest | |
| ports: | |
| - containerPort: 80 | |
| - containerPort: 443 | |
| args: | |
| - "--http-listen-port=80" | |
| - "--https-listen-port=443" | |
| env: | |
| - name: CATTLE_NAMESPACE | |
| value: cattle-system | |
| livenessProbe: | |
| httpGet: | |
| path: /healthz | |
| port: 80 | |
| initialDelaySeconds: 60 | |
| periodSeconds: 30 | |
| readinessProbe: | |
| httpGet: | |
| path: /healthz | |
| port: 80 | |
| initialDelaySeconds: 5 | |
| periodSeconds: 30 | |
| --- | |
| kind: ServiceAccount | |
| apiVersion: v1 | |
| metadata: | |
| name: rancher-server | |
| namespace: cattle-system | |
| --- | |
| kind: ClusterRoleBinding | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| metadata: | |
| name: rancher-server | |
| subjects: | |
| - kind: ServiceAccount | |
| name: rancher-server | |
| namespace: cattle-system | |
| roleRef: | |
| kind: ClusterRole | |
| name: cluster-admin | |
| apiGroup: rbac.authorization.k8s.io |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Open:
https://localhost:6443in your browser.